[Context]
ContextName=MainMenu

##################################

# Background image + buttons

[MainMenuBackground]
Type=Image
Texture=MENU.IMG

[MainMenuLoadGameButton]
Type=Button
Position=168,58
Size=150,20
Pivot=Middle
Callback=MainMenuUI.onLoadGameButtonSelected

[MainMenuNewGameButton]
Type=Button
Position=168,112
Size=150,20
Pivot=Middle
Callback=MainMenuUI.onNewGameButtonSelected

[MainMenuExitButton]
Type=Button
Position=168,158
Size=45,20
Pivot=Middle
Callback=MainMenuUI.onExitGameButtonSelected

##################################

# Test game button

[MainMenuTestButtonImage]
Type=Image
Position=150,190
Pivot=Middle
DrawOrder=1
Texture=Custom1,30,14

[MainMenuTestButtonTextBox]
Type=TextBox
Position=150,190
Pivot=Middle
DrawOrder=2
WorstCaseText=WWWWW
Text=Test
FontName=ARENAFNT.DAT
TextColor=255,255,255,255
TextAlignment=MiddleCenter

[MainMenuTestButton]
Type=Button
Position=135,183
Callback=MainMenuUI.onTestGameButtonSelected
ContentElementName=MainMenuTestButtonImage

##################################

# Test type

[TestTypeArrowsImage]
Type=Image
Position=312,164
DrawOrder=2
Texture=UPDOWN.IMG
Palette=CHARSHT.COL

[TestTypeTextBox]
Type=TextBox
Position=310,172
Pivot=MiddleRight
DrawOrder=3
WorstCaseText=WWWWWWWWWWWWWWW
FontName=ARENAFNT.DAT
TextColor=255,255,255,255
TextAlignment=MiddleRight

[TestTypeUpButton]
Type=Button
Position=312,164
Size=8,8
Callback=MainMenuUI.onTestTypeUpButtonSelected

[TestTypeDownButton]
Type=Button
Position=312,172
Size=8,8
Callback=MainMenuUI.onTestTypeDownButtonSelected

##################################

# Test index

[TestIndexArrowsImage]
Type=Image
Position=302,182
DrawOrder=2
Texture=UPDOWN.IMG
Palette=CHARSHT.COL

[TestIndexTextBox]
Type=TextBox
Position=300,190
Pivot=MiddleRight
DrawOrder=3
WorstCaseText=WWWWWWWWWWWWWWW
FontName=ARENAFNT.DAT
TextColor=255,255,255,255
TextAlignment=MiddleRight

[TestIndexUpButton]
Type=Button
Position=302,182
Size=8,8
Callback=MainMenuUI.onTestIndexUpButtonSelected

[TestIndexDownButton]
Type=Button
Position=302,190
Size=8,8
Callback=MainMenuUI.onTestIndexDownButtonSelected

##################################

# Test index 2 (interior variants)

[TestIndex2ArrowsImage]
Type=Image
Position=312,182
DrawOrder=2
Texture=UPDOWN.IMG
Palette=CHARSHT.COL

[TestIndex2UpButton]
Type=Button
Position=312,182
Size=8,8
Callback=MainMenuUI.onTestIndex2UpButtonSelected

[TestIndex2DownButton]
Type=Button
Position=312,190
Size=8,8
Callback=MainMenuUI.onTestIndex2DownButtonSelected

##################################

# Test weather

[TestWeatherArrowsImage]
Type=Image
Position=312,146
DrawOrder=2
Texture=UPDOWN.IMG
Palette=CHARSHT.COL

[TestWeatherTextBox]
Type=TextBox
Position=310,154
Pivot=MiddleRight
DrawOrder=3
WorstCaseText=WWWWWWWWWWWWWWWW
FontName=ARENAFNT.DAT
TextColor=255,255,255,255
TextAlignment=MiddleRight

[TestWeatherUpButton]
Type=Button
Position=312,146
Size=8,8
Callback=MainMenuUI.onTestWeatherUpButtonSelected

[TestWeatherDownButton]
Type=Button
Position=312,154
Size=8,8
Callback=MainMenuUI.onTestWeatherDownButtonSelected

##################################

# Hotkeys

[LoadGameInputListener]
Type=InputListener
InputActionName=LoadGame
Callback=MainMenuUI.onLoadGameInputAction

[NewGameInputListener]
Type=InputListener
InputActionName=NewGame
Callback=MainMenuUI.onNewGameInputAction

[ExitGameInputListener]
Type=InputListener
InputActionName=ExitGame
Callback=MainMenuUI.onExitGameInputAction

[TestGameInputListener]
Type=InputListener
InputActionName=TestGame
Callback=MainMenuUI.onTestGameInputAction
