reepblue Posted January 11, 2019 Share Posted January 11, 2019 I was reviewing Luawerks for the 4.6 update and found that the GUI scripts have been updated.I was first greeted with an error. Figuring out what changed made me start the standard menu script and I was greeted with the buttons always being links. Here is Luawerks in 4.6 using the older GUI scripts. Also note that check boxes don't seem to show correctly ether. This seems to be due to you've made in Buttons.lua. Was this edit necessary? If there is going to be no fix for this, I'm just going to ship the older scripts with my package. 1 Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Josh Posted January 20, 2019 Share Posted January 20, 2019 Is this in a new project, or in your own project from 4.5? My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
reepblue Posted January 21, 2019 Author Share Posted January 21, 2019 This was in a new 4.6 project. The build at the time had different GUI scripts. Reverting the scripts to the 4.5 versions fixed the issue. 1 Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Josh Posted February 26, 2019 Share Posted February 26, 2019 This has been fixed in the beta. Note the GUI scripts have changed slightly. First you create the widget, then you set the style. You cannot pass a style in the creation function because the style constants are defined in the script itself. So until that script is run for the first time, the style constants have not been defined. resumebutton = Widget:Button("RESUME GAME",100,gui:GetBase():GetSize().y/2-60,300,20,gui:GetBase()) resumebutton:SetStyle(BUTTON_LINK + BUTTON_CANCEL) My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts