Jump to content

Question


WASSIm.

Recommended Posts

I don't see it in the elements page "Element"

( win ) is element

function guidxCreateWindow(x,y,w,h,text) 
    win = guiCreateStaticImage( x,y,w,h, "black.png", false) 
    local wx, wy = guiGetSize ( win, false ) 
    guiSetProperty( win, "Alpha", 70) 
    local winup = guiCreateStaticImage( 0,0,1,0.1, "winup.jpg", true, win ) 
    local text = guiCreateLabel(0,0,1, 1,text,true, winup) 
    guiSetProperty( text, "Alpha", 300) 
    guiLabelSetHorizontalAlign(text, "center") 
    guiLabelSetVerticalAlign(text, "center") 
    guiSetFont ( text, guiCreateFont( "font.ttf", 30 ) ) 
    return win 
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...