[Lobby]
LEVEL 0
type lobby
// Don't need this, as we automatically call the handler fn because this is a specific object handler LobbyHandler

// *** BACKGROUND
[LobbyBackground]
type image
file Background.dds
x 0
y 0
width 1024
height 768

// *** TOP CONTROL BAR

[LobbyLogo]
parent lobbybackground
type image
x 288
y 16
width 448
height 448
FILE Title.tga
KEEPSQUARE

// *** EXIT BUTTON
[LobbyExitButton]
type button
x 16
y 12
width 64
height 64
File Button_Back.dds
command enable mainmenu CLEAR // back to the main menu
command enable mainmenuoverlay
parent lobbybackground
tooltip IDS_TT_EXIT_MP
sfxfocus 7
sfx 5

[LobbyBarTopLeft]
parent lobbybackground
type image
x 0
y 30
width 512
height 18
FILE Elements.dds
IMAGELEFT 0
IMAGETOP 0
IMAGEWIDTH 512
IMAGEHEIGHT 18

[LobbyBarTopRight]
parent lobbybackground
type image
x 512
y 30
width 512
height 18
FILE Elements.dds
IMAGELEFT 0
IMAGETOP 0
IMAGEWIDTH 512
IMAGEHEIGHT 18

[LobbyFadeTop]
parent lobbybackground
type image
x 0
y 0
width 1024
height 44
file Fade_Down.tga

[LobbyTitleDivider]
parent lobbybackground
type image
x 312
y 132
width 400
height 24
FILE Elements.dds
IMAGELEFT 0
IMAGETOP 32
IMAGEWIDTH 512
IMAGEHEIGHT 32

//
// *** TABS
// *** MY CHALLENGE TAB
[LobbyMyGamesButton]
parent lobbybackground
type button
x 150
y 165
width 190
height 25
font Default
string IDS_MP_MYGAMES
colour FFFFFFFF
// File Fade_Transparent.dds // HARDCODED: lobby_tab_0.dds for normal *_1 for selected
sfxfocus 7
sfx 5

[LobbyMyGamesText]
parent lobbybackground
type Text
x 150
y 164
width 192
height 27
windowedback 10
file Fade_Setting.tga

// ISSUE CHALLENGE TAB
[LobbyIssueButton]
parent lobbybackground
type button
x 360
y 165
width 190
height 25
font Default
string IDS_MP_ISSUE
colour FFFFFFFF
// File Fade_Transparent.dds // HARDCODED: lobby_tab_0.dds for normal *_1 for selected
sfxfocus 7
sfx 5

[LobbyIssueText]
parent lobbybackground
type Text
x 360
y 164
width 192
height 27
windowedback 10
file Fade_Setting.tga

// *** ACCEPT CHALLENGE TAB
[LobbyAcceptButton]
parent lobbybackground
type button
x 570
y 165
width 190
height 25
font Default
string IDS_MP_ACCEPT2
colour FFFFFFFF
// File Fade_Transparent.dds // HARDCODED: lobby_tab_0.dds for normal *_1 for selected
sfxfocus 7
sfx 5

[LobbyAcceptText]
parent lobbybackground
type Text
x 570
y 164
width 192
height 27
windowedback 10
file Fade_Setting.tga

// *** BOTTOM CONTROL BAR

// *** REFRESH BUTTON
[LobbyRefresh]
parent lobbybackground
type button
x 210
y 632
width 164
height 164
file Button_164_Centre.dds
string IDS_MP_REFRESH
font UIFontF
colour ff1b1b1b
sfxfocus 7
sfx 5

[LobbyRefresh_Blocker]
parent LobbyRefresh
type button
x 210
y 632
width 256
height 64
File Fade_Transparent.DDS

// *** BUY NOW BUTTON
[LobbyBuyNow]
type button
x 750
y 19
width 190
height 40
string IDS_DEMO_BUY_NOW
file myturn_button.tga
COMMAND CUSTOM 100
sfxfocus 7
sfx 5
DEMOONLY
parent lobbybackground

// *** IS THIS NEEDED?
//[LobbyBuyStar]
//type image
//x 710
//y -2
//width 69
//height 69
//file us_ranger_head.tga
//parent lobbybuynow
//DEMOONLY

// *** THE MY GAMES SCREEN
// ALL THE OBJECTS NEED TO BE ATTACHED TO THE LOBBYMYGAMESROOT OBJECT

