I'd like to create a custom skin for buttons. It will be simple: a centered text with a border. I don't want the pressing effect, i.e. the slight movement of the text when the button is pressed.
I can use BUTTON_SetTextColor, BUTTON_SetBkgColor and so on to set some graphical parameter of the button. But I need to set the border width during run-time, because it could change for each shown button. How can I achieve this? There isn't a suitable function such as BUTTON_SetBorder.
The only solution I found is to create the button with BUTTON_CreateUser and use the user data to save custom graphical parameters for the single button instance.
If I understood correctly, the flex skin parameters/properties are identical for all buttons. In other words, I can't have two skinflex buttons with different graphical properties (one green and the other red, for example). Is it correct?
I can use BUTTON_SetTextColor, BUTTON_SetBkgColor and so on to set some graphical parameter of the button. But I need to set the border width during run-time, because it could change for each shown button. How can I achieve this? There isn't a suitable function such as BUTTON_SetBorder.
The only solution I found is to create the button with BUTTON_CreateUser and use the user data to save custom graphical parameters for the single button instance.
If I understood correctly, the flex skin parameters/properties are identical for all buttons. In other words, I can't have two skinflex buttons with different graphical properties (one green and the other red, for example). Is it correct?
The post was edited 1 time, last by giusloq ().