print the pressed keyboard key to gui? howto?
by deepscratch · in Torque 3D Professional · 06/02/2011 (3:34 am) · 5 replies
hi all,
a simple one, I hope,
I need to print to a gui a single digit number from 0-1, on pressing said key.
if a second key is pressed, the gui should write the new number.
there should only ever be one digit displayed.
it would also be super if the numbers where big and coloured.
any real cheap easy way to do this?
thanks'n'cheers
a simple one, I hope,
I need to print to a gui a single digit number from 0-1, on pressing said key.
if a second key is pressed, the gui should write the new number.
there should only ever be one digit displayed.
it would also be super if the numbers where big and coloured.
any real cheap easy way to do this?
thanks'n'cheers
About the author
email me at medan121@gmail.com
Recent Threads
#2
Maybe lookup GuiTextEditCtrl or GuiTextCtrl Class Reference in the Scripting docs. There are a few examples in there.
06/04/2011 (4:39 am)
Do you mean, using Gui Text to display something on screen after a key map press?Maybe lookup GuiTextEditCtrl or GuiTextCtrl Class Reference in the Scripting docs. There are a few examples in there.
#3
if I press any number from 0 to 9,
that number should appear in a tiny gui,
thats it.
absolutely nothing else is required at all.
think of it as needing a "hello world" example gui for numbers.
06/04/2011 (4:10 pm)
I mean in the most simple way,if I press any number from 0 to 9,
that number should appear in a tiny gui,
thats it.
absolutely nothing else is required at all.
think of it as needing a "hello world" example gui for numbers.
#4
For example you press '9' and set a bitmap '9',using the gui bitmap control.
06/06/2011 (6:31 am)
You could bind the input to a function that process setBitmap() calls.For example you press '9' and set a bitmap '9',using the gui bitmap control.
#5
thats exactly what I need,
now lets see what setBitmap() can be convinced to do...
06/06/2011 (9:59 am)
yes Ivan thanks,thats exactly what I need,
now lets see what setBitmap() can be convinced to do...
Torque Owner deepscratch
DeepScratchStudios
I would have thought this would be real easy to do
no-one?