[LobbyMyGamesRoot]
type display
parent lobbybackground

[lobbyMyGames_instructionText]
type text
x 0
y 100
width 1024
height 40
CENTER
colour ffffffff
font SmoothFontF
string ids_lobby_mygames_instruction
parent lobbyMyGamesroot

[LobbyMyGamesMyTurnButton]
parent LobbyMyGamesRoot
type button
x 150
y 201
width 190
height 25
File lobby_tab_0.dds
font Default
string IDS_MP_MYTURN
colour FFFFFFFF
sfxfocus 7
sfx 5

[LobbyMyGamesMyTurnText]
parent LobbyMyGamesRoot
type Text
x 150
y 200
width 192
height 27
windowedback 10
file Fade_Setting.tga

[LobbyMyGamesEnemyTurnButton]
parent LobbyMyGamesRoot
type button
x 360
y 201
width 190
height 25
font Default
string IDS_MP_ENEMYTURN
colour FFFFFFFF
sfxfocus 7
sfx 5

[LobbyMyGamesEnemyTurnText]
parent LobbyMyGamesRoot
type Text
x 360
y 200
width 192
height 27
windowedback 10
file Fade_Setting.tga

[LobbyMyGamesCompletedButton]
parent LobbyMyGamesRoot
type button
x 570
y 201
width 190
height 25
font Default
string IDS_MP_COMPLETED
colour FFFFFFFF
border ff000000
sfxfocus 7
sfx 5

[LobbyMyGamesCompletedText]
parent LobbyMyGamesRoot
type Text
x 570
y 200
width 192
height 27
windowedback 10
file Fade_Setting.tga

[LobbyMyGamesList]
parent LobbyMyGamesRoot
type listbox
x 122
y 260
width 780
height 420
textleft 132
texttop 272
textwidth 760
textheight 400 
font Default
colour FFFFFFFF
frametex Fade_Transparent.dds
controltex Button_List.dds
seltex CampaignListSel.tga
VALUE0 350  // width of 1st column
VALUE1 250  // width of 2nd column
VALUE7 1  // flag which tells the code what to draw (mygames)
[[*IOS]] BARSIZE 32

// *** FILTERS FOR THE LIST
[lobbyMyGamesListScenario]
parent LobbyMyGamesList
type text
x 160
y 238
width 190
height 27
colour FFFFFFFF
font Default
string ids_lobby_list_scenario
FOCUS

[lobbyMyGamesListPlayer]
parent LobbyMyGamesList
type text
x 510
y 238
width 190
height 27
colour FFFFFFFF
font Default
string ids_lobby_list_player
FOCUS

[lobbyMyGamesListDateModified]
parent LobbyMyGamesList
type text
x 760
y 238
width 190
height 27
colour FFFFFFFF
font Default
string ids_lobby_list_date
FOCUS

//[lobbyMyGamesListScenarioFilter]
//parent LobbyMyGamesList
//type image
//x 135
//y 241
//width 170
//height 16
//IMAGELEFT 256
//IMAGETOP 64
//IMAGEWIDTH 256
//IMAGEHEIGHT 32
//file Elements.dds
//keepsquare

//[lobbyMyGamesPlayerFilter]
//parent LobbyMyGamesList
//type image
//x 485
//y 241
//width 170
//height 16
//IMAGELEFT 256
//IMAGETOP 64
//IMAGEWIDTH 256
//IMAGEHEIGHT 32
//file Elements.dds
//keepsquare

//[lobbyMyGamesDateFilter]
//parent LobbyMyGamesList
//type image
//x 735
//y 241
//width 170
//height 16
//IMAGELEFT 256
//IMAGETOP 64
//IMAGEWIDTH 256
//IMAGEHEIGHT 32
//file Elements.dds
//keepsquare

[lobbyMyGamesBackground]
parent LobbyMyGamesRoot
type text
x 122
y 190
width 780
height 37
windowedback 10
file Fade_Setting.tga

// *** PLAY BUTTON
[LobbyMyGamesPlayButton]
parent lobbymygamesroot
type button
x 384
y 584
width 256
height 256
File Button_256_Centre.DDS
font UIFontF
string IDS_MP_PLAYGAME
colour ff1b1b1b
sfxfocus 7
sfx 5

[LobbyMyGamesPlayBlockerAbove]
parent LobbyMyGamesPlayButton
type button
x 384
y 587
width 256
height 110
File Fade_Transparent.DDS

