mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +02:00
Merge branch 'reorganisation' of github.com:FacialTurd/The-Powder-Toy
This commit is contained in:
@@ -258,6 +258,7 @@ if(GetOption('macosx')):
|
|||||||
if(GetOption('win')):
|
if(GetOption('win')):
|
||||||
sources += env.RES('resources/powder-res.rc')
|
sources += env.RES('resources/powder-res.rc')
|
||||||
sources+=Glob("src/*/*.cpp")
|
sources+=Glob("src/*/*.cpp")
|
||||||
|
sources+=Glob("src/gui/*/*.cpp")
|
||||||
sources+=Glob("src/simulation/elements/*.cpp")
|
sources+=Glob("src/simulation/elements/*.cpp")
|
||||||
sources+=Glob("src/simulation/tools/*.cpp")
|
sources+=Glob("src/simulation/tools/*.cpp")
|
||||||
sources+=Glob("src/client/requestbroker/*.cpp")
|
sources+=Glob("src/client/requestbroker/*.cpp")
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "interface/Window.h"
|
#include "gui/interface/Window.h"
|
||||||
|
|
||||||
class Activity
|
class Activity
|
||||||
{
|
{
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include "Format.h"
|
#include "Format.h"
|
||||||
#include "interface/Engine.h"
|
#include "gui/interface/Engine.h"
|
||||||
#include "graphics/Graphics.h"
|
#include "graphics/Graphics.h"
|
||||||
#include "graphics/Renderer.h"
|
#include "graphics/Renderer.h"
|
||||||
|
|
||||||
|
@@ -25,13 +25,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "Format.h"
|
#include "Format.h"
|
||||||
#include "Style.h"
|
|
||||||
#include "interface/Engine.h"
|
|
||||||
#include "interface/Button.h"
|
|
||||||
#include "interface/Panel.h"
|
|
||||||
#include "interface/Point.h"
|
|
||||||
#include "interface/Label.h"
|
|
||||||
#include "interface/Keys.h"
|
|
||||||
|
|
||||||
#include "client/GameSave.h"
|
#include "client/GameSave.h"
|
||||||
#include "client/SaveFile.h"
|
#include "client/SaveFile.h"
|
||||||
@@ -39,10 +32,12 @@
|
|||||||
#include "client/Client.h"
|
#include "client/Client.h"
|
||||||
#include "Misc.h"
|
#include "Misc.h"
|
||||||
|
|
||||||
#include "game/GameController.h"
|
#include "gui/game/GameController.h"
|
||||||
#include "game/GameView.h"
|
#include "gui/game/GameView.h"
|
||||||
|
|
||||||
#include "dialogues/ErrorMessage.h"
|
#include "gui/dialogues/ErrorMessage.h"
|
||||||
|
#include "gui/interface/Keys.h"
|
||||||
|
#include "gui/Style.h"
|
||||||
|
|
||||||
#include "client/HTTP.h"
|
#include "client/HTTP.h"
|
||||||
|
|
||||||
|
@@ -5,8 +5,8 @@
|
|||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
#include "CommandInterface.h"
|
#include "CommandInterface.h"
|
||||||
#include "game/GameModel.h"
|
#include "gui/game/GameModel.h"
|
||||||
#include "game/GameController.h"
|
#include "gui/game/GameController.h"
|
||||||
|
|
||||||
CommandInterface::CommandInterface(GameController * c, GameModel * m) {
|
CommandInterface::CommandInterface(GameController * c, GameModel * m) {
|
||||||
this->m = m;
|
this->m = m;
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
#define COMMANDINTERFACE_H_
|
#define COMMANDINTERFACE_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "interface/Engine.h"
|
#include "gui/interface/Engine.h"
|
||||||
//#include "game/GameModel.h"
|
//#include "game/GameModel.h"
|
||||||
|
|
||||||
class GameModel;
|
class GameModel;
|
||||||
|
@@ -9,12 +9,12 @@
|
|||||||
#include "LuaScriptInterface.h"
|
#include "LuaScriptInterface.h"
|
||||||
#include "LuaScriptHelper.h"
|
#include "LuaScriptHelper.h"
|
||||||
|
|
||||||
#include "dialogues/ErrorMessage.h"
|
#include "gui/dialogues/ErrorMessage.h"
|
||||||
#include "dialogues/InformationMessage.h"
|
#include "gui/dialogues/InformationMessage.h"
|
||||||
#include "dialogues/TextPrompt.h"
|
#include "gui/dialogues/TextPrompt.h"
|
||||||
#include "dialogues/ConfirmPrompt.h"
|
#include "gui/dialogues/ConfirmPrompt.h"
|
||||||
|
#include "gui/game/GameModel.h"
|
||||||
#include "simulation/Simulation.h"
|
#include "simulation/Simulation.h"
|
||||||
#include "game/GameModel.h"
|
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@ extern "C"
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "LuaButton.h"
|
#include "LuaButton.h"
|
||||||
#include "LuaScriptInterface.h"
|
#include "LuaScriptInterface.h"
|
||||||
#include "interface/Button.h"
|
#include "gui/interface/Button.h"
|
||||||
|
|
||||||
const char LuaButton::className[] = "Button";
|
const char LuaButton::className[] = "Button";
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@ extern "C"
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "LuaCheckbox.h"
|
#include "LuaCheckbox.h"
|
||||||
#include "LuaScriptInterface.h"
|
#include "LuaScriptInterface.h"
|
||||||
#include "interface/Checkbox.h"
|
#include "gui/interface/Checkbox.h"
|
||||||
|
|
||||||
const char LuaCheckbox::className[] = "Checkbox";
|
const char LuaCheckbox::className[] = "Checkbox";
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@ extern "C"
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "LuaComponent.h"
|
#include "LuaComponent.h"
|
||||||
#include "LuaScriptInterface.h"
|
#include "LuaScriptInterface.h"
|
||||||
#include "interface/Component.h"
|
#include "gui/interface/Component.h"
|
||||||
|
|
||||||
|
|
||||||
LuaComponent::LuaComponent(lua_State * l)
|
LuaComponent::LuaComponent(lua_State * l)
|
||||||
|
@@ -8,7 +8,7 @@ extern "C"
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "LuaScriptInterface.h"
|
#include "LuaScriptInterface.h"
|
||||||
#include "LuaLabel.h"
|
#include "LuaLabel.h"
|
||||||
#include "interface/Label.h"
|
#include "gui/interface/Label.h"
|
||||||
|
|
||||||
const char LuaLabel::className[] = "Label";
|
const char LuaLabel::className[] = "Label";
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@ extern "C"
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "LuaProgressBar.h"
|
#include "LuaProgressBar.h"
|
||||||
#include "LuaScriptInterface.h"
|
#include "LuaScriptInterface.h"
|
||||||
#include "interface/ProgressBar.h"
|
#include "gui/interface/ProgressBar.h"
|
||||||
|
|
||||||
const char LuaProgressBar::className[] = "ProgressBar";
|
const char LuaProgressBar::className[] = "ProgressBar";
|
||||||
|
|
||||||
|
@@ -9,13 +9,13 @@
|
|||||||
#include "LuaLuna.h"
|
#include "LuaLuna.h"
|
||||||
#include "LuaScriptInterface.h"
|
#include "LuaScriptInterface.h"
|
||||||
#include "TPTScriptInterface.h"
|
#include "TPTScriptInterface.h"
|
||||||
#include "dialogues/ErrorMessage.h"
|
#include "gui/dialogues/ErrorMessage.h"
|
||||||
#include "dialogues/InformationMessage.h"
|
#include "gui/dialogues/InformationMessage.h"
|
||||||
#include "dialogues/TextPrompt.h"
|
#include "gui/dialogues/TextPrompt.h"
|
||||||
#include "dialogues/ConfirmPrompt.h"
|
#include "gui/dialogues/ConfirmPrompt.h"
|
||||||
#include "simulation/Simulation.h"
|
#include "simulation/Simulation.h"
|
||||||
#include "game/GameModel.h"
|
#include "gui/game/GameModel.h"
|
||||||
#include "game/Tool.h"
|
#include "gui/game/Tool.h"
|
||||||
#include "LuaScriptHelper.h"
|
#include "LuaScriptHelper.h"
|
||||||
#include "client/HTTP.h"
|
#include "client/HTTP.h"
|
||||||
#include "PowderToy.h"
|
#include "PowderToy.h"
|
||||||
|
@@ -8,7 +8,7 @@ extern "C"
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "LuaSlider.h"
|
#include "LuaSlider.h"
|
||||||
#include "LuaScriptInterface.h"
|
#include "LuaScriptInterface.h"
|
||||||
#include "interface/Slider.h"
|
#include "gui/interface/Slider.h"
|
||||||
|
|
||||||
const char LuaSlider::className[] = "Slider";
|
const char LuaSlider::className[] = "Slider";
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@ extern "C"
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "LuaScriptInterface.h"
|
#include "LuaScriptInterface.h"
|
||||||
#include "LuaTextbox.h"
|
#include "LuaTextbox.h"
|
||||||
#include "interface/Textbox.h"
|
#include "gui/interface/Textbox.h"
|
||||||
|
|
||||||
const char LuaTextbox::className[] = "Textbox";
|
const char LuaTextbox::className[] = "Textbox";
|
||||||
|
|
||||||
|
@@ -14,9 +14,9 @@ extern "C"
|
|||||||
#include "LuaCheckbox.h"
|
#include "LuaCheckbox.h"
|
||||||
#include "LuaSlider.h"
|
#include "LuaSlider.h"
|
||||||
#include "LuaProgressBar.h"
|
#include "LuaProgressBar.h"
|
||||||
#include "interface/Button.h"
|
#include "gui/interface/Button.h"
|
||||||
#include "interface/Label.h"
|
#include "gui/interface/Label.h"
|
||||||
#include "interface/Window.h"
|
#include "gui/interface/Window.h"
|
||||||
|
|
||||||
const char LuaWindow::className[] = "Window";
|
const char LuaWindow::className[] = "Window";
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@ extern "C" {
|
|||||||
|
|
||||||
#include "LuaLuna.h"
|
#include "LuaLuna.h"
|
||||||
|
|
||||||
#include "interface/Platform.h"
|
#include "gui/interface/Platform.h"
|
||||||
namespace ui
|
namespace ui
|
||||||
{
|
{
|
||||||
class Window;
|
class Window;
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <typeinfo>
|
#include <typeinfo>
|
||||||
#include "interface/Point.h"
|
#include "gui/interface/Point.h"
|
||||||
|
|
||||||
enum ValueType { TypeNumber, TypePoint, TypeString, TypeNull, TypeFunction };
|
enum ValueType { TypeNumber, TypePoint, TypeString, TypeNull, TypeFunction };
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "TPTScriptInterface.h"
|
#include "TPTScriptInterface.h"
|
||||||
#include "game/GameModel.h"
|
#include "gui/game/GameModel.h"
|
||||||
#include "simulation/Air.h"
|
#include "simulation/Air.h"
|
||||||
|
|
||||||
TPTScriptInterface::TPTScriptInterface(GameController * c, GameModel * m): CommandInterface(c, m)
|
TPTScriptInterface::TPTScriptInterface(GameController * c, GameModel * m): CommandInterface(c, m)
|
||||||
|
@@ -36,13 +36,13 @@
|
|||||||
#include "HTTP.h"
|
#include "HTTP.h"
|
||||||
|
|
||||||
#include "simulation/SaveRenderer.h"
|
#include "simulation/SaveRenderer.h"
|
||||||
#include "interface/Point.h"
|
#include "gui/interface/Point.h"
|
||||||
#include "client/SaveInfo.h"
|
#include "client/SaveInfo.h"
|
||||||
#include "client/SaveFile.h"
|
#include "client/SaveFile.h"
|
||||||
#include "client/GameSave.h"
|
#include "client/GameSave.h"
|
||||||
#include "client/UserInfo.h"
|
#include "client/UserInfo.h"
|
||||||
#include "search/Thumbnail.h"
|
#include "gui/search/Thumbnail.h"
|
||||||
#include "preview/Comment.h"
|
#include "gui/preview/Comment.h"
|
||||||
#include "ClientListener.h"
|
#include "ClientListener.h"
|
||||||
#include "requestbroker/RequestBroker.h"
|
#include "requestbroker/RequestBroker.h"
|
||||||
#include "requestbroker/APIRequest.h"
|
#include "requestbroker/APIRequest.h"
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#include "SaveFile.h"
|
#include "SaveFile.h"
|
||||||
#include "GameSave.h"
|
#include "GameSave.h"
|
||||||
#include "Client.h"
|
#include "Client.h"
|
||||||
#include "search/Thumbnail.h"
|
#include "gui/search/Thumbnail.h"
|
||||||
|
|
||||||
SaveFile::SaveFile(SaveFile & save):
|
SaveFile::SaveFile(SaveFile & save):
|
||||||
gameSave(NULL),
|
gameSave(NULL),
|
||||||
|
@@ -3,7 +3,6 @@
|
|||||||
#include "ThumbRenderRequest.h"
|
#include "ThumbRenderRequest.h"
|
||||||
#include "client/GameSave.h"
|
#include "client/GameSave.h"
|
||||||
#include "graphics/Graphics.h"
|
#include "graphics/Graphics.h"
|
||||||
#include "search/Thumbnail.h"
|
|
||||||
#include "simulation/SaveRenderer.h"
|
#include "simulation/SaveRenderer.h"
|
||||||
|
|
||||||
ThumbRenderRequest::ThumbRenderRequest(GameSave * save, bool decorations, bool fire, int width, int height, ListenerHandle listener):
|
ThumbRenderRequest::ThumbRenderRequest(GameSave * save, bool decorations, bool fire, int width, int height, ListenerHandle listener):
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "interface/Point.h"
|
#include "gui/interface/Point.h"
|
||||||
|
|
||||||
class DebugInfo
|
class DebugInfo
|
||||||
{
|
{
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "ElementPopulation.h"
|
#include "ElementPopulation.h"
|
||||||
#include "interface/Engine.h"
|
#include "gui/interface/Engine.h"
|
||||||
#include "simulation/Simulation.h"
|
#include "simulation/Simulation.h"
|
||||||
#include "Format.h"
|
#include "Format.h"
|
||||||
|
|
||||||
|
@@ -9,8 +9,8 @@
|
|||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include "client/Client.h"
|
#include "client/Client.h"
|
||||||
#include "Graphics.h"
|
#include "Graphics.h"
|
||||||
#include "interface/Point.h"
|
#include "gui/interface/Point.h"
|
||||||
#include "game/RenderPreset.h"
|
#include "gui/game/RenderPreset.h"
|
||||||
|
|
||||||
class Simulation;
|
class Simulation;
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include "Style.h"
|
#include "gui/Style.h"
|
||||||
#include "interface/Colour.h"
|
#include "gui/interface/Colour.h"
|
||||||
|
|
||||||
namespace style {
|
namespace style {
|
||||||
ui::Colour Colour::InformationTitle = ui::Colour(140, 140, 255);
|
ui::Colour Colour::InformationTitle = ui::Colour(140, 140, 255);
|
@@ -1,13 +1,13 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include "ColourPickerActivity.h"
|
#include "ColourPickerActivity.h"
|
||||||
#include "interface/Textbox.h"
|
#include "gui/interface/Textbox.h"
|
||||||
#include "interface/Label.h"
|
#include "gui/interface/Label.h"
|
||||||
#include "interface/Keys.h"
|
#include "gui/interface/Keys.h"
|
||||||
#include "game/Tool.h"
|
#include "gui/game/Tool.h"
|
||||||
#include "Style.h"
|
#include "gui/Style.h"
|
||||||
#include "Format.h"
|
#include "Format.h"
|
||||||
#include "game/GameModel.h"
|
#include "gui/game/GameModel.h"
|
||||||
|
|
||||||
ColourPickerActivity::ColourPickerActivity(ui::Colour initialColour, ColourPickedCallback * callback) :
|
ColourPickerActivity::ColourPickerActivity(ui::Colour initialColour, ColourPickedCallback * callback) :
|
||||||
WindowActivity(ui::Point(-1, -1), ui::Point(266, 175)),
|
WindowActivity(ui::Point(-1, -1), ui::Point(266, 175)),
|
@@ -3,8 +3,8 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "Activity.h"
|
#include "Activity.h"
|
||||||
#include "interface/Window.h"
|
#include "gui/interface/Window.h"
|
||||||
#include "interface/Textbox.h"
|
#include "gui/interface/Textbox.h"
|
||||||
|
|
||||||
class ColourPickedCallback
|
class ColourPickedCallback
|
||||||
{
|
{
|
@@ -1,5 +1,5 @@
|
|||||||
#include "ConsoleView.h"
|
#include "ConsoleView.h"
|
||||||
#include "interface/Keys.h"
|
#include "gui/interface/Keys.h"
|
||||||
|
|
||||||
ConsoleView::ConsoleView():
|
ConsoleView::ConsoleView():
|
||||||
ui::Window(ui::Point(0, 0), ui::Point(XRES+BARSIZE, 150)),
|
ui::Window(ui::Point(0, 0), ui::Point(XRES+BARSIZE, 150)),
|
@@ -3,11 +3,11 @@
|
|||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <queue>
|
#include <queue>
|
||||||
#include "interface/Label.h"
|
#include "gui/interface/Label.h"
|
||||||
#include "interface/Window.h"
|
#include "gui/interface/Window.h"
|
||||||
#include "ConsoleController.h"
|
#include "ConsoleController.h"
|
||||||
#include "ConsoleModel.h"
|
#include "ConsoleModel.h"
|
||||||
#include "interface/Textbox.h"
|
#include "gui/interface/Textbox.h"
|
||||||
#include "ConsoleCommand.h"
|
#include "ConsoleCommand.h"
|
||||||
|
|
||||||
|
|
@@ -1,7 +1,7 @@
|
|||||||
#include "ConfirmPrompt.h"
|
#include "ConfirmPrompt.h"
|
||||||
#include "Style.h"
|
#include "gui/Style.h"
|
||||||
#include "interface/Label.h"
|
#include "gui/interface/Label.h"
|
||||||
#include "interface/Button.h"
|
#include "gui/interface/Button.h"
|
||||||
#include "PowderToy.h"
|
#include "PowderToy.h"
|
||||||
|
|
||||||
ConfirmPrompt::ConfirmPrompt(std::string title, std::string message, ConfirmDialogueCallback * callback_):
|
ConfirmPrompt::ConfirmPrompt(std::string title, std::string message, ConfirmDialogueCallback * callback_):
|
@@ -1,7 +1,7 @@
|
|||||||
#ifndef CONFIRMPROMPT_H_
|
#ifndef CONFIRMPROMPT_H_
|
||||||
#define CONFIRMPROMPT_H_
|
#define CONFIRMPROMPT_H_
|
||||||
|
|
||||||
#include "interface/Window.h"
|
#include "gui/interface/Window.h"
|
||||||
|
|
||||||
class ConfirmDialogueCallback;
|
class ConfirmDialogueCallback;
|
||||||
class ConfirmPrompt: public ui::Window {
|
class ConfirmPrompt: public ui::Window {
|
@@ -1,7 +1,7 @@
|
|||||||
#include "Style.h"
|
#include "gui/Style.h"
|
||||||
#include "ErrorMessage.h"
|
#include "ErrorMessage.h"
|
||||||
#include "interface/Button.h"
|
#include "gui/interface/Button.h"
|
||||||
#include "interface/Label.h"
|
#include "gui/interface/Label.h"
|
||||||
#include "PowderToy.h"
|
#include "PowderToy.h"
|
||||||
|
|
||||||
ErrorMessage::ErrorMessage(std::string title, std::string message, ErrorMessageCallback * callback_):
|
ErrorMessage::ErrorMessage(std::string title, std::string message, ErrorMessageCallback * callback_):
|
@@ -1,7 +1,7 @@
|
|||||||
#ifndef ERRORMESSAGE_H_
|
#ifndef ERRORMESSAGE_H_
|
||||||
#define ERRORMESSAGE_H_
|
#define ERRORMESSAGE_H_
|
||||||
|
|
||||||
#include "interface/Window.h"
|
#include "gui/interface/Window.h"
|
||||||
|
|
||||||
class ErrorMessageCallback;
|
class ErrorMessageCallback;
|
||||||
class ErrorMessage: public ui::Window {
|
class ErrorMessage: public ui::Window {
|
@@ -1,8 +1,8 @@
|
|||||||
#include "Style.h"
|
#include "gui/Style.h"
|
||||||
#include "InformationMessage.h"
|
#include "InformationMessage.h"
|
||||||
#include "interface/Button.h"
|
#include "gui/interface/Button.h"
|
||||||
#include "interface/Label.h"
|
#include "gui/interface/Label.h"
|
||||||
#include "interface/ScrollPanel.h"
|
#include "gui/interface/ScrollPanel.h"
|
||||||
|
|
||||||
InformationMessage::InformationMessage(std::string title, std::string message, bool large):
|
InformationMessage::InformationMessage(std::string title, std::string message, bool large):
|
||||||
ui::Window(ui::Point(-1, -1), ui::Point(200, 75))
|
ui::Window(ui::Point(-1, -1), ui::Point(200, 75))
|
@@ -1,7 +1,7 @@
|
|||||||
#ifndef INFORMATIONMESSAGE_H_
|
#ifndef INFORMATIONMESSAGE_H_
|
||||||
#define INFORMATIONMESSAGE_H_
|
#define INFORMATIONMESSAGE_H_
|
||||||
|
|
||||||
#include "interface/Window.h"
|
#include "gui/interface/Window.h"
|
||||||
|
|
||||||
class InformationMessage: public ui::Window {
|
class InformationMessage: public ui::Window {
|
||||||
public:
|
public:
|
@@ -1,8 +1,8 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "TextPrompt.h"
|
#include "TextPrompt.h"
|
||||||
#include "interface/Label.h"
|
#include "gui/interface/Label.h"
|
||||||
#include "interface/Button.h"
|
#include "gui/interface/Button.h"
|
||||||
#include "Style.h"
|
#include "gui/Style.h"
|
||||||
#include "PowderToy.h"
|
#include "PowderToy.h"
|
||||||
|
|
||||||
class CloseAction: public ui::ButtonAction
|
class CloseAction: public ui::ButtonAction
|
@@ -1,8 +1,8 @@
|
|||||||
#ifndef TEXTPROMPT_H_
|
#ifndef TEXTPROMPT_H_
|
||||||
#define TEXTPROMPT_H_
|
#define TEXTPROMPT_H_
|
||||||
|
|
||||||
#include "interface/Window.h"
|
#include "gui/interface/Window.h"
|
||||||
#include "interface/Textbox.h"
|
#include "gui/interface/Textbox.h"
|
||||||
|
|
||||||
class TextDialogueCallback;
|
class TextDialogueCallback;
|
||||||
class TextPrompt: public ui::Window {
|
class TextPrompt: public ui::Window {
|
@@ -1,11 +1,11 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "ElementSearchActivity.h"
|
#include "ElementSearchActivity.h"
|
||||||
#include "interface/Textbox.h"
|
#include "gui/interface/Textbox.h"
|
||||||
#include "interface/Label.h"
|
#include "gui/interface/Label.h"
|
||||||
#include "interface/Keys.h"
|
#include "gui/interface/Keys.h"
|
||||||
#include "game/Tool.h"
|
#include "gui/game/Tool.h"
|
||||||
#include "Style.h"
|
#include "gui/Style.h"
|
||||||
#include "game/GameModel.h"
|
#include "gui/game/GameModel.h"
|
||||||
|
|
||||||
class ElementSearchActivity::ToolAction: public ui::ButtonAction
|
class ElementSearchActivity::ToolAction: public ui::ButtonAction
|
||||||
{
|
{
|
@@ -4,9 +4,9 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "Activity.h"
|
#include "Activity.h"
|
||||||
#include "interface/Window.h"
|
#include "gui/interface/Window.h"
|
||||||
#include "interface/Textbox.h"
|
#include "gui/interface/Textbox.h"
|
||||||
#include "game/ToolButton.h"
|
#include "gui/game/ToolButton.h"
|
||||||
|
|
||||||
class Tool;
|
class Tool;
|
||||||
|
|
@@ -1,20 +1,20 @@
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "FileBrowserActivity.h"
|
#include "FileBrowserActivity.h"
|
||||||
#include "interface/Label.h"
|
#include "gui/interface/Label.h"
|
||||||
#include "interface/Textbox.h"
|
#include "gui/interface/Textbox.h"
|
||||||
#include "interface/ScrollPanel.h"
|
#include "gui/interface/ScrollPanel.h"
|
||||||
#include "interface/SaveButton.h"
|
#include "gui/interface/SaveButton.h"
|
||||||
#include "interface/ProgressBar.h"
|
#include "gui/interface/ProgressBar.h"
|
||||||
#include "client/Client.h"
|
#include "client/Client.h"
|
||||||
#include "client/SaveFile.h"
|
#include "client/SaveFile.h"
|
||||||
#include "client/GameSave.h"
|
#include "client/GameSave.h"
|
||||||
#include "Style.h"
|
#include "gui/Style.h"
|
||||||
#include "tasks/Task.h"
|
#include "tasks/Task.h"
|
||||||
#include "simulation/SaveRenderer.h"
|
#include "simulation/SaveRenderer.h"
|
||||||
#include "dialogues/TextPrompt.h"
|
#include "gui/dialogues/TextPrompt.h"
|
||||||
#include "dialogues/ConfirmPrompt.h"
|
#include "gui/dialogues/ConfirmPrompt.h"
|
||||||
#include "dialogues/ErrorMessage.h"
|
#include "gui/dialogues/ErrorMessage.h"
|
||||||
|
|
||||||
class Thumbnail;
|
class Thumbnail;
|
||||||
|
|
@@ -3,7 +3,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "Activity.h"
|
#include "Activity.h"
|
||||||
#include "interface/Window.h"
|
#include "gui/interface/Window.h"
|
||||||
#include "tasks/TaskListener.h"
|
#include "tasks/TaskListener.h"
|
||||||
|
|
||||||
|
|
@@ -2,7 +2,7 @@
|
|||||||
#define BRUSH_H_
|
#define BRUSH_H_
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "interface/Point.h"
|
#include "gui/interface/Point.h"
|
||||||
|
|
||||||
class Renderer;
|
class Renderer;
|
||||||
class Brush
|
class Brush
|
@@ -7,24 +7,24 @@
|
|||||||
#include "GameModel.h"
|
#include "GameModel.h"
|
||||||
#include "client/SaveInfo.h"
|
#include "client/SaveInfo.h"
|
||||||
#include "client/GameSave.h"
|
#include "client/GameSave.h"
|
||||||
#include "search/SearchController.h"
|
#include "gui/search/SearchController.h"
|
||||||
#include "render/RenderController.h"
|
#include "gui/render/RenderController.h"
|
||||||
#include "login/LoginController.h"
|
#include "gui/login/LoginController.h"
|
||||||
#include "interface/Point.h"
|
#include "gui/interface/Point.h"
|
||||||
#include "dialogues/ErrorMessage.h"
|
#include "gui/dialogues/ErrorMessage.h"
|
||||||
#include "dialogues/InformationMessage.h"
|
#include "gui/dialogues/InformationMessage.h"
|
||||||
#include "dialogues/ConfirmPrompt.h"
|
#include "gui/dialogues/ConfirmPrompt.h"
|
||||||
#include "GameModelException.h"
|
#include "GameModelException.h"
|
||||||
#include "simulation/Air.h"
|
#include "simulation/Air.h"
|
||||||
#include "elementsearch/ElementSearchActivity.h"
|
#include "gui/elementsearch/ElementSearchActivity.h"
|
||||||
#include "profile/ProfileActivity.h"
|
#include "gui/profile/ProfileActivity.h"
|
||||||
#include "colourpicker/ColourPickerActivity.h"
|
#include "gui/colourpicker/ColourPickerActivity.h"
|
||||||
#include "update/UpdateActivity.h"
|
#include "gui/update/UpdateActivity.h"
|
||||||
#include "Notification.h"
|
#include "Notification.h"
|
||||||
#include "filebrowser/FileBrowserActivity.h"
|
#include "gui/filebrowser/FileBrowserActivity.h"
|
||||||
#include "save/LocalSaveActivity.h"
|
#include "gui/save/LocalSaveActivity.h"
|
||||||
#include "save/ServerSaveActivity.h"
|
#include "gui/save/ServerSaveActivity.h"
|
||||||
#include "interface/Keys.h"
|
#include "gui/interface/Keys.h"
|
||||||
#include "simulation/Snapshot.h"
|
#include "simulation/Snapshot.h"
|
||||||
#include "debug/DebugInfo.h"
|
#include "debug/DebugInfo.h"
|
||||||
//#include "debug/ElementPopulation.h"
|
//#include "debug/ElementPopulation.h"
|
@@ -4,18 +4,18 @@
|
|||||||
#include <queue>
|
#include <queue>
|
||||||
#include "GameView.h"
|
#include "GameView.h"
|
||||||
#include "GameModel.h"
|
#include "GameModel.h"
|
||||||
#include "interface/Point.h"
|
|
||||||
#include "simulation/Simulation.h"
|
#include "simulation/Simulation.h"
|
||||||
#include "search/SearchController.h"
|
#include "gui/interface/Point.h"
|
||||||
#include "render/RenderController.h"
|
#include "gui/search/SearchController.h"
|
||||||
#include "preview/PreviewController.h"
|
#include "gui/render/RenderController.h"
|
||||||
#include "login/LoginController.h"
|
#include "gui/preview/PreviewController.h"
|
||||||
#include "tags/TagsController.h"
|
#include "gui/login/LoginController.h"
|
||||||
#include "console/ConsoleController.h"
|
#include "gui/tags/TagsController.h"
|
||||||
#include "localbrowser/LocalBrowserController.h"
|
#include "gui/console/ConsoleController.h"
|
||||||
|
#include "gui/localbrowser/LocalBrowserController.h"
|
||||||
|
#include "gui/options/OptionsController.h"
|
||||||
//#include "cat/TPTScriptInterface.h"
|
//#include "cat/TPTScriptInterface.h"
|
||||||
#include "cat/LuaScriptInterface.h"
|
#include "cat/LuaScriptInterface.h"
|
||||||
#include "options/OptionsController.h"
|
|
||||||
#include "client/ClientListener.h"
|
#include "client/ClientListener.h"
|
||||||
#include "RenderPreset.h"
|
#include "RenderPreset.h"
|
||||||
#include "Menu.h"
|
#include "Menu.h"
|
@@ -1,18 +1,18 @@
|
|||||||
#include "interface/Engine.h"
|
#include "gui/interface/Engine.h"
|
||||||
#include "GameModel.h"
|
#include "GameModel.h"
|
||||||
#include "GameView.h"
|
#include "GameView.h"
|
||||||
#include "simulation/Simulation.h"
|
#include "simulation/Simulation.h"
|
||||||
#include "simulation/Air.h"
|
#include "simulation/Air.h"
|
||||||
#include "simulation/Tools.h"
|
#include "simulation/Tools.h"
|
||||||
#include "graphics/Renderer.h"
|
#include "graphics/Renderer.h"
|
||||||
#include "interface/Point.h"
|
#include "gui/interface/Point.h"
|
||||||
#include "Brush.h"
|
#include "Brush.h"
|
||||||
#include "EllipseBrush.h"
|
#include "EllipseBrush.h"
|
||||||
#include "TriangleBrush.h"
|
#include "TriangleBrush.h"
|
||||||
#include "BitmapBrush.h"
|
#include "BitmapBrush.h"
|
||||||
#include "client/Client.h"
|
#include "client/Client.h"
|
||||||
#include "client/GameSave.h"
|
#include "client/GameSave.h"
|
||||||
#include "game/DecorationTool.h"
|
#include "gui/game/DecorationTool.h"
|
||||||
#include "GameModelException.h"
|
#include "GameModelException.h"
|
||||||
#include "QuickOptions.h"
|
#include "QuickOptions.h"
|
||||||
#include "Format.h"
|
#include "Format.h"
|
@@ -5,7 +5,7 @@
|
|||||||
#include <deque>
|
#include <deque>
|
||||||
#include "client/SaveInfo.h"
|
#include "client/SaveInfo.h"
|
||||||
#include "simulation/Simulation.h"
|
#include "simulation/Simulation.h"
|
||||||
#include "interface/Colour.h"
|
#include "gui/interface/Colour.h"
|
||||||
#include "graphics/Renderer.h"
|
#include "graphics/Renderer.h"
|
||||||
#include "GameView.h"
|
#include "GameView.h"
|
||||||
#include "GameController.h"
|
#include "GameController.h"
|
@@ -2,18 +2,18 @@
|
|||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
|
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include "Style.h"
|
#include "gui/Style.h"
|
||||||
#include "GameView.h"
|
#include "GameView.h"
|
||||||
#include "graphics/Graphics.h"
|
#include "graphics/Graphics.h"
|
||||||
#include "interface/Window.h"
|
#include "gui/interface/Window.h"
|
||||||
#include "interface/Button.h"
|
#include "gui/interface/Button.h"
|
||||||
#include "interface/Colour.h"
|
#include "gui/interface/Colour.h"
|
||||||
#include "interface/Keys.h"
|
#include "gui/interface/Keys.h"
|
||||||
#include "interface/Slider.h"
|
#include "gui/interface/Slider.h"
|
||||||
#include "search/Thumbnail.h"
|
#include "gui/search/Thumbnail.h"
|
||||||
#include "simulation/SaveRenderer.h"
|
#include "simulation/SaveRenderer.h"
|
||||||
#include "simulation/SimulationData.h"
|
#include "simulation/SimulationData.h"
|
||||||
#include "dialogues/ConfirmPrompt.h"
|
#include "gui/dialogues/ConfirmPrompt.h"
|
||||||
#include "Format.h"
|
#include "Format.h"
|
||||||
#include "QuickOption.h"
|
#include "QuickOption.h"
|
||||||
#include "IntroText.h"
|
#include "IntroText.h"
|
@@ -7,11 +7,11 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include "GameController.h"
|
#include "GameController.h"
|
||||||
#include "GameModel.h"
|
#include "GameModel.h"
|
||||||
#include "interface/Window.h"
|
#include "gui/interface/Window.h"
|
||||||
#include "interface/Point.h"
|
#include "gui/interface/Point.h"
|
||||||
#include "interface/Button.h"
|
#include "gui/interface/Button.h"
|
||||||
#include "interface/Slider.h"
|
#include "gui/interface/Slider.h"
|
||||||
#include "interface/Textbox.h"
|
#include "gui/interface/Textbox.h"
|
||||||
#include "ToolButton.h"
|
#include "ToolButton.h"
|
||||||
#include "Brush.h"
|
#include "Brush.h"
|
||||||
#include "simulation/Sample.h"
|
#include "simulation/Sample.h"
|
@@ -1,15 +1,15 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include "Style.h"
|
#include "gui/Style.h"
|
||||||
#include "simulation/Simulation.h"
|
#include "simulation/Simulation.h"
|
||||||
#include "Tool.h"
|
#include "Tool.h"
|
||||||
#include "interface/Window.h"
|
#include "gui/interface/Window.h"
|
||||||
#include "interface/Button.h"
|
#include "gui/interface/Button.h"
|
||||||
#include "interface/Label.h"
|
#include "gui/interface/Label.h"
|
||||||
#include "interface/Textbox.h"
|
#include "gui/interface/Textbox.h"
|
||||||
#include "interface/DropDown.h"
|
#include "gui/interface/DropDown.h"
|
||||||
#include "interface/Keys.h"
|
#include "gui/interface/Keys.h"
|
||||||
#include "dialogues/ErrorMessage.h"
|
#include "gui/dialogues/ErrorMessage.h"
|
||||||
|
|
||||||
class PropertyWindow: public ui::Window
|
class PropertyWindow: public ui::Window
|
||||||
{
|
{
|
@@ -2,7 +2,7 @@
|
|||||||
#include "graphics/Graphics.h"
|
#include "graphics/Graphics.h"
|
||||||
#include "Tool.h"
|
#include "Tool.h"
|
||||||
#include "GameModel.h"
|
#include "GameModel.h"
|
||||||
#include "interface/Colour.h"
|
#include "gui/interface/Colour.h"
|
||||||
|
|
||||||
VideoBuffer * SampleTool::GetIcon(int toolID, int width, int height)
|
VideoBuffer * SampleTool::GetIcon(int toolID, int width, int height)
|
||||||
{
|
{
|
@@ -1,12 +1,12 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "Style.h"
|
#include "gui/Style.h"
|
||||||
#include "simulation/Simulation.h"
|
#include "simulation/Simulation.h"
|
||||||
#include "Tool.h"
|
#include "Tool.h"
|
||||||
#include "interface/Window.h"
|
#include "gui/interface/Window.h"
|
||||||
#include "interface/Button.h"
|
#include "gui/interface/Button.h"
|
||||||
#include "interface/Label.h"
|
#include "gui/interface/Label.h"
|
||||||
#include "interface/Textbox.h"
|
#include "gui/interface/Textbox.h"
|
||||||
#include "interface/DropDown.h"
|
#include "gui/interface/DropDown.h"
|
||||||
|
|
||||||
class SignWindow: public ui::Window
|
class SignWindow: public ui::Window
|
||||||
{
|
{
|
@@ -1,6 +1,6 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include "Tool.h"
|
#include "Tool.h"
|
||||||
#include "game/Brush.h"
|
#include "gui/game/Brush.h"
|
||||||
|
|
||||||
#include "simulation/Simulation.h"
|
#include "simulation/Simulation.h"
|
||||||
|
|
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
#include "interface/Point.h"
|
#include "gui/interface/Point.h"
|
||||||
|
|
||||||
class Simulation;
|
class Simulation;
|
||||||
class Brush;
|
class Brush;
|
@@ -1,5 +1,5 @@
|
|||||||
#include "ToolButton.h"
|
#include "ToolButton.h"
|
||||||
#include "interface/Keys.h"
|
#include "gui/interface/Keys.h"
|
||||||
|
|
||||||
ToolButton::ToolButton(ui::Point position, ui::Point size, std::string text_, std::string toolTip):
|
ToolButton::ToolButton(ui::Point position, ui::Point size, std::string text_, std::string toolTip):
|
||||||
ui::Button(position, size, text_, toolTip)
|
ui::Button(position, size, text_, toolTip)
|
@@ -1,7 +1,7 @@
|
|||||||
#ifndef TOOLBUTTON_H_
|
#ifndef TOOLBUTTON_H_
|
||||||
#define TOOLBUTTON_H_
|
#define TOOLBUTTON_H_
|
||||||
|
|
||||||
#include "interface/Button.h"
|
#include "gui/interface/Button.h"
|
||||||
|
|
||||||
class ToolButton: public ui::Button {
|
class ToolButton: public ui::Button {
|
||||||
int currentSelection;
|
int currentSelection;
|
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include "Component.h"
|
#include "Component.h"
|
||||||
#include "graphics/Graphics.h"
|
#include "graphics/Graphics.h"
|
||||||
#include "interface/Colour.h"
|
#include "gui/interface/Colour.h"
|
||||||
#include "client/requestbroker/RequestListener.h"
|
#include "client/requestbroker/RequestListener.h"
|
||||||
|
|
||||||
namespace ui
|
namespace ui
|
@@ -1,5 +1,5 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "interface/Button.h"
|
#include "gui/interface/Button.h"
|
||||||
#include "graphics/Graphics.h"
|
#include "graphics/Graphics.h"
|
||||||
#include "Engine.h"
|
#include "Engine.h"
|
||||||
#include "Misc.h"
|
#include "Misc.h"
|
@@ -1,11 +1,11 @@
|
|||||||
//#include "Platform.h"
|
//#include "Platform.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "interface/Component.h"
|
#include "gui/interface/Component.h"
|
||||||
#include "interface/Engine.h"
|
#include "gui/interface/Engine.h"
|
||||||
#include "interface/Point.h"
|
#include "gui/interface/Point.h"
|
||||||
#include "interface/Window.h"
|
#include "gui/interface/Window.h"
|
||||||
#include "interface/Panel.h"
|
#include "gui/interface/Panel.h"
|
||||||
#include "interface/ContextMenu.h"
|
#include "gui/interface/ContextMenu.h"
|
||||||
|
|
||||||
using namespace ui;
|
using namespace ui;
|
||||||
|
|
@@ -1,5 +1,5 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "Style.h"
|
#include "gui/Style.h"
|
||||||
#include "Button.h"
|
#include "Button.h"
|
||||||
#include "DropDown.h"
|
#include "DropDown.h"
|
||||||
|
|
@@ -4,9 +4,9 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include "interface/Window.h"
|
#include "gui/interface/Window.h"
|
||||||
#include "interface/Platform.h"
|
#include "gui/interface/Platform.h"
|
||||||
#include "interface/Engine.h"
|
#include "gui/interface/Engine.h"
|
||||||
#include "graphics/Graphics.h"
|
#include "graphics/Graphics.h"
|
||||||
|
|
||||||
using namespace ui;
|
using namespace ui;
|
@@ -2,11 +2,11 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
//#include "Platform.h"
|
//#include "Platform.h"
|
||||||
|
|
||||||
#include "interface/Panel.h"
|
#include "gui/interface/Panel.h"
|
||||||
|
|
||||||
#include "interface/Point.h"
|
#include "gui/interface/Point.h"
|
||||||
#include "interface/Window.h"
|
#include "gui/interface/Window.h"
|
||||||
#include "interface/Component.h"
|
#include "gui/interface/Component.h"
|
||||||
#include "graphics/Graphics.h"
|
#include "graphics/Graphics.h"
|
||||||
|
|
||||||
using namespace ui;
|
using namespace ui;
|
@@ -2,9 +2,9 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
//#include "Platform.h"
|
//#include "Platform.h"
|
||||||
|
|
||||||
#include "interface/Point.h"
|
#include "gui/interface/Point.h"
|
||||||
#include "interface/Window.h"
|
#include "gui/interface/Window.h"
|
||||||
#include "interface/Component.h"
|
#include "gui/interface/Component.h"
|
||||||
|
|
||||||
#ifdef OGLI
|
#ifdef OGLI
|
||||||
#include "graphics/OpenGLHeaders.h"
|
#include "graphics/OpenGLHeaders.h"
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user