Witam, kolejny problem z mojej strony,
chce aby jak si? klikne?o w przycisk od rejestracji (np) to przyciski lec? w dwie strony , nast?pnie ?aduje sie akcja rejestracji
kod renderu;
[lua]
local action = "main"
-- <-- LOGIN RENDER-- >
function render()
Fog:setFogRectangleColor(159, 159, 159, 9)
local anim_log = interpolateBetween(-400, 0, 0, 0, 0, 0,(getTickCount()-tick)/1000, "OutQuad")
local anim_reg = interpolateBetween(400, 0, 0, 0, 0, 0,(getTickCount()-tick)/1000, "OutQuad")
dxDrawImage(pos["bg"].x, pos["bg"].y, pos["bg"].w, pos["bg"].h, textures["bg"])
setTimer(function()
animation = false
end, 1000, 1)
Fog:renderFogRectangle(pos["bg"].x, pos["bg"].y, pos["bg"].w, pos["bg"].h, false)
if action == "main" then
dxDrawImage(pos["button_reg"].x + anim_reg, pos["button_reg"].y, pos["button_reg"].w, pos["button_reg"].h, textures["button_reg_off"])
dxDrawImage(pos["button_log"].x + anim_log, pos["button_log"].y, pos["button_log"].w, pos["button_log"].h, textures["button_log_off"])
if not animation then
if isMouseIn(pos["mLog"].x, pos["mLog"].y, pos["mLog"].w, pos["mLog"].h) then
dxDrawImage(pos["button_log"].x, pos["button_log"].y,... |