| 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 error_popmenu |
| 28 |
visible 0 |
| 29 |
fullscreen 1 |
| 30 |
rect 0 0 640 480 |
| 31 |
focusColor 1 1 1 1 |
| 32 |
backcolor 0 0 0 0 |
| 33 |
forecolor 0 0 0 1 |
| 34 |
focuscolor MP_FOCUSCOLOR |
| 35 |
background "ui/assets/errorbg.tga" |
| 36 |
style 0 |
| 37 |
popup |
| 38 |
onClose { uiScript clearError } |
| 39 |
onESC { close error_popmenu ; open main } |
| 40 |
|
| 41 |
itemDef { |
| 42 |
name etext |
| 43 |
rect 80 150 320 20 |
| 44 |
text "Error: " |
| 45 |
textalign 1 |
| 46 |
textstyle 6 |
| 47 |
textalignx 100 |
| 48 |
textaligny 23 |
| 49 |
forecolor 1 1 1 1 |
| 50 |
visible 1 |
| 51 |
decoration |
| 52 |
} |
| 53 |
|
| 54 |
itemDef { |
| 55 |
name emessage |
| 56 |
rect 140 160 200 270 |
| 57 |
type ITEM_TYPE_TEXT |
| 58 |
style 1 |
| 59 |
textstyle 3 |
| 60 |
textalign 1 |
| 61 |
textalignx 110 |
| 62 |
textaligny 23 |
| 63 |
autowrapped |
| 64 |
cvar "com_errorMessage" |
| 65 |
textalign ITEM_ALIGN_LEFT |
| 66 |
forecolor 1 1 1 1 |
| 67 |
visible 1 |
| 68 |
decoration |
| 69 |
} |
| 70 |
|
| 71 |
itemDef { |
| 72 |
name eexit |
| 73 |
rect 240 440 640 100 |
| 74 |
forecolor MP_TEXTCOLOR |
| 75 |
text "Exit to Main" |
| 76 |
style 0 |
| 77 |
type 1 |
| 78 |
textstyle 3 |
| 79 |
textalign 0 |
| 80 |
textaligny 10 |
| 81 |
visible 1 |
| 82 |
action { close error_popmenu ; open main } |
| 83 |
} |
| 84 |
|
| 85 |
} |
| 86 |
} |
| 87 |
|
| 88 |
|