Jump to content

[HELP]a question about gui.


DiGiTal

Recommended Posts

@NeXuS™

you didn't understand, How i get those pixels.

20 minutes ago, NeXuS™ said:

Those are variables, you can type in 0-1 if you have that true at the end, if it's false, you can enter a number which will represent pixels.

you didn't understand, How i get those pixels.

Edited by Ridden
Link to comment
local sX, sY = guiGetScreenSize()
local X, Y, Width, Height = 0.1, 0.1, 0.2, 0.2

local guiW = guiCreateWindow(X, Y, Width, Height, "Test", true)
local pixelX, pixelY, pixelWidth, pixelHeight = X*sX, Y*sY, Width*sX, Height*sY

Try this one.

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