[LobbyMyGamesClaimButton]
type button
x 16
y 700
width 64
height 64
File Button_Abandon.TGA
parent lobbymygamesroot
sfxfocus 7
sfx 5
tooltip ids_tt_claim


// *** THE ISSUE A CHALLENGE SCREEN
// ALL OBJECTS NEED TO BE ATTACHED TO THE LOBBYISSUEROOT OBJECT

[LobbyIssueRoot]
type display
parent lobbybackground

[lobbyIssue_instructionText]
type text
x 0
y 100
width 1024
height 40
CENTER
colour ffffffff
font SmoothFontF
string ids_lobby_issue_instruction
parent lobbyIssueroot

[LobbyIssueList]
parent LobbyIssueRoot
type listbox
x 122
y 260
width 780
height 420
textleft 132
texttop 272
textwidth 760
textheight 400 
font Default
colour FFFFFFFF
frametex Fade_Transparent.dds
controltex Button_List.dds
seltex CampaignListSel.tga
font Default
VALUE0 350  // width of 1st column
VALUE1 250  // width of 2nd column
VALUE7 0  // flag which tells the code what to draw (challenges)
[[*IOS]] BARSIZE 32

[lobbyIssueListScenario]
parent LobbyIssueList
type text
x 160
y 238
width 190
height 27
colour FFFFFFFF
font Default
string ids_lobby_list_scenario
FOCUS

[lobbyIssueListPlayer]
parent LobbyIssueList
type text
x 510
y 238
width 190
height 27
colour FFFFFFFF
font Default
string ids_lobby_list_player
FOCUS

[lobbyIssueListDateModified]
parent LobbyIssueList
type text
x 760
y 238
width 190
height 27
colour FFFFFFFF
font Default
string ids_lobby_list_date
FOCUS

//[lobbyIssueListScenarioFilter]
//parent LobbyIssueList
//type image
//x 135
//y 241
//width 170
//height 16
//IMAGELEFT 256
//IMAGETOP 64
//IMAGEWIDTH 256
//IMAGEHEIGHT 32
//file Elements.dds
//keepsquare

//[lobbyIssuePlayerFilter]
//parent LobbyIssueList
//type image
//x 485
//y 241
//width 170
//height 16
//IMAGELEFT 256
//IMAGETOP 64
//IMAGEWIDTH 256
//IMAGEHEIGHT 32
//file Elements.dds
//keepsquare

//[lobbyIssueDateFilter]
//parent LobbyIssueList
//type image
//x 735
//y 241
//width 170
//height 16
//IMAGELEFT 256
//IMAGETOP 64
//IMAGEWIDTH 256
//IMAGEHEIGHT 32
//file Elements.dds
//keepsquare

// *** New Challenge
[LobbyIssuePlayButton]
parent LobbyIssueList
type button
x 384
y 584
width 256
height 256
File Button_256_Centre.DDS
font UIFontF
colour ff1b1b1b
string IDS_MP_NEWCHALLENGE
sfxfocus 7
sfx 5

[LobbyIssuePlayBlockerAbove]
parent LobbyIssuePlayButton
type button
x 384
y 587
width 256
height 110
File Fade_Transparent.DDS

// *** Cancel Challenge
[lobbyIssueCancelButton]
type button
x 16
y 700
width 64
height 64
File Button_Abandon.TGA
parent LobbyIssueRoot
tooltip IDS_MP_CANCELCHALLENGE
sfxfocus 7
sfx 5



// *** THE GAMES LIST SCREEN
// ALL OBJECTS NEED TO BE CHILDREN OF THE LOBBYACCEPTROOT OBJECT

[LobbyAcceptRoot]
type display
parent lobbybackground


[lobbyAccept_instructionText]
parent lobbyacceptroot
type text
x 0
y 100
width 1024
height 40
CENTER
colour ffffffff
font SmoothFontF
string ids_lobby_accept_instruction

[LobbyAcceptList]
parent LobbyAcceptRoot
type listbox
x 122
y 260
width 780
height 420
textleft 132
texttop 272
textwidth 760
textheight 400 
font Default
colour FFFFFFFF
frametex Fade_Transparent.dds
controltex Button_List.dds
seltex CampaignListSel.tga
font Default
VALUE0 350  // width of 1st column
VALUE1 250  // width of 2nd column
VALUE7 0  // flag which tells the code what to draw (challenges)
[[*IOS]] BARSIZE 32

