About Store Forum Documentation Contact
Donations:
158$/mo



Post Reply 
Get GUI Object name
Author Message
Lancer Offline
Member

Post: #1
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Get GUI Object name
10-24-2020 05:17 AM
Find all posts by this user Quote this message in a reply
Lancer Offline
Member

Post: #3
RE: Get GUI Object name
Thank you
10-24-2020 12:38 PM
Find all posts by this user Quote this message in a reply
Post Reply