Jump to content

Versino in right hand side


benwilkins

Recommended Posts

  
  
GUIEditor_Label[1] = guiCreateLabel(715, 568, 78, 17, "Version 2.0.4" ,false) 
guiLabelSetColor(GUIEditor_Label[1],255,255,255) 
guiLabelSetVerticalAlign(GUIEditor_Label[1],"bottom") 
guiLabelSetHorizontalAlign(GUIEditor_Label[1],"right",false) 
  
  

Ive done that, but its find in one aspect ration, but in a differant resolution its in the middle of the screen, help?

Link to comment
local screenWidth, screenHeight = guiGetScreenSize() 
  
GUIEditor_Label[1] = guiCreateLabel(715, 568, 78, 17, "Version 2.0.4" ,false) 
guiLabelSetColor(GUIEditor_Label[1],255,255,255) 
local labelWidth = guiLabelGetTextExtent(GUIEditor_Label[1]) 
local labelHeight = guiLabelGetFontHeight(GUIEditor_Label[1]) 
guiSetPosition(GUIEditor_Label[1], screenWidth - labelWidth, screenHeight - labelHeight - 100, false) 

change the - 100 on setPosition to whatever value is needed

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