Lancer
Member
|
Get GUI Object name
Hi,
how can I get the name from a button?
This is what I mean with name.
Im only able to get the text and typename returns Button.
Is that somehow possible?
EDIT: To explain what Im trying to do.
Im working on a skilltree and to figure out which skill can be trained/upgraded, I loop my buttons from the GUI.
Then I want to use TextInt func to change text to int and find if I have that skill or not.
Example:
Code:
C MembConst<EE::Button>& buttons = m_gui_lifeskill.button();
FREP(buttons.elms())
{
UInt skillId = EE::TextUInt(buttons[i].name); // to do: get button name defined in GUI
}
(This post was last modified: 10-23-2020 07:14 PM by Lancer.)
|
|
10-23-2020 06:15 PM |
|
Esenthel
Administrator
|
|
10-24-2020 05:17 AM |
|
Lancer
Member
|
RE: Get GUI Object name
Thank you
|
|
10-24-2020 12:38 PM |
|