From cf8d239dbe92720a24e8968c0b00ec2d4eec060f Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Mon, 12 Oct 2009 19:17:00 +0000 Subject: * (bug 4295) Add an option to view Tremulous news to the main menu --- assets/ui/main.menu | 26 +++++++++++++++++++++++--- assets/ui/menudef.h | 1 + assets/ui/menus.txt | 1 + 3 files changed, 25 insertions(+), 3 deletions(-) (limited to 'assets') diff --git a/assets/ui/main.menu b/assets/ui/main.menu index 5c84d87c..b2a241c4 100644 --- a/assets/ui/main.menu +++ b/assets/ui/main.menu @@ -72,6 +72,26 @@ } } + itemDef + { + name mainmenu + text "News" + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_NORMAL + textscale .416 + rect X (Y+(1*ELEM_H)) W ELEM_H + textalign ALIGN_RIGHT + backcolor 0 0 0 0 + forecolor 1 1 1 1 + visible MENU_TRUE + action + { + play "sound/misc/menu1.wav"; + open news_menu + } + } + itemDef { name mainmenu @@ -80,7 +100,7 @@ style WINDOW_STYLE_EMPTY textstyle ITEM_TEXTSTYLE_NORMAL textscale .416 - rect X (Y+ELEM_H) W ELEM_H + rect X (Y+(2*ELEM_H)) W ELEM_H textalign ALIGN_RIGHT backcolor 0 0 0 0 forecolor 1 1 1 1 @@ -100,7 +120,7 @@ style WINDOW_STYLE_EMPTY textstyle ITEM_TEXTSTYLE_NORMAL textscale .416 - rect X (Y+(2*ELEM_H)) W ELEM_H + rect X (Y+(3*ELEM_H)) W ELEM_H textalign ALIGN_RIGHT backcolor 0 0 0 0 forecolor 1 1 1 1 @@ -119,7 +139,7 @@ type ITEM_TYPE_BUTTON style WINDOW_STYLE_EMPTY textstyle ITEM_TEXTSTYLE_NORMAL - rect X (Y+(3*ELEM_H)) W ELEM_H + rect X (Y+(4*ELEM_H)) W ELEM_H textscale .416 textalign ALIGN_RIGHT forecolor 1 1 1 1 diff --git a/assets/ui/menudef.h b/assets/ui/menudef.h index 41412225..0ec235ab 100644 --- a/assets/ui/menudef.h +++ b/assets/ui/menudef.h @@ -93,6 +93,7 @@ enum FEEDER_HUMANTEAM_LIST, // human team members FEEDER_TEAM_LIST, // team members for team voting FEEDER_PLAYER_LIST, // players + FEEDER_NEWS, // news FEEDER_MODS, // list of available mods FEEDER_DEMOS, // list of available demo files FEEDER_SERVERSTATUS, // server status diff --git a/assets/ui/menus.txt b/assets/ui/menus.txt index 294d9953..e9f51093 100644 --- a/assets/ui/menus.txt +++ b/assets/ui/menus.txt @@ -2,6 +2,7 @@ // { loadMenu { "ui/main.menu" } + loadMenu { "ui/news.menu" } loadMenu { "ui/joinserver.menu" } loadMenu { "ui/options.menu" } loadMenu { "ui/createserver.menu" } -- cgit