kikos500 Posted August 31, 2016 Posted August 31, 2016 Well im presenting a new dx library today it includes the following: Windows createWindow( id, x, y, w, h, color, text) Tabs createTab(id,x,y,w,h,text,active,parent,bord) bord = if u want the tab to be boredered Edits createEdit(id, x, y, w, h, text, parent) Checks createCheckBox(id,x,y,text,active,parent) Buttons createButton(id,x,y,w,h,text,parent,color,colorh) and there is some more things u can edit by using the class ex button = createButton(...) button.color = {0,0,0,255} thats all for now on TODO LIST: Gridlists (99.999999999%) download link? https://community.multitheftauto.com/in ... s&id=13635 3
kikos500 Posted September 1, 2016 Author Posted September 1, 2016 http://imgur.com/a/KAtGU -- screens file used in screens local screenW, screenH = guiGetScreenSize() win = createWindow(1,(screenW - 444) / 2, (screenH - 337) / 2, 444, 337,{0,0,0,150},"test") tab1 = createTab(1,9, 58, 109, 35,"Tab 1",true,win,false) tab2 = createTab(2,9, 93, 109, 35,"Tab 2",false,win,false) button1 = createButton(1,183, 110, 111, 33,"pos",tab1,{0,0,255,150},{0,0,255,255}) check = createCheckBox(1,173, 60,"CheckTab2",false,tab2) function checkfunction() if check.active then outputChatBox("Checkbox: Active") else outputChatBox("Checkbox: Not active") end end check.func = checkfunction function button() local x,y,z = getElementPosition(localPlayer) outputChatBox(getPlayerName(localPlayer)..": X = "..x.." Y = "..y.." Z = "..z.."") end button1.func = button function curs() if not win.visible then win.visible = true showCursor(true) else win.visible = false showCursor(false) end end bindKey("f","down",curs) ---------------------- ¿How can i get the text of the edit?... well just use edit.text like local edit = createEdit(id, x, y, w, h, text, parent) outputChatBox(edit.text) --------------- Download the new version some bugs are fixed https://community.multitheftauto.com/in ... s&id=13635
Tekken Posted September 1, 2016 Posted September 1, 2016 The local edit = createEdit(id, x, y, w, h, text, parent) Will return a string right? Can't you add a function like editGetText(edit) to get the text of the edit?
kikos500 Posted September 1, 2016 Author Posted September 1, 2016 The local edit = createEdit(id, x, y, w, h, text, parent) Will return a string right? Can't you add a function like editGetText(edit) to get the text of the edit? No it returns a table with all the edit data (x,y,w,h,text,parent,color,etc) why should i add such a function while u can use edit.text its the same it will just be a pointless function but if you want it here you go function editGetText(edit) if not edit.text then return nil end return edit.text end function editSetText(edit, text) if not edit.text then return nil end edit.text = text end
Tekken Posted September 5, 2016 Posted September 5, 2016 On 9/1/2016 at 2:45 PM, kikos500 said: No it returns a table with all the edit data (x,y,w,h,text,parent,color,etc) why should i add such a function while u can use edit.text its the same it will just be a pointless function but if you want it here you go function editGetText(edit) if not edit.text then return nil end return edit.text end function editSetText(edit, text) if not edit.text then return nil end edit.text = text end Oh ok now I got it.
Ashford Posted September 18, 2016 Posted September 18, 2016 Can't the functions be used in another resource? Like exporting it or something?
Captain Cody Posted September 18, 2016 Posted September 18, 2016 I was able to make a dxLib that automatically converts the default GUI into Dx, really it would have been easier to manually convert every bit of the resources to DX because of the shear amount of work that I had to do to make it work though.
xMKHx Posted October 3, 2016 Posted October 3, 2016 I found a bug in ur script this video will explain everything
MR.GRAND Posted December 26, 2016 Posted December 26, 2016 Wow, good job brother, I hope you finish this script successfully Good luck
iPrestege Posted December 26, 2016 Posted December 26, 2016 Great library would be nice if you update it with a gridlist's without bugs .
Abu-Solo Posted December 28, 2016 Posted December 28, 2016 Would be better if you add all the GUI functions Like GridList + Lab + dxcombobox
SpecT Posted January 22, 2017 Posted January 22, 2017 On 4.10.2016 г. at 00:05, [NIG]MKH said: I found a bug in ur script this video will explain everything Well you can check if the window is opened when the on click even is triggered. So if it's not opened it won't work.
kikos500 Posted January 28, 2017 Author Posted January 28, 2017 (edited) well i fixed that a couple of months ago i just didn't release it anyway i made the list 90% just the scrolling i don't have much time to do it so im releasing what i did in it https://community.multitheftauto.com/index.php?p=resources&s=details&id=13635 @[NIG]MKH, @Abu-Solo. @iPrestege, @MR.GRAND Edited January 28, 2017 by kikos500 3
Abu-Solo Posted January 28, 2017 Posted January 28, 2017 5 minutes ago, kikos500 said: well i fixed that a couple of months ago i just didn't release it anyway i made the list 90% just the scrolling i don't have much time to do it so im releasing what i did in it https://community.multitheftauto.com/index.php?p=resources&s=details&id=13635 @[NIG]MKH, @Abu-Solo. @iPrestege, @MR.GRAND Thank you anyways .
Scripting Moderators thisdp Posted June 9, 2017 Scripting Moderators Posted June 9, 2017 This is a light and clear dx lib.
kikos500 Posted June 14, 2017 Author Posted June 14, 2017 (edited) On 6/9/2017 at 04:55, thisdp said: This is a light and clear dx lib. simple is good Edited June 14, 2017 by kikos500
xMKHx Posted June 14, 2017 Posted June 14, 2017 i tried to make a simple Dx Window with exports but i failed, can you just make a simple script, and lemme make make another one base on it
kikos500 Posted June 15, 2017 Author Posted June 15, 2017 On 6/14/2017 at 20:11, xMKHx said: i tried to make a simple Dx Window with exports but i failed, can you just make a simple script, and lemme make make another one base on it actually i wouldn't recommend this library if u want to create a server use this one its much better 1
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