diff options
author | Treeki <treeki@gmail.com> | 2012-11-24 04:52:09 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-11-24 04:52:09 +0100 |
commit | 663494a33bd84f4c3915297d89a5265c69c0bcaa (patch) | |
tree | 624b3744da4676a8d6822c6813508ca496ff9a51 /src/pregame.cpp | |
parent | e37a44245428c5809de867f20c6473c71c05b154 (diff) | |
download | kamek-663494a33bd84f4c3915297d89a5265c69c0bcaa.tar.gz kamek-663494a33bd84f4c3915297d89a5265c69c0bcaa.zip |
added pause menu
Diffstat (limited to '')
-rw-r--r-- | src/pregame.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/pregame.cpp b/src/pregame.cpp index 3a2e89c..0d8a78f 100644 --- a/src/pregame.cpp +++ b/src/pregame.cpp @@ -53,16 +53,15 @@ class PregameLytHandler { extern char CurrentLevel; extern char CurrentWorld; -#include "fileload.h" -void PregameLytHandler::hijack_loadLevelNumber() { +void LoadPregameStyleNameAndNumber(m2d::EmbedLayout_c *layout) { nw4r::lyt::TextBox *LevelNumShadow, *LevelNum, *LevelNameShadow, *LevelName; - LevelNumShadow = layout.findTextBoxByName("LevelNumShadow"); - LevelNum = layout.findTextBoxByName("LevelNum"); - LevelNameShadow = layout.findTextBoxByName("LevelNameShadow"); - LevelName = layout.findTextBoxByName("LevelName"); + LevelNumShadow = layout->findTextBoxByName("LevelNumShadow"); + LevelNum = layout->findTextBoxByName("LevelNum"); + LevelNameShadow = layout->findTextBoxByName("LevelNameShadow"); + LevelName = layout->findTextBoxByName("LevelName"); // work out the thing now dLevelInfo_c::entry_s *level = dLevelInfo_c::s_info.searchBySlot(CurrentWorld, CurrentLevel); @@ -89,6 +88,11 @@ void PregameLytHandler::hijack_loadLevelNumber() { LevelNameShadow->SetString(L"Not found in LevelInfo!"); LevelName->SetString(L"Not found in LevelInfo!"); } +} + +#include "fileload.h" +void PregameLytHandler::hijack_loadLevelNumber() { + LoadPregameStyleNameAndNumber(&layout); nw4r::lyt::Picture *LevelSample; LevelSample = layout.findPictureByName("LevelSample"); |