Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: guzików
1. Nie moge podpiąc guzików pod gui
Mam problem z podpi?ciem przycisk?w pod kod panelu logowania
Oto gui
[spoiler][lua]GUIEditor = {
button = {},
staticimage = {},
memo = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
local screenW, screenH = guiGetScreenSize()
GUIEditor.staticimage[1] = guiCreateStaticImage((screenW - 1280) / 2, (screenH - 720) / 2, 1280, 720, "tlo.png", false)

tekst1 = guiCreateEdit(480, 383, 285, 30, "", false, GUIEditor.staticimage[1])
guiSetAlpha(tekst1, 0.75)
tekst2 = guiCreateEdit(480, 540, 285, 30, "", false, GUIEditor.staticimage[1])
guiSetAlpha(tekst2, 0.75)
przycisk1 = guiCreateButton(391, 616, 203, 65, "", false, GUIEditor.staticimage[1])
guiSetAlpha(przycisk1, 0.25)
przycisk2 = guiCreateButton(671, 617, 203, 64, "", false, GUIEditor.staticimage[1])
guiSetAlpha(przycisk2, 0.25)
if data.info then dxDrawText(data.info, sx*252/1024, sy*272/768, sx*800/1024, sy*255/768, tocolor(140, 0, 255, 255), 2.00, "default", "center", "center", false) end
end[/lua][/spoiler]

A to kod oryginalny kod ze starym gui po stronie clienta

[spoiler][lua]local sx,sy=guiGetScreenSize()
local data={ showed=nil, button={}, info=nil, misc=nil, }

function isMouseIn(psx,psy,pssx,pssy,abx,aby)
if not isCursorShowing() then return end
cx,cy=getCursorPosition()
...