[lobbyAcceptListScenario]
parent LobbyAcceptList
type text
x 160
y 238
width 190
height 27
colour FFFFFFFF
font Default
string ids_lobby_list_scenario
FOCUS

[lobbyAcceptListPlayer]
parent LobbyAcceptList
type text
type text
x 510
y 238
width 190
height 27
colour FFFFFFFF
font Default
string ids_lobby_list_player
FOCUS

[lobbyAcceptListDateModified]
parent LobbyAcceptList
type text
x 760
y 238
width 190
height 27
colour FFFFFFFF
font Default
string ids_lobby_list_date
FOCUS

[lobbyAcceptListScenarioFilter]
parent LobbyAcceptList
type image
x 135
y 241
width 170
height 16
IMAGELEFT 256
IMAGETOP 64
IMAGEWIDTH 256
IMAGEHEIGHT 32
file Elements.dds

[lobbyAcceptPlayerFilter]
parent LobbyAcceptList
type image
x 485
y 241
width 170
height 16
IMAGELEFT 256
IMAGETOP 64
IMAGEWIDTH 256
IMAGEHEIGHT 32
file Elements.dds

[lobbyAcceptDateFilter]
parent LobbyAcceptList
type image
x 735
y 241
width 170
height 16
IMAGELEFT 256
IMAGETOP 64
IMAGEWIDTH 256
IMAGEHEIGHT 32
file Elements.dds

[lobbyAcceptBackground]
parent lobbyacceptroot
type text
x 122
y 190
width 780
height 37
windowedback 10
file Fade_Setting.tga

// *** ACCEPT CHALLENGE
// *** New Challenge
[LobbyAcceptPlayButton]
parent lobbyacceptroot
type button
x 384
y 584
width 256
height 256
File Button_256_Centre.DDS
font UIFontF
colour ff1b1b1b
string IDS_MP_ACCEPT
sfxfocus 7
sfx 5

[LobbyAcceptPlay_Blocker]
parent LobbyAcceptPlayButton
type button
x 384
y 587
width 256
height 110
File Fade_Transparent.DDS

//*** Filters
//[LobbyMyGamesMyTurnText]
//parent LobbyMyGamesRoot
//type Text
//x 150
//y 200
//width 150
//height 27
//windowedback 10
//file Fade_Setting.tga
//
//
[LobbyAcceptShowUserButton]
parent LobbyAcceptList
type button
x 135
y 201
width 170
height 25
font ToolTipFont
colour FFFFFFFF
file Button_Setting_Overlay.tga
string IDS_MP_HIDEUSER
sfxfocus 7
sfx 5

[LobbyAcceptShowOfficialButton]
parent LobbyAcceptList
type button
x 315
y 201
width 170
height 25
font ToolTipFont
colour FFFFFFFF
file Button_Setting_Overlay.tga
string IDS_MP_HIDEOFFICIAL
sfxfocus 7
sfx 5

[LobbyAcceptShowPrivateButton]
parent LobbyAcceptList
type button
x 495
y 201
width 170
height 25
font Default
colour FFFFFFFF
file Button_Setting_Overlay.tga
string IDS_MP_HIDEPUBLIC
sfxfocus 7
sfx 5

[LobbyAcceptShowPublicButton]
parent LobbyAcceptList
type button
x 675
y 201
width 170
height 25
font Default
colour FFFFFFFF
file Button_Setting_Overlay.tga
string IDS_MP_HIDEPRIVATE
sfxfocus 7
sfx 5

[LobbyAcceptShowPVPButton]
parent LobbyAcceptList
type button
x -1360
y 201
width 170
height 25
font ToolTipFont
colour FFFFFFFF
string IDS_MP_TOGGLEPVP
sfxfocus 7
sfx 5

[LobbyAcceptShowCoopButton]
parent LobbyAcceptList
type button
x -1360
y 201
width 150
height 25
font ToolTipFont
colour FFFFFFFF
string IDS_MP_TOGGLECOOP
sfxfocus 7
sfx 5

[LobbyListBackground]
parent LobbyBackground
type text
x 122
y 190
width 780
height 490
windowedback 10
file Fade_Setting.tga

[LobbyFadeCentre]
parent LobbyBackground
type image
x 0
y 44
width 1024
height 724
FILE Fade_Centre.tga



