FlyingSpoon Posted January 2, 2015 Posted January 2, 2015 Hi there, I found this public community resource : https://community.multitheftauto.com/index.php?p= ... ls&id=4871 However, I saw that the wiki had a lot of removed functions and many didn't work. I want to create a simple window with buttons, can anyone help me? I am really stuck!
Dealman Posted January 2, 2015 Posted January 2, 2015 That resource is pretty old and I can't recall if it's still being worked on. In all honesty, if you don't have the experience to make additions and edits to the resource to suit your needs - you'd be better off doing it the usual way where you just check the cursor position to detect if it's hovering over a DX drawing. Otherwise, if you do want to try it, you'll want to start with dxCreateWindow.
FlyingSpoon Posted January 2, 2015 Author Posted January 2, 2015 Window works fine, its the rest, like buttons dont work.
Dealman Posted January 2, 2015 Posted January 2, 2015 We can't really help you if you don't provide us your code
FlyingSpoon Posted January 3, 2015 Author Posted January 3, 2015 I have no code, I just took the example from MTA Wiki and entered it into the script, it dont work though.
TrapLord Studios™ Posted January 4, 2015 Posted January 4, 2015 From what I recall, I've used the dxGui before, all the buttons and window functions work, so does the text.
FlyingSpoon Posted January 9, 2015 Author Posted January 9, 2015 I tried it, here's the code, test = exports.SDT_GUI:dxCreateWindow(500,200,250,300,"Character Selection",tocolor(0,179,255,255),"default-small","Lighter Black") exports.SDT_GUI:dxCreateButton(500,200,250,300,"Hello!",test,tocolor(255,0,0,255),"default-bold","Orange") Now the problem is window appears, but button doesn't!
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