4 #include <unordered_map>
14 using std::unordered_map;
23 string GUIButton::NAME =
"button";
25 GUIButton::GUIButton()
34 const string GUIButton::getTemplate(
const string& applicationPathName,
const string& applicationSubPathName,
const string& fileName)
36 return FileSystem::getInstance()->getContentAsString(applicationPathName +
"/resources/" + applicationSubPathName +
"/gui/definitions", fileName.empty() ==
true?
"button.xml":fileName);
41 unordered_map<string, string> attributes;
43 attributes[
"width"] =
"auto";
44 attributes[
"height"] =
"auto";
45 attributes[
"background-image"] =
"resources/engine/images/button.png";
GUI node controller base class.
GUI screen node that represents a screen that can be rendered via GUI system.
const string allocateNodeId()
Allocate node id.
File system singleton class.