Jump to content

Resolution problem HELP!!!!!!!!!!!


Bandito

Recommended Posts

Posted (edited)

Hi there! i have problem with gui resolution i create this button :

local x,y = guiGetScreenSize ( ) 
GUIEditor.button[1] = guiCreateButton(x*321/1366, y*565/768, x*157/1366, y*29/768, "Hello", false, GUIEditor.staticimage[1]) 

1366 - 768 My screen resolution : )

But the problem the resolution works fine for me only other screen resolution doesn't work as it should .

Edited by Guest
Posted
You dont need to set it for resolutions sense it haves a parent. You only need to set GUI/DX elements that dont have a parent for all resolutions.

I don't understand what you're telling me.

Posted
You dont need to set it for resolutions sense it haves a parent. You only need to set GUI/DX elements that dont have a parent for all resolutions.

Hmmm... IDK if this is 100% true. IF you make a centered GuiWindow , and a GuiButton with parent element the created window, that dosen't mean that the button can't move inside the Window on other res.

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

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