Fixed typo and moved Config initialization to Configs.cpp
This commit is contained in:
parent
3c6074da23
commit
1e0dfc4570
3 changed files with 12 additions and 11 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
16
src/main.cpp
16
src/main.cpp
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue