Panel Positioning: Difference between revisions

From Empires Wiki
Jump to navigation Jump to search
m (Thexa4 moved page HUD pos to Panel Positioning)
No edit summary
 
Line 1: Line 1:
The position of a HUD element is determined by the following two variables:
The position of a [[Panel]] is determined by the following two variables:
# xpos
# xpos
# ypos
# ypos
Line 6: Line 6:


You may also enter a '''r''' before the value to give a position relative to the lower right corner of the HUD.
You may also enter a '''r''' before the value to give a position relative to the lower right corner of the HUD.
For more options, refer to: https://developer.valvesoftware.com/wiki/VGUI_Position_and_Size_Flags

Latest revision as of 12:50, 7 August 2017

The position of a Panel is determined by the following two variables:

  1. xpos
  2. ypos

The value of both variables determine the position of the upper left corner of the HUD element relative to the upper left corner of the screen ((0,0) being the upper left corner and (640,480) being the lower right corner in a 640x480 setting).

You may also enter a r before the value to give a position relative to the lower right corner of the HUD. For more options, refer to: https://developer.valvesoftware.com/wiki/VGUI_Position_and_Size_Flags