Add a broken SplashHTML
This commit is contained in:
@@ -5,6 +5,7 @@ class LevelInstance :
|
||||
public Instance
|
||||
{
|
||||
public:
|
||||
std::string SplashHTML;
|
||||
LevelInstance(void);
|
||||
~LevelInstance(void);
|
||||
float timer;
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "PropertyWindow.h"
|
||||
#include <commctrl.h>
|
||||
#include "StringFunctions.h"
|
||||
#include "../../SplashHTML.h"
|
||||
|
||||
#include "Listener/GUDButtonListener.h"
|
||||
#include "Listener/ModeSelectionListener.h"
|
||||
@@ -281,7 +282,9 @@ void Application::onInit() {
|
||||
#else
|
||||
_dataModel->debugGetOpen();
|
||||
#endif
|
||||
|
||||
LevelInstance * level = g_dataModel->getLevel();
|
||||
std::string GetCurrentSplash = level->SplashHTML;
|
||||
SplashHTMLLoad(GetCurrentSplash);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
LevelInstance::LevelInstance(void)
|
||||
{
|
||||
Instance::Instance();
|
||||
SplashHTML = "<html><body><b>Test</b><body></html>";
|
||||
name = "Level";
|
||||
winMessage = "You Won!";
|
||||
loseMessage = "You Lost. Try Again";
|
||||
@@ -23,7 +24,12 @@ std::vector<PROPGRIDITEM> LevelInstance::getProperties()
|
||||
std::vector<PROPGRIDITEM> properties = Instance::getProperties();
|
||||
|
||||
|
||||
|
||||
properties.push_back(createPGI("Properties",
|
||||
"SplashHTML",
|
||||
"HTML that shows when the Level is loaded.",
|
||||
(LPARAM)SplashHTML.c_str(),
|
||||
PIT_EDIT));
|
||||
|
||||
properties.push_back(createPGI("Messages",
|
||||
"WinMessage",
|
||||
"The message that shows when the player wins.",
|
||||
@@ -40,12 +46,12 @@ std::vector<PROPGRIDITEM> LevelInstance::getProperties()
|
||||
sprintf_s(scoreTxt, "%d", score);
|
||||
properties.push_back(createPGI("Gameplay",
|
||||
"InitialTimerValue",
|
||||
"The ammount of time in seconds the player has to complete this level.\r\n\r\nPut 0 if time is limitless.",
|
||||
"The amount of time in seconds the player has to complete this level.\r\n\r\nPut 0 if time is limitless.",
|
||||
(LPARAM)timerTxt,
|
||||
PIT_EDIT));
|
||||
properties.push_back(createPGI("Gameplay",
|
||||
"InitialScoreValue",
|
||||
"The ammount of points the player starts with.",
|
||||
"The amount of points the player starts with.",
|
||||
(LPARAM)scoreTxt,
|
||||
PIT_EDIT));
|
||||
return properties;
|
||||
|
||||
Reference in New Issue
Block a user