SpEcIeS Posted August 24, 2017 Share Posted August 24, 2017 The last few days have been a GUI experiment time. Now applying color to panels seem to be easily done with: GameMenu.mainpanel:SetObject("backgroundcolor",Vec4(0.5,0.5,0.5,0.5)), however this does not seem to work with the button widget. What would be the method of changing color with widgets such as buttons? Quote SpEcIeS Link to comment Share on other sites More sharing options...
GorzenDev Posted August 24, 2017 Share Posted August 24, 2017 you would need to create a custom button script for that. just take the Button.lua from Scripts/GUI/ and create a copy and edit it. set the new script with either Widget::SetScript() or Widget:Create(). for info on how to change color you could use Panel.lua as a example. 1 Quote Link to comment Share on other sites More sharing options...
SpEcIeS Posted August 24, 2017 Author Share Posted August 24, 2017 Since this was something that was not even considered, this information that you have provided will be most helpful. Many thanks. Quote SpEcIeS Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.