Escaping EnterName dialog loses keyboard control

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Escaping EnterName dialog loses keyboard control

#1 Post by yufra »

To get this bug open T-Engine, select "Play a new game", pick and module and when the enter name dialog pops up hit escape. The up/down keyboard buttons do not work, and if you hit return you get the "Error, name must be 2 to 25 characters" error from the no longer visible enter name dialog. The mouse can still be used to pick a module and when the enter name dialog comes back up you can use the keyboard again. This leads me to believe the "if last.key then last.key:setCurrent() end" code from Game:unregisterDialog function is not working as intended, but I cannot see why.
<DarkGod> lets say it's intended

shani
Halfling
Posts: 83
Joined: Tue Aug 22, 2006 9:27 am
Location: Israel

Re: Escaping EnterName dialog loses keyboard control

#2 Post by shani »

I Fixed it locally, I'll send the patch to DG...

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Escaping EnterName dialog loses keyboard control

#3 Post by darkgod »

Got it thanks :)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply