Debian Codegraph @

mp-pak0/ui/createfavorite.menu

raw
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 menuDef {
26 name createfavorite
27 visible 0
28 fullscreen 0
29 rect 240 140 200 200
30 outOfBoundsClick
31 focuscolor MP_FOCUSCOLOR
32 onEsc {
33 close createfavorite;
34 open joinserver
35 }
36
37 itemDef {
38 name sopeoplecanreadit
39 rect 0 0 200 200
40 style WINDOW_STYLE_FILLED
41 border 1
42 bordercolor MP_BOX_BORDER
43 forecolor MP_BOX_FORE
44 backcolor MP_BOX_BACK
45 outlinecolor MP_BOX_OUTLINE
46 decoration
47 visible 1
48 }
49
50 itemDef {
51 name servername
52 text "Name"
53 type 0
54 decoration
55 textscale .2
56 rect 100 32 59 10
57 textalign 1
58 textaligny 10
59 forecolor MP_TEXTCOLOR
60 visible 1
61 }
62
63 itemDef {
64 name snameenter
65 text ""
66 maxchars 15
67 textscale .2
68 type 4
69 cvar "ui_favoritename"
70 rect 40 51 120 15
71 textalign 0
72 textaligny 10
73 visible 1
74 border 1
75 bordercolor MP_BOX_BORDER
76 forecolor 1 1 1 1
77 backcolor MP_BOX_BACK
78 outlinecolor MP_BOX_OUTLINE
79 mouseenter {
80 setitemcolor snameenter forecolor MP_FOCUSCOLOR
81 }
82 mouseexit {
83 setitemcolor snameenter forecolor 1 1 1 1
84 }
85 }
86
87 itemDef {
88 name addy
89 text "IP Address"
90 style 0
91 decoration
92 textscale .2
93 type 0
94 rect 100 82 70 20
95 textalign 1
96 textaligny 10
97 forecolor MP_TEXTCOLOR
98 visible 1
99 }
100
101 itemDef {
102 name adentry
103 text ""
104 maxchars 21
105 textscale .2
106 type 4
107 cvar "ui_favoriteAddress"
108 rect 40 111 120 15
109 textalign 0
110 textaligny 10
111 visible 1
112 border 1
113 bordercolor MP_BOX_BORDER
114 forecolor 1 1 1 1
115 backcolor MP_BOX_BACK
116 outlinecolor MP_BOX_OUTLINE
117 mouseenter {
118 setitemcolor adentry forecolor MP_FOCUSCOLOR
119 }
120 mouseexit {
121 setitemcolor adentry forecolor 1 1 1 1
122 }
123 }
124
125 itemDef {
126 name aaight
127 text "Add"
128 type 1
129 textscale .2
130 style ITEM_TYPE_BUTTON
131 rect 160 168 30 10
132 textalign 0
133 textaligny 10
134 forecolor MP_TEXTCOLOR
135 visible 1
136 action {
137 uiScript CreateFavorite;
138 close createfavorite;
139 open joinserver
140 }
141 }
142
143 itemDef {
144 name hellno
145 text "Back"
146 type 1
147 textscale .2
148 style ITEM_TYPE_BUTTON
149 rect 20 168 30 10
150 textalign 0
151 textaligny 10
152 forecolor MP_TEXTCOLOR
153 visible 1
154 action {
155 close createfavorite;
156 open joinserver
157 }
158 }
159 }
160 }