Jump to content

[REL] dxLib


kikos500

Recommended Posts

Posted

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

  • Like 3
Posted

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

Posted

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?

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

Posted
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 
  

Posted
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.

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

  • 2 weeks later...
Posted

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.

Wolf Inc Discord

Youtube channel
Github

  • 3 weeks later...
  • 2 months later...
Posted

Wow, good job brother,
I hope you finish this script successfully :)

Good luck

 My new GCSS Script : Go 
حصريا : مود الدردشة بين السيرفرات : الذهاب

LUA progress = -100%

Join us :

 Multi Theft Auto Arab 

I'm not the best but, i'm different

Skype : kamel1234128

Someone in this world needs to remember my love .

Posted

Would be better if you add all the GUI functions

Like GridList + Lab + dxcombobox :):)

 

721195519.png

595770773.png

 

76561198277320954.pngAddFriend.png

خلك احسن من غيرك,

لا تقول عندهم اشياء ماهي عندي

انت عندك اشياء ماهي عند غيرك #

  • 4 weeks later...
Posted
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.

Posted
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 .

 

721195519.png

595770773.png

 

76561198277320954.pngAddFriend.png

خلك احسن من غيرك,

لا تقول عندهم اشياء ماهي عندي

انت عندك اشياء ماهي عند غيرك #

  • 4 months later...
Posted
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 

 

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...