Selection and deselection of Textdraws
#1

Hi guys. I'm trying to make a skin/age/gender selection that's made with textdraws however I'm having issues of when the correct textdraw is getting selected (highlighted in green)

Here are three pictures that'll help me describe what isn't working.



In this picture ^^^ I have no textdraw selected and this is what it looks like normally.



In this picture ^^^ I'm trying to select the "-" sign however my cursor is all the way in the very corner of the textdraw but not on it (I know you can't see my cursor)



In this picture ^^^ I'm trying to select the Help textdraw however now EVERYTHING is selected.

I've seen that where ever my cursor is on the screen if it's on the same X axis "------" >>> this way. That it gets highlighted. If it's on the same Y axis "|" ^^^ this way that it doesn't get selected.

This is the way I am displaying the textdraws

PHP код:
CMD:showskin(playerid)
{
    if(
PlayerInfo[playerid][pAdmin] < 5) return 0;
    
ShowSkinSelection(playerid);
    
SelectTextDraw(playerid0x00FF00FF);
    return 
1;
}
CMD:hideskin(playerid)
{
    if(
PlayerInfo[playerid][pAdmin] < 5) return 0;
    
TogglePlayerSpectating(playeridfalse);
    
HideSkinSelection(playerid);
    
CancelSelectTextDraw(playerid);
    return 
1;

Does anyone have any ideas? I've tried to move the textdraws further apart but as I've said it's the X axis and I would prefer the textdraws to be in proportion.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)