]> de.git.xonotic.org Git - voretournament/voretournament.git/blob - data/qcsrc/menu/voret/dialog_news.c
Initial checkout of Vore Tournament 0.1.alpha.
[voretournament/voretournament.git] / data / qcsrc / menu / voret / dialog_news.c
1 #ifdef INTERFACE\r
2 CLASS(VoretNewsDialog) EXTENDS(VoretDialog)\r
3         METHOD(VoretNewsDialog, fill, void(entity))\r
4         ATTRIB(VoretNewsDialog, title, string, "News")\r
5         ATTRIB(VoretNewsDialog, color, vector, SKINCOLOR_DIALOG_SETTINGS)\r
6         ATTRIB(VoretNewsDialog, intendedWidth, float, 0.96)\r
7         ATTRIB(VoretNewsDialog, rows, float, 24)\r
8         ATTRIB(VoretNewsDialog, columns, float, 1)\r
9 ENDCLASS(VoretNewsDialog)\r
10 #endif\r
11 \r
12 #ifdef IMPLEMENTATION\r
13 void fillVoretNewsDialog(entity me)\r
14 {\r
15         entity e;\r
16         me.TR(me);\r
17                 me.TD(me, 24, 1, e = spawnGecko());\r
18                 e.configureBrowser( e, "http://alientrap.org/voret/index.php?module=news" );\r
19 }\r
20 #endif\r