| 1 |
/* |
| 2 |
=========================================================================== |
| 3 |
Copyright (C) 2007 Open Arena Team |
| 4 |
|
| 5 |
This file is part of Open Arena. |
| 6 |
|
| 7 |
Open Arena is free software; you can redistribute it |
| 8 |
and/or modify it under the terms of the GNU General Public License as |
| 9 |
published by the Free Software Foundation; either version 2 of the License, |
| 10 |
or (at your option) any later version. |
| 11 |
|
| 12 |
Open Arena is distributed in the hope that it will be |
| 13 |
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
GNU General Public License for more details. |
| 16 |
|
| 17 |
You should have received a copy of the GNU General Public License |
| 18 |
along with Open Arena; if not, write to the Free Software |
| 19 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 |
=========================================================================== |
| 21 |
*/ |
| 22 |
|
| 23 |
#include "ui/menudef.h" |
| 24 |
|
| 25 |
{ |
| 26 |
menuDef { |
| 27 |
name skirmish |
| 28 |
visible 0 |
| 29 |
fullscreen 1 |
| 30 |
rect 0 0 640 480 |
| 31 |
focusColor MP_FOCUSCOLOR |
| 32 |
background MP_BACKGROUND |
| 33 |
onEsc { |
| 34 |
close skirmish; |
| 35 |
open main |
| 36 |
} |
| 37 |
onOpen { |
| 38 |
uiScript loadGameInfo; |
| 39 |
uiScript updateSPMenu; |
| 40 |
} |
| 41 |
|
| 42 |
itemDef { |
| 43 |
name type |
| 44 |
style 1 |
| 45 |
ownerdraw UI_GAMETYPE |
| 46 |
textstyle 3 |
| 47 |
text "Type: " |
| 48 |
rect 0 20 50 10 |
| 49 |
textalign 0 |
| 50 |
textaligny 10 |
| 51 |
textscale .2 |
| 52 |
forecolor MP_TEXTCOLOR |
| 53 |
visible 1 |
| 54 |
} |
| 55 |
|
| 56 |
itemDef { |
| 57 |
name skill |
| 58 |
style 1 |
| 59 |
ownerdraw UI_SKILL |
| 60 |
textstyle 3 |
| 61 |
text "Skill: " |
| 62 |
rect 0 40 50 10 |
| 63 |
textalign 0 |
| 64 |
textaligny 10 |
| 65 |
textscale .2 |
| 66 |
forecolor MP_TEXTCOLOR |
| 67 |
visible 1 |
| 68 |
} |
| 69 |
|
| 70 |
itemDef { |
| 71 |
name opponent |
| 72 |
style 1 |
| 73 |
ownerdraw UI_OPPONENT_NAME |
| 74 |
textstyle 3 |
| 75 |
text "Opponent: " |
| 76 |
rect 0 60 50 10 |
| 77 |
textalign 0 |
| 78 |
textaligny 10 |
| 79 |
textscale .2 |
| 80 |
forecolor MP_TEXTCOLOR |
| 81 |
visible 1 |
| 82 |
} |
| 83 |
|
| 84 |
itemDef { |
| 85 |
name maps |
| 86 |
rect 510 10 120 380 |
| 87 |
type ITEM_TYPE_LISTBOX |
| 88 |
style WINDOW_STYLE_FILLED |
| 89 |
elementwidth 100 |
| 90 |
elementheight 75 |
| 91 |
elementtype LISTBOX_IMAGE |
| 92 |
feeder FEEDER_MAPS |
| 93 |
visible 1 |
| 94 |
border 1 |
| 95 |
bordercolor 0.25 0.25 0.25 0.7 |
| 96 |
forecolor 1 1 1 1 |
| 97 |
backcolor 0 0 0 0.5 |
| 98 |
outlinecolor 1 0.5 0.1 0.3 |
| 99 |
doubleclick { uiScript skirmishStart } |
| 100 |
mouseenter { setitemcolor maps bordercolor .4 .2 .2 1; } |
| 101 |
mouseexit { setitemcolor maps bordercolor 0.25 0.25 0.25 0.7 } |
| 102 |
|
| 103 |
} |
| 104 |
|
| 105 |
|
| 106 |
} |
| 107 |
} |