From: MirceaKitsune Date: Sun, 3 Oct 2010 20:54:19 +0000 (+0300) Subject: Tutorial map in the menu X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5397101315a95954ce7eba035306978ec1a10644;p=voretournament%2Fvoretournament.git Tutorial map in the menu --- diff --git a/data/qcsrc/menu/voret/dialog_singleplayer.c b/data/qcsrc/menu/voret/dialog_singleplayer.c index b95ffebe..8cb9e7eb 100644 --- a/data/qcsrc/menu/voret/dialog_singleplayer.c +++ b/data/qcsrc/menu/voret/dialog_singleplayer.c @@ -4,7 +4,7 @@ CLASS(VoretSingleplayerDialog) EXTENDS(VoretDialog) ATTRIB(VoretSingleplayerDialog, title, string, "Singleplayer") ATTRIB(VoretSingleplayerDialog, color, vector, SKINCOLOR_DIALOG_SINGLEPLAYER) ATTRIB(VoretSingleplayerDialog, intendedWidth, float, 0.80) - ATTRIB(VoretSingleplayerDialog, rows, float, 24) + ATTRIB(VoretSingleplayerDialog, rows, float, 25) ATTRIB(VoretSingleplayerDialog, columns, float, 5) ATTRIB(VoretSingleplayerDialog, campaignBox, entity, NULL) ENDCLASS(VoretSingleplayerDialog) @@ -61,13 +61,16 @@ void fillVoretSingleplayerDialog(entity me) e.onClick = InstantAction_LoadMap; e.onClickEntity = NULL; me.TR(me); + me.TR(me); + me.TDempty(me, (me.columns - 3) / 2); + me.TD(me, 1, 3, makeVoretCommandButton("Tutorial", '0 0 0', "map tutorial", COMMANDBUTTON_APPLY)); me.TR(me); me.TR(me); me.TD(me, 1, 1, btnPrev = makeVoretButton("<<", '0 0 0')); me.TD(me, 1, me.columns - 2, lblTitle = makeVoretTextLabel(0.5, "???")); me.TD(me, 1, 1, btnNext = makeVoretButton(">>", '0 0 0')); me.TR(me); - me.TD(me, me.rows - 5, me.columns, me.campaignBox = makeVoretCampaignList()); + me.TD(me, me.rows - 6, me.columns, me.campaignBox = makeVoretCampaignList()); btnPrev.onClick = MultiCampaign_Prev; btnPrev.onClickEntity = me.campaignBox; btnNext.onClick = MultiCampaign_Next;