* CreateWorldScreen: Change the layout of the back and create buttons.

* Fix some errors again
This commit is contained in:
iProgramInCpp
2023-08-03 22:11:43 +03:00
parent cd36908905
commit ee38fe137e
3 changed files with 10 additions and 8 deletions

View File

@@ -6,8 +6,8 @@
CreateWorldScreen::CreateWorldScreen() :
m_textName(1, 0, 0, 0, 0, "", "Unnamed world"),
m_textSeed(2, 0, 0, 0, 0, ""),
m_btnBack(3, "Back"),
m_btnCreate(4, "Create!")
m_btnBack(3, "Cancel"),
m_btnCreate(4, "Create New World")
{
}
@@ -19,11 +19,13 @@ void CreateWorldScreen::init()
m_textName.m_yPos = 60;
m_textSeed.m_yPos = 100;
m_btnBack.m_yPos = m_btnCreate.m_yPos = m_height - 30;
m_btnBack.m_width = m_btnCreate.m_width = 60;
m_btnCreate.m_yPos = m_height - 56;
m_btnBack.m_yPos = m_height - 30;
m_btnBack.m_width = m_btnCreate.m_width = 200;
m_btnBack.m_height = m_btnCreate.m_height = 20;
m_btnBack.m_xPos = m_width / 2 - 64;
m_btnCreate.m_xPos = m_width / 2 + 4;
m_btnBack.m_xPos = m_width / 2 - 200 / 2;
m_btnCreate.m_xPos = m_width / 2 - 200 / 2;
m_textInputs.push_back(&m_textName);
m_textInputs.push_back(&m_textSeed);

View File

@@ -10,7 +10,7 @@
#include "Level.hpp"
#include "GetTime.h"
#ifdef DEMO
#ifndef DEMO
#define C_CHUNKS_TO_SAVE_PER_TICK (2)

View File

@@ -10,7 +10,7 @@
#include "ExternalFileLevelStorage.hpp"
#include "Util.hpp"
#ifdef DEMO
#ifndef DEMO
ExternalFileLevelStorageSource::ExternalFileLevelStorageSource(const std::string& path)
{