neo22
Member
|
Property, can't get focus
Hi,
I have a problem with Property.
I use it in my code like it's used in the tutoriel
Code:
Memx<Property> myProps;
and
Code:
AddProperties(...);
to add them to my gui Window.
I have a problem when the Property get updated (on Gui.update()), the button that appear on the right (for Int and Flt values) works, the TextLine does display the proper value but i cant get the focus on it.
http://youtu.be/uGziQmDj6sY more details in the video
Any clues?
|
|
03-03-2013 10:18 PM |
|
Esenthel
Administrator
|
RE: Property, can't get focus
Hi,
Sorry I don't know what could be wrong, I use Properties plenty of times in the engine, and it works ok.
There is a tutorial in 2.0 "05-gui/16-properties", you can check it and see if you're doing something differently.
Perhaps you're manually setting focus to some other element each frame GuiObj.activate
or hide/show an object the same frame
GuiObj.hide, GuiObj.show
|
|
03-04-2013 05:19 PM |
|
neo22
Member
|
[Fixed] Property, can't get focus
Ok problem solved.
I was doing a check on each frame to see if a property is wrong and then activate or desactivate the validating button.
thanks for the quick answer.
|
|
03-04-2013 05:41 PM |
|