void LabelEdit::handle_done_event(int result)
{
- awindow->gui->async_update_assets();
+ if( !result ) {
+ strcpy(label->textstr, label_edit_window->textbox->get_text());
+ awindow->gui->async_update_assets();
+ }
}
BC_Window *LabelEdit::new_gui()
int x = 10, y = 10;
int x1 = x;
- BC_TextBox *textbox;
BC_Title *title;
add_subwindow(title = new BC_Title(x1, y, _("Label Text:")));
int LabelEditComments::handle_event()
{
- strcpy(window->label->textstr, get_text());
return 1;
}