From 5397101315a95954ce7eba035306978ec1a10644 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sun, 3 Oct 2010 23:54:19 +0300 Subject: [PATCH] Tutorial map in the menu --- data/qcsrc/menu/voret/dialog_singleplayer.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; -- 2.39.2