Fixed typo and moved Config initialization to Configs.cpp

This commit is contained in:
DJMrTV 2023-08-30 22:21:42 +02:00
commit 1e0dfc4570
3 changed files with 12 additions and 11 deletions

View file

@ -2,7 +2,7 @@
Rail::Rail(const YAML::Node &ObjNode) : Element(ObjNode, {"RailPoints","m_railType","IsClosed","IsLadder","Priority"}) {
Rail::Rail(const YAML::Node &ObjNode) : Element(ObjNode, {"RailPoints","RailType","IsClosed","IsLadder","Priority"}) {
YAML::Node railPointsNode = ObjNode["RailPoints"];
for (auto rlpoint: railPointsNode) {

View file

@ -3,6 +3,11 @@
//
#include"Configs.h"
#include<boost/filesystem.hpp>
#include<virintox/gcore/Graphics.h>
VGINIT_ACTION(LoadConfigs){
Configs::g_loadConfigs("Gambit");
}
namespace Configs {
static std::vector<std::string> loadStringListConfig(boost::filesystem::path path) {

View file

@ -1,19 +1,15 @@
#include<virintox/gcore/Graphics.h>
#include"imgui.h"
#include "virintox/gcore/gui/FileSelectDialog.h"
#include "InstanceVars.h"
#include "Map.h"
#include "MainViewport.h"
#include "Config/Configs.h"
#include <IconsFontAwesome6.h>
#include"virintox/gcore/gui/FileSelectDialog.h"
#include"InstanceVars.h"
#include"Map.h"
#include"MainViewport.h"
#include"Config/Configs.h"
#include<IconsFontAwesome6.h>
#include<Assembly.h>
VMIRRORASSEMBLYSELFREGISTER(SpoonEdit, VMIRRORVERSION(0,1,0,0),VMirror::AssemblyType::Executable)
VGINIT_ACTION(LoadConfigs){
Configs::g_loadConfigs("Gambit");
}
VGINIT_ACTION(AddMapSelector){
Graphics::window->addWidget(new Graphics::FileSelectDialog("Select/Save Map", {".yaml"},[&](boost::filesystem::path path){
selectedElem = nullptr;