Jump to content

guiSetSize


KaMeR

Recommended Posts

why it doesnt work? size doesnt change

        WindowForm = guiCreateWindow ( 0.15, 0.2, 0.60, 0.50, "GUI", true ) 
        editX = guiCreateEdit( 0.1, 0.5, 0.10, 0.06, "0.1", true, WindowForm ) 
    editY = guiCreateEdit( 0.1, 0.6, 0.10, 0.06, "0.2", true, WindowForm ) 
    button = guiCreateButton( 0.1, 0.2, 0.15, 0.06, "B TEST", true, WindowForm )     
  
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), 
        function () 
            if (source == button) then 
                local textX = guiSetText ( editX ) 
        local textY = guiSetText ( editY ) 
            guiSetSize ( WindowForm,  textX, textY, true ) 
           end 
      end 
) 

btw is any gui editor?

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