Jump to content

GUI Questions


Newbie

Recommended Posts

Posted

1. Is it possible to make a image at whole screen at all resolutions ? Or, is there any way to make a screen blacker like if i press F7 and screen gets a bit darker and after i press again it goes back to normal ?

2. How to centerize gui label ?

Thanks.

Posted

These functions will solve #1

local sizeX,sizeY = guiGetScreenSize()  -- Get the size of a client screen 
fadeCamera(player, false, 0)  -- Make the screen black 

and this will solve #2

sizeX/2  
sizeY/2 

Posted

Whole screen image for every single resolution: guiCreateStaticImage ( 0, 0, 1, 1, "image.png", true )

For camera, you can use the optional arguments for fadeCamera ( RGB colors )

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