Jump to content

onClientGUIClick


Matevsz

Recommended Posts

How to do that when you click "zdj4" appear images of "--register"?

  
-- login 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        screenW,screenH = guiGetScreenSize() 
        local tlo = guiCreateStaticImage(0, 0, 1680, 1050, "Photos/background.jpg", false) 
        guiSetEnabled(tlo, false) 
  
        local errorLogin = guiCreateLabel(1187, 550, 475, 15, "", false) 
        guiLabelSetColor(errorLogin, 227, 0, 0) 
  
        local zapamietajKonto = guiCreateCheckBox(1246, 516, 199, 16, "Save account", true, false) 
  
        local polelogin = guiCreateEdit(1246, 417, 237, 34, "", false) 
  
        local gridlist = guiCreateGridList(24, 83, 93, 113, false, polelogin) 
  
        local polehaslo = guiCreateEdit(1246, 468, 237, 34, "", false) 
        guiEditSetMasked(polehaslo, true) 
  
        local zdj = guiCreateStaticImage(1195, 419, 33, 32, "Photos/person.png", false) 
  
        local zdj2 = guiCreateStaticImage(1194, 468, 34, 34, "Photos/password.png", false) 
  
        local zdj3 = guiCreateStaticImage(1501, 407, 106, 51, "Photos/login.png", false) 
  
        local zdj4 = guiCreateStaticImage(1501, 458, 108, 54, "Photos/register.png", false) 
  
        showCursor(true) 
  
        showChat(false) 
  
         
end) 
  
-- register 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        local tloReje = guiCreateStaticImage(0, 0, 1680, 1050, "Photos/background2.jpg", false) 
        guiSetVisible(tloReje, false) 
  
        local errorReje = guiCreateLabel(1200, 571, 460, 15, "", false) 
        guiLabelSetColor(errorReje, 227, 0, 0) 
        guiSetVisible(errorReje, false) 
  
        local poleLoginReje = guiCreateEdit(1246, 417, 237, 34, "", false) 
        guiSetVisible(poleLoginReje, false)  
  
        local gridlistReje = guiCreateGridList(24, 83, 93, 113, false, poleLoginReje) 
        guiSetVisible(gridlistReje, false)  
  
        local poleHasloReje = guiCreateEdit(1246, 468, 237, 34, "", false) 
        guiEditSetMasked(poleHasloReje, true) 
        guiSetVisible(poleHasloReje, false)  
  
        local poleHasloReje2 = guiCreateEdit(1246, 517, 237, 34, "", false) 
        guiEditSetMasked(poleHasloReje2, true) 
        guiSetVisible(poleHasloReje2, false)  
  
        local zdjReje = guiCreateStaticImage(1195, 419, 33, 32, "Photos/person.png", false) 
        guiSetVisible(zdjReje, false)  
  
        local zdjReje2 = guiCreateStaticImage(1194, 468, 34, 34, "Photos/password.png", false) 
        guiSetVisible(zdjReje2, false)  
  
        local zdjReje3 = guiCreateStaticImage(1194, 517, 34, 34, "Photos/password.png", false) 
        guiSetVisible(zdjReje3, false) 
  
        local zdjReje4 = guiCreateStaticImage(1499, 406, 115, 55, "Photos/konto.png", false) 
        guiSetVisible(zdjReje4, false) 
  
        local zdjReje5 = guiCreateStaticImage(1496, 467, 118, 54, "Photos/sh.png", false) 
        guiSetVisible(zdjReje5, false)  
  
         
end) 
  

Edited by Guest
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...