Jump to content

(help) panel


Recommended Posts

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 by Resulcan
Link to comment
  • Scripting Moderators

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
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 by Chris!i!
Link to comment

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