Console and cursor bug.
by Chris "Dark" Evans · in Torque Game Engine · 10/16/2001 (5:10 pm) · 3 replies
This just started happening to me right after I added a verticle energy bar and verticle mana bar, I tweaked the healthbar to be verticle also.
I go in a mission, hit the console button, type some things in to drop me from high in the air so I can test the damage. When I press the console button again to leave the console the cursor gets stuck on, so I can't move anywhere.
The only way to get rid of it was to type:
schedule(1000,0,cursorOff);
in the console and close it within one second. Then the cursor would go away.
I was looking at the toggle console function in the script, I tweaked it to check if the canvas content was the player gui, if it was then hide the cursor when the console toggles off.
What do you think would cause this? Where did you have it check if it should turn the cursor on or off? Is it in the console code, in the engine?
Dark
I go in a mission, hit the console button, type some things in to drop me from high in the air so I can test the damage. When I press the console button again to leave the console the cursor gets stuck on, so I can't move anywhere.
The only way to get rid of it was to type:
schedule(1000,0,cursorOff);
in the console and close it within one second. Then the cursor would go away.
I was looking at the toggle console function in the script, I tweaked it to check if the canvas content was the player gui, if it was then hide the cursor when the console toggles off.
What do you think would cause this? Where did you have it check if it should turn the cursor on or off? Is it in the console code, in the engine?
Dark
Torque Owner Tim Gift