Jump to content

Create GUI Frame


Recommended Posts

local miasta_bg = guiCreateStaticImage ( 25, 25, 300, 75, "files/images/gui/blank.png", false ) -- don't look at the file name 
  
  
function createGUIFrame ( x, y, width, height, parent ) 
    if x and y then 
        if width and height then 
            frame_up = guiCreateStaticImage ( 0, 0, width, 1, "files/images/gui/blank.png", false, parent ) 
            frame_left = guiCreateStaticImage ( 0, 0, 1, height, "files/images/gui/blank.png", false, parent ) 
            frame_down = guiCreateStaticImage ( 0, y, width, 1, "files/images/gui/blank.png", false, parent ) 
            frame_right = guiCreateStaticImage ( x, 0, 1, height, "files/images/gui/blank.png", false, parent ) 
            guiSetProperty ( frame_up, "ImageColours", "tl:FF000000 tr:FF000000 bl:FF000000 br:FF000000" ) 
            guiSetProperty ( frame_left, "ImageColours", "tl:FF000000 tr:FF000000 bl:FF000000 br:FF000000" ) 
            guiSetProperty ( frame_down, "ImageColours", "tl:FF000000 tr:FF000000 bl:FF000000 br:FF000000" ) 
            guiSetProperty ( frame_right, "ImageColours", "tl:FF000000 tr:FF000000 bl:FF000000 br:FF000000" ) 
        end 
    end 
end 
  
createGUIFrame ( 25, 25, 300, 75, miasta_bg ) 

That's because the function is not handled yet you can try this.

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