From f7f497566f8b7d9fef8d9fbcf3b1956fc6c6c9ac Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Thu, 20 Aug 2015 13:58:43 +1100 Subject: [PATCH] Update API to work with the new two layer logo --- data/core/help.cfg | 2 +- data/gui/default/window/title_screen.cfg | 26 ++++++++++++++++++++++++ src/loadscreen.cpp | 4 ++-- 3 files changed, 29 insertions(+), 3 deletions(-) diff --git a/data/core/help.cfg b/data/core/help.cfg index 591fa959214..9a7b890e53d 100644 --- a/data/core/help.cfg +++ b/data/core/help.cfg @@ -95,7 +95,7 @@ [topic] id=..introduction title= _ "Introduction" - text="src=misc/logo.png align=middle box=no" + _ " + text="src=misc/logo-bg.png~BLIT(misc/logo.png) align=middle box=no" + _ " text='Battle for Wesnoth' is a turn-based fantasy strategy game somewhat unusual among modern strategy games. While other games strive for complexity, text='Battle for Wesnoth' strives for simplicity of both rules and gameplay. This does not make the game simple, however — from these simple rules arise a wealth of strategy, making the game easy to learn but a challenge to master. diff --git a/data/gui/default/window/title_screen.cfg b/data/gui/default/window/title_screen.cfg index 935d9ae9ba9..b04b3f65eb8 100644 --- a/data/gui/default/window/title_screen.cfg +++ b/data/gui/default/window/title_screen.cfg @@ -306,6 +306,32 @@ [stack] + [layer] + + [row] + grow_factor = 0 + + {_GUI_V_SPACER 30} + + [/row] + + [row] + grow_factor = 1 + + [column] + vertical_alignment = "top" + + [image] + id = "logo-bg" + label = "misc/logo-bg.png" + [/image] + + [/column] + + [/row] + + [/layer] + [layer] [row] diff --git a/src/loadscreen.cpp b/src/loadscreen.cpp index b049bcfed1b..f823f709313 100644 --- a/src/loadscreen.cpp +++ b/src/loadscreen.cpp @@ -71,9 +71,9 @@ loadscreen::loadscreen(CVideo &screen, const int percent): screen_(screen), textarea_(), #ifdef SDL_GPU - logo_image_(image::get_texture("misc/logo.png")), + logo_image_(image::get_texture("misc/logo-bg.png~BLIT(misc/logo.png)")), #else - logo_surface_(image::get_image("misc/logo.png")), + logo_surface_(image::get_image("misc/logo-bg.png~BLIT(misc/logo.png)")), #endif logo_drawn_(false), pby_offset_(0),