mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-10 21:44:22 +00:00
Add support to load <textbox> widgets from .xml files.
This commit is contained in:
parent
02e8c66da4
commit
fa0bf031e2
@ -352,12 +352,9 @@ Widget* WidgetLoader::convertXmlElementToWidget(const TiXmlElement* elem, Widget
|
|||||||
}
|
}
|
||||||
/* textbox */
|
/* textbox */
|
||||||
else if (ustrcmp(elem_name, "textbox") == 0) {
|
else if (ustrcmp(elem_name, "textbox") == 0) {
|
||||||
//bool wordwrap = bool_attr_is_true(elem, "wordwrap");
|
bool wordwrap = bool_attr_is_true(elem, "wordwrap");
|
||||||
|
|
||||||
/* TODO add translatable support */
|
widget = new TextBox(elem->GetText(), wordwrap ? JI_WORDWRAP: 0);
|
||||||
/* TODO here we need jxmlelem_get_text(elem) */
|
|
||||||
/* widget = jtextbox_new(tag->text, wordwrap ? JI_WORDWRAP: 0); */
|
|
||||||
ASSERT(false);
|
|
||||||
}
|
}
|
||||||
/* view */
|
/* view */
|
||||||
else if (ustrcmp(elem_name, "view") == 0) {
|
else if (ustrcmp(elem_name, "view") == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user