AfuSensi Posted August 5, 2014 Share Posted August 5, 2014 Hi, I'm trying to create a GUI window with the resource https://wiki.multitheftauto.com/wiki/Resource:DxGUI But as you can see, there is no edit box, or memo. Is there a way to attach a normal GUI edit box and memo to the drawn dx rectangle? Or is there a way to make a custom edit box and memo? Thanks. EDIT: oh wow, i see a function : guiAttachToDirectX. Ill report back when it works for other people who may have the same problem. Link to comment
AfuSensi Posted August 5, 2014 Author Share Posted August 5, 2014 Hmm, the function doesnt seem to work, or i'm using it wrong, and it doesnt output errors. searchField = guiCreateEdit(2, 30, 200, 50, "Search", false) g:guiAttachToDirectX(searchField, mainWindow, 500, 0) EDIT: Seems like dxGUI is bugged. g:guiAttachToDirectX(mainWindow, searchField, 0, 0) Oh well, then i'll have to script one for myself. Link to comment
tosfera Posted August 6, 2014 Share Posted August 6, 2014 There is no simple function to create an input box with dxdraw functions, it requires some decent knowledge and I can say... it also requires some math. Also, a dxDraw isn't an element. So you can't do anything with it. Link to comment
AfuSensi Posted August 6, 2014 Author Share Posted August 6, 2014 There is no simple function to create an input box with dxdraw functions, it requires some decent knowledge and I can say... it also requires some math. Also, a dxDraw isn't an element. So you can't do anything with it. Thanks for the clarification. The math goes above my head, since i started scripting seriously about a month ago. It's a shame the dxGUI resource has bugs, and i dont understand much of the script to fix it myself. EDIT: For the people that have the same problem, in the file dxGui.lua, if you set the variables to 0, it will work. I added this to my dxGui.lua: cpx = 0 cpy = 0 cx = 0 cy = 0 just above: attachedElements = {} 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