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! GitHub: https://github.com/flyingspoon YouTube: https://www.youtube.com/channel/UClsnd4SEid3gob33DSk1-GQ
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. If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
FlyingSpoon Posted January 2, 2015 Author Posted January 2, 2015 Window works fine, its the rest, like buttons dont work. GitHub: https://github.com/flyingspoon YouTube: https://www.youtube.com/channel/UClsnd4SEid3gob33DSk1-GQ
Dealman Posted January 2, 2015 Posted January 2, 2015 We can't really help you if you don't provide us your code If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
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. GitHub: https://github.com/flyingspoon YouTube: https://www.youtube.com/channel/UClsnd4SEid3gob33DSk1-GQ
Dealman Posted January 3, 2015 Posted January 3, 2015 Then post what you currently have. If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
FlyingSpoon Posted January 4, 2015 Author Posted January 4, 2015 I have nothing lol. GitHub: https://github.com/flyingspoon YouTube: https://www.youtube.com/channel/UClsnd4SEid3gob33DSk1-GQ
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. Visit TrapLord Studios™
FlyingSpoon Posted January 9, 2015 Author Posted January 9, 2015 Give me an example! GitHub: https://github.com/flyingspoon YouTube: https://www.youtube.com/channel/UClsnd4SEid3gob33DSk1-GQ
Dealman Posted January 9, 2015 Posted January 9, 2015 dxCreateButton If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
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! GitHub: https://github.com/flyingspoon YouTube: https://www.youtube.com/channel/UClsnd4SEid3gob33DSk1-GQ
FlyingSpoon Posted January 9, 2015 Author Posted January 9, 2015 Never mind it appears ! GitHub: https://github.com/flyingspoon YouTube: https://www.youtube.com/channel/UClsnd4SEid3gob33DSk1-GQ
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