This commit is contained in:
2023-03-13 08:41:32 -07:00
parent 95d1ef476f
commit a3b4da498e
8 changed files with 221 additions and 212 deletions

View File

@ -7,10 +7,6 @@
#include "label.hpp"
namespace Dawn {
enum ChildType {
CHILD_TYPE_LABEL
};
struct ChildInfo;
struct ChildrenInfo {
@ -19,8 +15,10 @@ namespace Dawn {
struct ChildInfo {
enum ChildType type;
struct LabelInfo label;
struct ChildrenInfo children;
std::string ref;
bool_t hasRef = false;
struct LabelInfo label;
};
class ChildrenParser : public XmlParser<struct ChildrenInfo> {
@ -48,6 +46,7 @@ namespace Dawn {
if(c->node == "label") {
child.type = CHILD_TYPE_LABEL;
ret = (LabelParser()).parse(c, &child.label, error);
} else {
*error = "Unrecognized UI Element " + c->node;