Hello Guest it is April 29, 2024, 01:04:26 PM

Author Topic: Change button color from lua code  (Read 768 times)

0 Members and 1 Guest are viewing this topic.

Change button color from lua code
« on: February 18, 2022, 01:43:29 PM »
Hi,
    all i want to do is to change the background color of a button from within a lua function,
Here what i already try:
Code: [Select]
scr.SetProperty('btnref', 'Bg color', tostring(Green));btnref is the name of the button that i want to change the colors.

Thanks
Re: Change button color from lua code
« Reply #1 on: February 18, 2022, 02:06:24 PM »
The colour has to be hex so for green it would be ‘#00FF00’
Re: Change button color from lua code
« Reply #2 on: February 18, 2022, 02:35:39 PM »
ok thanks got it now.