From 217da32c9ec772214e6cdbf238224aa930f819df Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 11 Feb 2017 13:35:46 +0100 Subject: [PATCH] Improve end texts for existing campaigns Made the end text left-aligned since the current system does not allow proper centering of variable length lines. Completes and closes #60. --- Data/Campaigns/empire.txt | 4 ++++ Data/Campaigns/main.txt | 6 +++--- Data/Campaigns/seventasks.txt | 4 ++++ Data/Campaigns/temple.txt | 4 ++++ Source/Menu/Menu.cpp | 6 +++--- 5 files changed, 18 insertions(+), 6 deletions(-) diff --git a/Data/Campaigns/empire.txt b/Data/Campaigns/empire.txt index 5311489..ff82ab0 100644 --- a/Data/Campaigns/empire.txt +++ b/Data/Campaigns/empire.txt @@ -367,3 +367,7 @@ ChooseNext: 1 NumNext: 0 LocationX: 130 LocationY: 350 + +EndText:At last, the Empire is defeated! +While Ash, avenged, mourns the loss of Leila, +the reconstruction of Lugaru's island begins... diff --git a/Data/Campaigns/main.txt b/Data/Campaigns/main.txt index 677d2eb..44a5c25 100644 --- a/Data/Campaigns/main.txt +++ b/Data/Campaigns/main.txt @@ -242,6 +242,6 @@ NumNext: 0 LocationX: 284 LocationY: 312 -EndText:Congratulations! -You have avenged your family and -restored peace to the island of Lugaru. +EndText:You have avenged your family and +restored peace to the island of Lugaru... +But will you find your inner peace? diff --git a/Data/Campaigns/seventasks.txt b/Data/Campaigns/seventasks.txt index 70b2aed..ba1fcf7 100644 --- a/Data/Campaigns/seventasks.txt +++ b/Data/Campaigns/seventasks.txt @@ -160,3 +160,7 @@ ChooseNext: 1 NumNext: 0 LocationX: 400 LocationY: 400 + +EndText:Finally a true Seneschal! +Your vow of silence is lifted, and your +assassination skills are beyond question. diff --git a/Data/Campaigns/temple.txt b/Data/Campaigns/temple.txt index 7b67f6c..27d2be7 100644 --- a/Data/Campaigns/temple.txt +++ b/Data/Campaigns/temple.txt @@ -277,3 +277,7 @@ ChooseNext: 1 NumNext: 0 LocationX: 343 LocationY: 258 + +EndText:Congratulations! +You beat the Temple campaign and got the right +to propose a cool ending text upstream! :D diff --git a/Source/Menu/Menu.cpp b/Source/Menu/Menu.cpp index caabec3..776d825 100644 --- a/Source/Menu/Menu.cpp +++ b/Source/Menu/Menu.cpp @@ -503,9 +503,9 @@ void Menu::Load() addButton(numchallengelevels, "Back", 10, 10); break; case 10: { - addLabel(0, campaignEndText[0], 220, 330); - addLabel(1, campaignEndText[1], 140, 300); - addLabel(2, campaignEndText[2], 110, 270); + addLabel(0, campaignEndText[0], 80, 330); + addLabel(1, campaignEndText[1], 80, 300); + addLabel(2, campaignEndText[2], 80, 270); addButton(3, "Back", 10, 10); addLabel(4, string("Your score: ") + to_string((int)Account::active().getCampaignScore()), 190, 200); addLabel(5, string("Highest score: ") + to_string((int)Account::active().getCampaignHighScore()), 190, 180); -- 2.39.5