ImpulseAdventure / GUIslice-Builder

Cross-platform drag & drop GUI builder for GUIslice
Other
163 stars 35 forks source link

How to change the colors of a TextButton? #261

Closed u1550l closed 1 month ago

u1550l commented 1 month ago

I want to change the color of buttons according to their current behavior.

I found the function gslc_ElemSetCol() to do so. This function needs a pElemRef to access the button. But with GUIslice Builder ver: 0.17.b24, there is no permanent reference pointer generated.

Can I get a pElemRef using the E_ELEM_BTNxxx? Or is there a way to tell the GUIslice Builder to create gslc_tsElemRef-pointers for each button?

Thanks for your help - Richard

u1550l commented 1 month ago

Found my answer when looking into the generated code for "Custom Code" property.