-ffs-AbodyRulez Posted August 24, 2015 Share Posted August 24, 2015 I've created this gui window, buttons, gridlist, and tabpanel. i have a separated dx.lua file which includes dxCreateButtonfunction, dxCreateWindow function, etc.. now, my script works just perfectly without any warning. However, when i tried to exports.resourcename:dxFunction() all the old gui element properties are screwed up, for example : guiSetVisible(window, true) -- The above code used to work with the ordinary guiCreateWindow element -- after changing it to exports.resourcename:dxCreateWindow(...) -- it warns about "Expected GUI element, got DX :/" Hope i made it clear enough. Link to comment
JR10 Posted August 24, 2015 Share Posted August 24, 2015 I'm not sure I get this but, guiSetVisible only works with gui-window elements. Link to comment
mehmet145 Posted August 24, 2015 Share Posted August 24, 2015 dxSetVisible("GuiName", false) Link to comment
-ffs-AbodyRulez Posted August 24, 2015 Author Share Posted August 24, 2015 I'm not sure I get this but, guiSetVisible only works with gui-window elements. My post was a huge misunderstanding actually, just realized that dxGui is a custom made resource. I thought i could only create a normal GUI and turn it into a themed DX.. Link to comment
mehmet145 Posted August 24, 2015 Share Posted August 24, 2015 Example; ffs = exports["SDT_GUI"] ffs:dxSetVisible(GuiName, true) Link to comment
JR10 Posted August 24, 2015 Share Posted August 24, 2015 Example; ffs = exports["SDT_GUI"] ffs:dxSetVisible(GuiName, true) Not even close. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now