Hi all...
dont know if anybody has done this before but here i a snippet that puts the hotspot and object test besides the mousecursor in a offset. BASS like.
define globals:
int overlay = 0, olay1;
in repeatedly_execute():
if (IsGamePaused() != 1)
{
if (GetLocationType( mouse.x, mouse.y)!=0 ){
string buffer;
GetLocationName(mouse.x, mouse.y, buffer);
if (overlay == 0)
{
olay1 = CreateTextOverlay (mouse.x+5,mouse.y-10,120,1,15,buffer);
overlay = 1;
}
if (overlay == 1 && IsOverlayValid(olay1)==1)
{
SetTextOverlay (olay1,mouse.x+5,mouse.y-10,120,1,15,buffer);
}
}
else {
overlay = 0;
if ( IsOverlayValid(olay1)==1 ) RemoveOverlay(olay1);
}
}
/Molin
dont know if anybody has done this before but here i a snippet that puts the hotspot and object test besides the mousecursor in a offset. BASS like.
define globals:
int overlay = 0, olay1;
in repeatedly_execute():
if (IsGamePaused() != 1)
{
if (GetLocationType( mouse.x, mouse.y)!=0 ){
string buffer;
GetLocationName(mouse.x, mouse.y, buffer);
if (overlay == 0)
{
olay1 = CreateTextOverlay (mouse.x+5,mouse.y-10,120,1,15,buffer);
overlay = 1;
}
if (overlay == 1 && IsOverlayValid(olay1)==1)
{
SetTextOverlay (olay1,mouse.x+5,mouse.y-10,120,1,15,buffer);
}
}
else {
overlay = 0;
if ( IsOverlayValid(olay1)==1 ) RemoveOverlay(olay1);
}
}
/Molin