DgsCreateTabPanel: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
No edit summary  | 
				No edit summary  | 
				||
| Line 8: | Line 8: | ||
[[Image:Mta-screen 2017-08-12 14-25-35.png|frame|Example DGS Tab Panel.]]  | [[Image:Mta-screen 2017-08-12 14-25-35.png|frame|Example DGS Tab Panel.]]  | ||
===Required Arguments===    | ===Required Arguments===    | ||
*'''x:''' A float of the 2D x position of the DGS Tab   | *'''x:''' A float of the 2D x position of the DGS Tab Panel on a player's screen.  This is affected by the ''relative'' argument.  | ||
*'''y:''' A float of the 2D y position of the DGS Tab Panel on a player's screen. This is affected by the ''relative'' argument.  | *'''y:''' A float of the 2D y position of the DGS Tab Panel on a player's screen. This is affected by the ''relative'' argument.  | ||
*'''width:''' A float of the width of the DGS Tab Panel. This is affected by the ''relative'' argument.  | *'''width:''' A float of the width of the DGS Tab Panel. This is affected by the ''relative'' argument.  | ||
*'''height:''' A float of the height of the DGS Tab Panel. This is affected by the ''relative'' argument. Note: height must be enough to fit the drop down menu, else the drop down won't appear.  | *'''height:''' A float of the height of the DGS Tab Panel. This is affected by the ''relative'' argument. Note: height must be enough to fit the drop down menu, else the drop down won't appear.  | ||
*'''relative:''' This is whether sizes and positioning are relative.  If this is ''true'', then all x,y,width,height floats must be between 0 and 1, representing sizes relative to the parent.  | *'''relative:''' This is whether sizes and positioning are relative.  If this is ''true'', then all x,y,width,height floats must be between 0 and 1, representing sizes relative to the parent.  | ||
Revision as of 13:55, 12 August 2017
This function allows creation of a DGS Tab Panel.
Syntax
element dgsDxCreateTabPanel( float x, float y, float width, float height, bool relative, [ element parent = nil, element tabheight = 20, defbgcolor = ])
image
Required Arguments
- x: A float of the 2D x position of the DGS Tab Panel on a player's screen. This is affected by the relative argument.
 - y: A float of the 2D y position of the DGS Tab Panel on a player's screen. This is affected by the relative argument.
 - width: A float of the width of the DGS Tab Panel. This is affected by the relative argument.
 - height: A float of the height of the DGS Tab Panel. This is affected by the relative argument. Note: height must be enough to fit the drop down menu, else the drop down won't appear.
 - relative: This is whether sizes and positioning are relative. If this is true, then all x,y,width,height floats must be between 0 and 1, representing sizes relative to the parent.
 
