| Tematy otagowane jako: guicreatebutton |
| 1. guiCreateButton |
Witam. Dlaczego to nie dzia?a? Serwer:
|
| 2. Skalowanie guiCreateEdit guiCreateButton |
Mam problem z skalowaniem guiCreateEdit , guiCreateButton
[lua]
local x,y = guiGetScreenSize()
oX, oY= 1280, 720
--x,y = 1024,700
loginedit = guiCreateEdit( 0.05/oX*x, 0.6/oY*y, 0.22/oX*x, 0.05/oY*y, "", true )
hasloedit = guiCreateEdit( 0.05/oX*x, 0.7/oY*y, 0.22/oX*x, 0.05/oY*y, "", true )
zaloguj = guiCreateButton( 0.05/oX*x, 0.8/oY*y, 0.22/oX*x, 0.05/oY*y, "Zaloguj", true )
rejestruj = guiCreateButton( 0.05/oX*x, 0.9/oY*y, 0.22/oX*x, 0.05/oY*y, "Rejestruj", true )
function panel()
showChat(false)
local postepZDJ = math.sin((getTickCount()/360)*3)
dxDrawImage(800/oX*x,20/oY*y,561/oX*x,763/oY*y,"files/4.png")
dxDrawRectangle(0/oX*x,0/oY*y,400/oX*x,720/oY*y,tocolor ( 0, 0, 0, 130 ))
dxDrawImage(3/oX*x,20/oY*y + postepZDJ,550/oX*x,200/oY*y,"files/logo.png")
dxDrawText("Witam na serwerze ArgonathRPG! Aby zacz??ngre na naszym serwerze musisz za?o?y? konto.n Je?li posiadasz ju? konto u nas to zapraszamndo wsp?lnej gry ! Zapraszamy te?nna naszym portal www.gtao.pl.",30/oX*x,200/oY*y , _, _,tocolor ( 255, 255,255, 255 ), 1/oX*x,font,"left","top")
dxDrawText("Login:",185/oX*x,400/oY*y , _, _,tocolor ( 255, 255,255, 255 ), 0.8/oX*x,font2,"left","top")
dxDrawText("Has?o:",185/oX*x,470/oY*y , _, _,tocolor ( 255, 255,255, 255 ), 0.8/oX*x,font2,"left","top")
-- dxDrawText
end
addEventHandler("... |
| 3. guiCreateButton nie działa |
ta funkcja nie dzia?a, nie tworz? si? przyciski
local teamPanel = guiCreateWindow ( 0.25, 0.05, 0.5, 0.9, "Panel Team'ow by SEBO", true )
local teamList = guiCreateGridList ( 10, 30, 600, 400, false, teamPanel )
stworz = guiCreateButton ( 650, 30, 40, 100, "Stworz Team", false, teamPanel )
usun = guiCreateButton ( 650, 140, 40, 100, "Usun Team", false, teamPanel )
wyjdz = guiCreateButton ( 650, 250, 40, 100, "Wyjdz", false, teamPanel )
guiSetVisible(teamPanel, true)
showCursor(false)
[ Dodano: 2012-09-28, 11:52 ]
wyskakuje takie co?:
 |
|