Resulcan Posted May 25, 2020 Share Posted May 25, 2020 (edited) Buton after clicking Sikin = dgs:dgsCreateButton(9, 45, 257, 36, "Sikin", false, Wnd) of this panel I want it to open how can i come here to pull the skins Karakter = dgs:dgsCreateWindow(290, 268, 250, 283, "Karakter", false) dgs:dgsWindowSetMovable(Karakter, false) dgs:dgsWindowSetSizable(Karakter, false) dgs:dgsSetFont(Karakter, "default-bold") gridlist = dgs:dgsCreateGridList(9, 5, 231, 221, false, Karakter) dgs:dgsGridListAddColumn(gridlist, "Skin", 0.9) for i = 1, 2 do dgs:dgsGridListAddRow(gridlist) end dgs:dgsGridListSetItemText(gridlist, 0, 1, "bayan", false, false) dgs:dgsGridListSetItemText(gridlist, 1, 1, "-", false, false) Al = dgs:dgsCreateButton(9, 230, 55, 22, "Al", false, Karakter) Kapat = dgs:dgsCreateButton(74, 230, 55, 22, "Kapat", false, Karakter) dgs:dgsSetFont(Al, "default-bold") dgs:dgsSetFont(Kapat, "default-bold") No way function Skin () addEventHandler ( "onDgsMouseClickUp", Skin,Karakter) end Edited May 25, 2020 by Resulcan Link to comment
Scripting Moderators thisdp Posted May 26, 2020 Scripting Moderators Share Posted May 26, 2020 I can't understand the logic from the code. I assume you are attaching an event to a dgs element, but I can't find the function you want to execute. function openWindow() Karakter = dgs:dgsCreateWindow(290, 268, 250, 283, "Karakter", false) dgs:dgsWindowSetMovable(Karakter, false) dgs:dgsWindowSetSizable(Karakter, false) dgs:dgsSetFont(Karakter, "default-bold") gridlist = dgs:dgsCreateGridList(9, 5, 231, 221, false, Karakter) dgs:dgsGridListAddColumn(gridlist, "Skin", 0.9) for i = 1, 2 do dgs:dgsGridListAddRow(gridlist) end dgs:dgsGridListSetItemText(gridlist, 0, 1, "bayan", false, false) dgs:dgsGridListSetItemText(gridlist, 1, 1, "-", false, false) Al = dgs:dgsCreateButton(9, 230, 55, 22, "Al", false, Karakter) Kapat = dgs:dgsCreateButton(74, 230, 55, 22, "Kapat", false, Karakter) dgs:dgsSetFont(Al, "default-bold") dgs:dgsSetFont(Kapat, "default-bold") end Skin = dgs:dgsCreateButton(9, 45, 257, 36, "Skin", false, Wnd) addEventHandler("onDgsMouseClickUp",Skin,openWindow) Link to comment
Chris!i! Posted May 27, 2020 Share Posted May 27, 2020 (edited) Sikin = dgs:dgsCreateButton(9, 45, 257, 36, "Sikin", false, Wnd) Karakter = dgs:dgsCreateWindow(290, 268, 250, 283, "Karakter", false) dgs:dgsWindowSetMovable(Karakter, false) dgs:dgsWindowSetSizable(Karakter, false) dgs:dgsSetFont(Karakter, "default-bold") gridlist = dgs:dgsCreateGridList(9, 5, 231, 221, false, Karakter) dgs:dgsGridListAddColumn(gridlist, "Skin", 0.9) for i = 1, 2 do dgs:dgsGridListAddRow(gridlist) end dgs:dgsGridListSetItemText(gridlist, 0, 1, "bayan", false, false) dgs:dgsGridListSetItemText(gridlist, 1, 1, "-", false, false) Al = dgs:dgsCreateButton(9, 230, 55, 22, "Al", false, Karakter) Kapat = dgs:dgsCreateButton(74, 230, 55, 22, "Kapat", false, Karakter) dgs:dgsSetFont(Al, "default-bold") dgs:dgsSetFont(Kapat, "default-bold") function openKarakterWindow() guiSetVisible(Karakter , true) --showCursor(true) end addEventHandler ( "onClientGUIClick", Sikin , openKarakterWindow) Edited May 27, 2020 by Chris!i! 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