Progress
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user