Plan document session prompts
This commit is contained in:
@@ -134,7 +134,9 @@ std::shared_ptr<NodeMessageBox> App::message_box(const std::string &title, const
|
||||
m->m_title->set_text(plan.title.c_str());
|
||||
m->m_message->set_text(plan.message.c_str());
|
||||
m->btn_ok->m_text->set_text(plan.ok_caption.c_str());
|
||||
if (!plan.show_cancel)
|
||||
if (plan.show_cancel)
|
||||
m->btn_cancel->m_text->set_text(plan.cancel_caption.c_str());
|
||||
else
|
||||
m->btn_cancel->destroy();
|
||||
layout[main_id]->add_child(m);
|
||||
return m;
|
||||
|
||||
Reference in New Issue
Block a user