frontend/gui moved to graphics/ui
This commit is contained in:
parent
b56408a202
commit
5393977e57
@ -24,7 +24,7 @@
|
||||
#include "graphics/core/GfxContext.h"
|
||||
#include "graphics/core/Shader.h"
|
||||
#include "graphics/core/ImageData.h"
|
||||
#include "frontend/gui/GUI.h"
|
||||
#include "graphics/ui/GUI.h"
|
||||
#include "frontend/screens.h"
|
||||
#include "frontend/menu/menu.h"
|
||||
#include "util/platform.h"
|
||||
|
||||
@ -3,28 +3,28 @@
|
||||
#include <iostream>
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
#include "BlocksPreview.h"
|
||||
#include "LevelFrontend.h"
|
||||
#include "../window/Events.h"
|
||||
#include "../window/input.h"
|
||||
#include "../assets/Assets.h"
|
||||
#include "../graphics/core/Atlas.h"
|
||||
#include "../graphics/core/Shader.h"
|
||||
#include "../graphics/core/Batch2D.h"
|
||||
#include "../graphics/core/GfxContext.h"
|
||||
#include "../graphics/core/Font.h"
|
||||
#include "../content/Content.h"
|
||||
#include "../items/ItemDef.h"
|
||||
#include "../items/Inventory.h"
|
||||
#include "../graphics/core/Atlas.h"
|
||||
#include "../graphics/core/Batch2D.h"
|
||||
#include "../graphics/core/Font.h"
|
||||
#include "../graphics/core/GfxContext.h"
|
||||
#include "../graphics/core/Shader.h"
|
||||
#include "../graphics/ui/elements/containers.h"
|
||||
#include "../graphics/ui/elements/controls.h"
|
||||
#include "../items/Inventories.h"
|
||||
#include "../items/Inventory.h"
|
||||
#include "../items/ItemDef.h"
|
||||
#include "../logic/scripting/scripting.h"
|
||||
#include "../maths/voxmaths.h"
|
||||
#include "../objects/Player.h"
|
||||
#include "../voxels/Block.h"
|
||||
#include "../frontend/gui/containers.h"
|
||||
#include "../frontend/gui/controls.h"
|
||||
#include "../util/stringutil.h"
|
||||
#include "../voxels/Block.h"
|
||||
#include "../window/Events.h"
|
||||
#include "../window/input.h"
|
||||
#include "../world/Level.h"
|
||||
#include "../logic/scripting/scripting.h"
|
||||
#include "BlocksPreview.h"
|
||||
#include "LevelFrontend.h"
|
||||
|
||||
SlotLayout::SlotLayout(
|
||||
int index,
|
||||
@ -369,7 +369,7 @@ void InventoryView::setInventory(std::shared_ptr<Inventory> inventory) {
|
||||
}
|
||||
|
||||
#include "../coders/xml.h"
|
||||
#include "gui/gui_xml.h"
|
||||
#include "../graphics/ui/gui_xml.h"
|
||||
|
||||
static slotcallback readSlotFunc(InventoryView* view, gui::UiXmlReader& reader, xml::xmlelement& element, const std::string& attr) {
|
||||
auto consumer = scripting::create_int_array_consumer(
|
||||
|
||||
@ -5,9 +5,9 @@
|
||||
#include <functional>
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
#include "../frontend/gui/UINode.h"
|
||||
#include "../frontend/gui/containers.h"
|
||||
#include "../frontend/gui/controls.h"
|
||||
#include "../graphics/ui/elements/UINode.h"
|
||||
#include "../graphics/ui/elements/containers.h"
|
||||
#include "../graphics/ui/elements/controls.h"
|
||||
#include "../items/ItemStack.h"
|
||||
#include "../typedefs.h"
|
||||
|
||||
|
||||
@ -1,12 +1,11 @@
|
||||
#include "UiDocument.h"
|
||||
|
||||
#include <iostream>
|
||||
#include "gui/UINode.h"
|
||||
#include "gui/containers.h"
|
||||
#include "InventoryView.h"
|
||||
#include "../logic/scripting/scripting.h"
|
||||
#include "../files/files.h"
|
||||
#include "../frontend/gui/gui_xml.h"
|
||||
#include "../graphics/ui/elements/containers.h"
|
||||
#include "../graphics/ui/elements/UINode.h"
|
||||
#include "../graphics/ui/gui_xml.h"
|
||||
#include "../logic/scripting/scripting.h"
|
||||
#include "InventoryView.h"
|
||||
|
||||
UiDocument::UiDocument(
|
||||
std::string id,
|
||||
|
||||
@ -2,18 +2,18 @@
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
|
||||
#include "gui/controls.h"
|
||||
#include "../audio/audio.h"
|
||||
#include "../graphics/core/Mesh.h"
|
||||
#include "../objects/Player.h"
|
||||
#include "../physics/Hitbox.h"
|
||||
#include "../world/Level.h"
|
||||
#include "../world/World.h"
|
||||
#include "../voxels/Chunks.h"
|
||||
#include "../voxels/Block.h"
|
||||
#include "../util/stringutil.h"
|
||||
#include "../delegates.h"
|
||||
#include "../engine.h"
|
||||
#include "../graphics/core/Mesh.h"
|
||||
#include "../graphics/ui/elements/controls.h"
|
||||
#include "../objects/Player.h"
|
||||
#include "../physics/Hitbox.h"
|
||||
#include "../util/stringutil.h"
|
||||
#include "../voxels/Block.h"
|
||||
#include "../voxels/Chunks.h"
|
||||
#include "../world/Level.h"
|
||||
#include "../world/World.h"
|
||||
|
||||
#include "WorldRenderer.h"
|
||||
|
||||
|
||||
@ -32,10 +32,10 @@
|
||||
#include "../objects/Player.h"
|
||||
#include "../physics/Hitbox.h"
|
||||
#include "../maths/voxmaths.h"
|
||||
#include "gui/controls.h"
|
||||
#include "gui/containers.h"
|
||||
#include "gui/UINode.h"
|
||||
#include "gui/GUI.h"
|
||||
#include "../graphics/ui/elements/controls.h"
|
||||
#include "../graphics/ui/elements/containers.h"
|
||||
#include "../graphics/ui/elements/UINode.h"
|
||||
#include "../graphics/ui/GUI.h"
|
||||
#include "ContentGfxCache.h"
|
||||
#include "menu/menu.h"
|
||||
#include "screens.h"
|
||||
|
||||
@ -8,9 +8,10 @@
|
||||
#include <filesystem>
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
#include "../gui/GUI.h"
|
||||
#include "../gui/containers.h"
|
||||
#include "../gui/controls.h"
|
||||
#include "../../graphics/ui/GUI.h"
|
||||
#include "../../graphics/ui/gui_util.h"
|
||||
#include "../../graphics/ui/elements/containers.h"
|
||||
#include "../../graphics/ui/elements/controls.h"
|
||||
#include "../screens.h"
|
||||
|
||||
#include "../../coders/png.h"
|
||||
@ -29,8 +30,6 @@
|
||||
#include "../../content/Content.h"
|
||||
#include "../../content/ContentLUT.h"
|
||||
#include "../../content/ContentPack.h"
|
||||
|
||||
#include "../gui/gui_util.h"
|
||||
#include "../locale/langs.h"
|
||||
|
||||
#include "menu_commons.h"
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#include "menu_commons.h"
|
||||
|
||||
#include "../../engine.h"
|
||||
#include "../gui/containers.h"
|
||||
#include "../../graphics/ui/elements/containers.h"
|
||||
#include "../locale/langs.h"
|
||||
|
||||
using namespace gui;
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
#include <memory>
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
#include "../gui/controls.h"
|
||||
#include "../../graphics/ui/elements/controls.h"
|
||||
|
||||
class Engine;
|
||||
|
||||
|
||||
@ -1,19 +1,19 @@
|
||||
#ifndef FRONTEND_MENU_MENU_CREATE_WORLD_H_
|
||||
#define FRONTEND_MENU_MENU_CREATE_WORLD_H_
|
||||
|
||||
#include "menu.h"
|
||||
#include "menu_commons.h"
|
||||
#include "../gui/controls.h"
|
||||
#include "../gui/containers.h"
|
||||
#include "../gui/gui_util.h"
|
||||
#include "../../engine.h"
|
||||
#include "../../files/WorldFiles.h"
|
||||
#include "../../graphics/ui/elements/containers.h"
|
||||
#include "../../graphics/ui/elements/controls.h"
|
||||
#include "../../graphics/ui/gui_util.h"
|
||||
#include "../../util/stringutil.h"
|
||||
#include "../../world/Level.h"
|
||||
#include "../../world/World.h"
|
||||
#include "../../world/WorldGenerators.h"
|
||||
#include "../locale/langs.h"
|
||||
#include "../screens.h"
|
||||
#include "../../world/WorldGenerators.h"
|
||||
#include "../../files/WorldFiles.h"
|
||||
#include "../../world/World.h"
|
||||
#include "../../world/Level.h"
|
||||
#include "../../util/stringutil.h"
|
||||
#include "../../engine.h"
|
||||
#include "menu_commons.h"
|
||||
#include "menu.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@ -1,16 +1,17 @@
|
||||
#include "menu.h"
|
||||
#include "menu_commons.h"
|
||||
#include "../locale/langs.h"
|
||||
#include "../gui/gui_util.h"
|
||||
#include "../screens.h"
|
||||
|
||||
#include "../../coders/png.h"
|
||||
#include "../../content/ContentLUT.h"
|
||||
#include "../../engine.h"
|
||||
#include "../../files/WorldFiles.h"
|
||||
#include "../../graphics/ui/gui_util.h"
|
||||
#include "../../logic/LevelController.h"
|
||||
#include "../../util/stringutil.h"
|
||||
#include "../../world/Level.h"
|
||||
#include "../../world/World.h"
|
||||
#include "../../coders/png.h"
|
||||
#include "../../util/stringutil.h"
|
||||
#include "../../files/WorldFiles.h"
|
||||
#include "../../content/ContentLUT.h"
|
||||
#include "../../logic/LevelController.h"
|
||||
#include "../locale/langs.h"
|
||||
#include "../screens.h"
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
#include "menu_commons.h"
|
||||
|
||||
#include "../locale/langs.h"
|
||||
#include "../gui/GUI.h"
|
||||
#include "../gui/gui_util.h"
|
||||
#include "../../graphics/ui/GUI.h"
|
||||
#include "../../graphics/ui/gui_util.h"
|
||||
#include "../../engine.h"
|
||||
#include "../../util/stringutil.h"
|
||||
#include "../../window/Events.h"
|
||||
|
||||
@ -1,46 +1,46 @@
|
||||
#include "screens.h"
|
||||
|
||||
#include "../assets/Assets.h"
|
||||
#include "../audio/audio.h"
|
||||
#include "../content/Content.h"
|
||||
#include "../core_defs.h"
|
||||
#include "../engine.h"
|
||||
#include "../graphics/core/Batch2D.h"
|
||||
#include "../graphics/core/GfxContext.h"
|
||||
#include "../graphics/core/Shader.h"
|
||||
#include "../graphics/core/TextureAnimation.h"
|
||||
#include "../graphics/ui/elements/containers.h"
|
||||
#include "../graphics/ui/GUI.h"
|
||||
#include "../logic/ChunksController.h"
|
||||
#include "../logic/LevelController.h"
|
||||
#include "../logic/scripting/scripting_frontend.h"
|
||||
#include "../logic/scripting/scripting.h"
|
||||
#include "../objects/Player.h"
|
||||
#include "../physics/Hitbox.h"
|
||||
#include "../util/stringutil.h"
|
||||
#include "../voxels/Block.h"
|
||||
#include "../voxels/Chunk.h"
|
||||
#include "../voxels/Chunks.h"
|
||||
#include "../window/Camera.h"
|
||||
#include "../window/Events.h"
|
||||
#include "../window/input.h"
|
||||
#include "../world/Level.h"
|
||||
#include "../world/World.h"
|
||||
|
||||
#include "ContentGfxCache.h"
|
||||
#include "hud.h"
|
||||
#include "LevelFrontend.h"
|
||||
#include "menu/menu.h"
|
||||
#include "WorldRenderer.h"
|
||||
|
||||
#include <filesystem>
|
||||
#include <glm/glm.hpp>
|
||||
#include <iomanip>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
#include <glm/glm.hpp>
|
||||
#include <filesystem>
|
||||
#include <stdexcept>
|
||||
|
||||
#include "../audio/audio.h"
|
||||
#include "../window/Camera.h"
|
||||
#include "../window/Events.h"
|
||||
#include "../window/input.h"
|
||||
#include "../graphics/core/Shader.h"
|
||||
#include "../graphics/core/Batch2D.h"
|
||||
#include "../graphics/core/GfxContext.h"
|
||||
#include "../graphics/core/TextureAnimation.h"
|
||||
#include "../assets/Assets.h"
|
||||
#include "../world/Level.h"
|
||||
#include "../world/World.h"
|
||||
#include "../objects/Player.h"
|
||||
#include "../physics/Hitbox.h"
|
||||
#include "../logic/ChunksController.h"
|
||||
#include "../logic/LevelController.h"
|
||||
#include "../logic/scripting/scripting.h"
|
||||
#include "../logic/scripting/scripting_frontend.h"
|
||||
#include "../voxels/Chunks.h"
|
||||
#include "../voxels/Chunk.h"
|
||||
#include "../engine.h"
|
||||
#include "../util/stringutil.h"
|
||||
#include "../core_defs.h"
|
||||
#include "WorldRenderer.h"
|
||||
#include "hud.h"
|
||||
#include "ContentGfxCache.h"
|
||||
#include "LevelFrontend.h"
|
||||
#include "gui/GUI.h"
|
||||
#include "gui/containers.h"
|
||||
#include "menu/menu.h"
|
||||
|
||||
#include "../content/Content.h"
|
||||
#include "../voxels/Block.h"
|
||||
|
||||
Screen::Screen(Engine* engine) : engine(engine), batch(new Batch2D(1024)) {
|
||||
}
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#include "GUI.h"
|
||||
#include "UINode.h"
|
||||
#include "containers.h"
|
||||
#include "elements/UINode.h"
|
||||
#include "elements/containers.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <algorithm>
|
||||
@ -1,6 +1,6 @@
|
||||
#include "UINode.h"
|
||||
|
||||
#include "../../graphics/core/Batch2D.h"
|
||||
#include "../../core/Batch2D.h"
|
||||
|
||||
using gui::UINode;
|
||||
using gui::Align;
|
||||
@ -1,13 +1,13 @@
|
||||
#ifndef FRONTEND_GUI_UINODE_H_
|
||||
#define FRONTEND_GUI_UINODE_H_
|
||||
#ifndef GRAPHICS_UI_ELEMENTS_UINODE_H_
|
||||
#define GRAPHICS_UI_ELEMENTS_UINODE_H_
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <functional>
|
||||
#include "../../delegates.h"
|
||||
#include "../../window/input.h"
|
||||
#include "../../../delegates.h"
|
||||
#include "../../../window/input.h"
|
||||
|
||||
class GfxContext;
|
||||
class Assets;
|
||||
@ -182,4 +182,4 @@ namespace gui {
|
||||
};
|
||||
}
|
||||
|
||||
#endif // FRONTEND_GUI_UINODE_H_
|
||||
#endif // GRAPHICS_UI_ELEMENTS_UINODE_H_
|
||||
@ -3,10 +3,10 @@
|
||||
#include <stdexcept>
|
||||
#include <algorithm>
|
||||
|
||||
#include "../../window/Window.h"
|
||||
#include "../../assets/Assets.h"
|
||||
#include "../../graphics/core/Batch2D.h"
|
||||
#include "../../graphics/core/GfxContext.h"
|
||||
#include "../../../window/Window.h"
|
||||
#include "../../../assets/Assets.h"
|
||||
#include "../../core/Batch2D.h"
|
||||
#include "../../core/GfxContext.h"
|
||||
|
||||
using namespace gui;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#ifndef FRONTEND_GUI_CONTAINERS_H_
|
||||
#define FRONTEND_GUI_CONTAINERS_H_
|
||||
#ifndef GRAPHICS_UI_ELEMENTS_CONTAINERS_H_
|
||||
#define GRAPHICS_UI_ELEMENTS_CONTAINERS_H_
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <vector>
|
||||
@ -109,4 +109,4 @@ namespace gui {
|
||||
Page& getCurrent();
|
||||
};
|
||||
}
|
||||
#endif // FRONTEND_GUI_CONTAINERS_H_
|
||||
#endif // GRAPHICS_UI_ELEMENTS_CONTAINERS_H_
|
||||
@ -5,14 +5,14 @@
|
||||
#include <iostream>
|
||||
#include <algorithm>
|
||||
|
||||
#include "../../window/Events.h"
|
||||
#include "../../assets/Assets.h"
|
||||
#include "../../graphics/core/Batch2D.h"
|
||||
#include "../../graphics/core/Font.h"
|
||||
#include "../../graphics/core/Texture.h"
|
||||
#include "../../graphics/core/GfxContext.h"
|
||||
#include "../../util/stringutil.h"
|
||||
#include "GUI.h"
|
||||
#include "../../../window/Events.h"
|
||||
#include "../../../assets/Assets.h"
|
||||
#include "../../core/Batch2D.h"
|
||||
#include "../../core/Font.h"
|
||||
#include "../../core/Texture.h"
|
||||
#include "../../core/GfxContext.h"
|
||||
#include "../../../util/stringutil.h"
|
||||
#include "../GUI.h"
|
||||
|
||||
using namespace gui;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#ifndef FRONTEND_GUI_CONTROLS_H_
|
||||
#define FRONTEND_GUI_CONTROLS_H_
|
||||
#ifndef GRAPHICS_UI_ELEMENTS_CONTROLS_H_
|
||||
#define GRAPHICS_UI_ELEMENTS_CONTROLS_H_
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
@ -7,12 +7,12 @@
|
||||
#include <functional>
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
#include "GUI.h"
|
||||
#include "../GUI.h"
|
||||
#include "UINode.h"
|
||||
#include "containers.h"
|
||||
#include "../../window/input.h"
|
||||
#include "../../delegates.h"
|
||||
#include "../../typedefs.h"
|
||||
#include "../../../window/input.h"
|
||||
#include "../../../delegates.h"
|
||||
#include "../../../typedefs.h"
|
||||
|
||||
class Batch2D;
|
||||
class Assets;
|
||||
@ -387,4 +387,4 @@ namespace gui {
|
||||
};
|
||||
}
|
||||
|
||||
#endif // FRONTEND_GUI_CONTROLS_H_
|
||||
#endif // GRAPHICS_UI_ELEMENTS_CONTROLS_H_
|
||||
@ -1,10 +1,10 @@
|
||||
#include "gui_util.h"
|
||||
#include "controls.h"
|
||||
#include "containers.h"
|
||||
#include "elements/controls.h"
|
||||
#include "elements/containers.h"
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
#include "../locale/langs.h"
|
||||
#include "../../frontend/locale/langs.h"
|
||||
#include "../../delegates.h"
|
||||
|
||||
using namespace gui;
|
||||
@ -3,10 +3,10 @@
|
||||
#include <charconv>
|
||||
#include <stdexcept>
|
||||
|
||||
#include "containers.h"
|
||||
#include "controls.h"
|
||||
#include "elements/containers.h"
|
||||
#include "elements/controls.h"
|
||||
|
||||
#include "../locale/langs.h"
|
||||
#include "../../frontend/locale/langs.h"
|
||||
#include "../../logic/scripting/scripting.h"
|
||||
#include "../../util/stringutil.h"
|
||||
|
||||
@ -8,8 +8,8 @@
|
||||
|
||||
#include "../../../engine.h"
|
||||
#include "../../../assets/Assets.h"
|
||||
#include "../../../frontend/gui/UINode.h"
|
||||
#include "../../../frontend/gui/controls.h"
|
||||
#include "../../../graphics/ui/elements/UINode.h"
|
||||
#include "../../../graphics/ui/elements/controls.h"
|
||||
#include "../../../frontend/UiDocument.h"
|
||||
#include "../../../util/stringutil.h"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user