UILayout Horizontal

From Mod Wiki
Revision as of 12:05, 21 November 2007 by JRAD (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Class Tree

Overview

A horizontal layout will automatically order child windows horizontally. All child window rectangles are relative to the the previously defined child rectangle.

This class may be used in the GUIs. It will inherit all properties, flags, functions and events from UILayout_StaticBase.

Window type:

type layoutHorizontal;

Example:

windowDef lytMedals {
	type layoutHorizontal;
	properties {
		rect rect = PADDING, 150, _fill_to_right_of( statsPlayerBanner_Achievements ), 210;
		string class;
		float selectedItem = -1;
	}

	// Place each button directly to the right of the previously defined button
	_achievements_list( Soldier,      "soldier" )
	_achievements_list( Medic,        "medic" )
	_achievements_list( Engineer,     "engineer" )
	_achievements_list( FieldOps,     "fieldops" )
	_achievements_list( CovertOps,    "covertops" )
	_achievements_list( BattleSense,  "battlesense" )
	_achievements_list( LightWeapons, "lightweapons" )
	_achievements_list( Vehicles,     "vehicles" )
}

Properties

UILayout Horizontal Properties

Flags

UILayout Horizontal Flags

Functions

Events