Dialog Canceling Seletion whit ''ESC''
#1

Hello guy after 3 days playing whit textDraws me get problem
Closing "selectable" when ppl click "Esc"-key and idk how to Disable this ?
Reply
#2

As far as I know that cannot be changed. It is client-side.
Reply
#3

its poseble to neotralize whit times (cca1sec refresh) but i think this is not so good idea
Reply
#4

Quote:
Originally Posted by Henix
Посмотреть сообщение
its poseble to neotralize whit times (cca1sec refresh) but i think this is not so good idea
for dialogs, ESC works as the right button of the dialog.

pawn Код:
if( response ) // left button
{
}
else // right button or ESC
{
}
afaik
Reply
#5

Код:
if(!response) return 1;
Reply
#6

This is textdraws !

The only way is to make a variable to check whether the textdraws is shown or not.

So then u run a timer checking every 1/2 sec if the themtexture is closed by the variable u created.
Reply
#7

Very true, I first thought it was about dialogs but then read his post and was suddenly about textdraws ;x
Reply
#8

Sigh. Please learn English.


If the textdraw ID passed to OnPlayerClickTextDraw is INVALID_TEXT_DRAW and you don't want it to be closed, re-call SelectTextDraw there, but be aware of recursions.

pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(clickedid == INVALID_TEXT_DRAW && some_condition)
    {
        SelectTextDraw(playerid, color);
        return 1;
    }
    return 0;
}
Reply
#9

uf sorry guys u wrong title

i got problem when is texdraw selectable and ppl klick key "ESC" the selectable mod be disabled :S



Quote:
Originally Posted by park4bmx
Посмотреть сообщение
This is textdraws !

The only way is to make a variable to check whether the textdraws is shown or not.

So then u run a timer checking every 1/2 sec if the themtexture is closed by the variable u created.
oh this is bad for me (true haiter of times)
Reply
#10

Quote:
Originally Posted by Henix
Посмотреть сообщение
uf sorry guys u wrong title

i got problem when is texdraw selectable and ppl klick key "ESC" the selectable mod be disabled :S





oh this is bad for me (true haiter of times)
That ain't a problem. That has to be. When someone press ESC the mouse has to be disabled. Even Kalcor has this ability.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)