Interface component, Serialization of mesh components

This commit is contained in:
antopilo
2021-09-08 18:35:10 -04:00
parent 61e54c5a46
commit b1a1f4f063
14 changed files with 145 additions and 64 deletions

View File

@@ -133,9 +133,9 @@ namespace Nuake
node->NormalStyle.BackgroundColor = GetColor(a.value());
if (name == "onclick")
{
std::string signature = a.value();
Root->Script->RegisterMethod(a.value());
node->OnClickSignature = a.value();
//std::string signature = a.value();
//Root->Script->RegisterMethod(a.value());
//node->OnClickSignature = a.value();
}
}
@@ -289,15 +289,14 @@ namespace Nuake
node->NormalStyle.BackgroundColor = GetColor(a.value());
if (name == "script")
{
auto s = split(a.value(), ' ');
std::string path = s[0];
std::string module = s[1];
node->Script = ScriptingEngine::RegisterScript(path, module);
auto scriptModule = String::Split(a.value(), ' ');
node->ScriptsToLoad.push_back({ scriptModule[0], scriptModule[1] });
//node->Script = ScriptingEngine::RegisterScript(FileSystem::Root + path, module);
}
if (name == "stylesheet")
{
std::string path = a.value();
node->StyleSheet = UI::StyleSheet::New(path);
node->StyleSheet = UI::StyleSheet::New(FileSystem::Root + path);
}
}