kikos500 Posted August 31, 2016 Share 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 Link to comment
Simple0x47 Posted August 31, 2016 Share Posted August 31, 2016 Please post some screenshots Link to comment
aka Blue Posted August 31, 2016 Share Posted August 31, 2016 ¿How can i get the text of the edit?... Link to comment
kikos500 Posted September 1, 2016 Author Share 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 Link to comment
Tekken Posted September 1, 2016 Share 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? Link to comment
kikos500 Posted September 1, 2016 Author Share 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 Link to comment
Tekken Posted September 5, 2016 Share 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. Link to comment
Ashford Posted September 18, 2016 Share Posted September 18, 2016 Can't the functions be used in another resource? Like exporting it or something? Link to comment
Captain Cody Posted September 18, 2016 Share 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. Link to comment
xMKHx Posted October 3, 2016 Share Posted October 3, 2016 I found a bug in ur script this video will explain everything Link to comment
MR.GRAND Posted December 26, 2016 Share Posted December 26, 2016 Wow, good job brother, I hope you finish this script successfully Good luck Link to comment
iPrestege Posted December 26, 2016 Share Posted December 26, 2016 Great library would be nice if you update it with a gridlist's without bugs . Link to comment
Abu-Solo Posted December 28, 2016 Share Posted December 28, 2016 Would be better if you add all the GUI functions Like GridList + Lab + dxcombobox Link to comment
SpecT Posted January 22, 2017 Share 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. Link to comment
kikos500 Posted January 28, 2017 Author Share 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 Link to comment
Abu-Solo Posted January 28, 2017 Share 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 . Link to comment
Scripting Moderators thisdp Posted June 9, 2017 Scripting Moderators Share Posted June 9, 2017 This is a light and clear dx lib. Link to comment
kikos500 Posted June 14, 2017 Author Share 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 Link to comment
xMKHx Posted June 14, 2017 Share 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 Link to comment
kikos500 Posted June 15, 2017 Author Share 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 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