GUI: wrap text in warning pop-up
This commit is contained in:
parent
319a557ec3
commit
96f0f7bd78
2 changed files with 4 additions and 2 deletions
|
|
@ -6253,7 +6253,9 @@ bool FurnaceGUI::loop() {
|
|||
|
||||
centerNextWindow(_("Warning"),canvasW,canvasH);
|
||||
if (ImGui::BeginPopupModal(_("Warning"),NULL,ImGuiWindowFlags_AlwaysAutoResize)) {
|
||||
ImGui::Text("%s",warnString.c_str());
|
||||
ImGui::PushTextWrapPos(canvasW);
|
||||
ImGui::TextUnformatted(warnString.c_str());
|
||||
ImGui::PopTextWrapPos();
|
||||
switch (warnAction) {
|
||||
case GUI_WARN_QUIT:
|
||||
if (ImGui::Button(_("Yes"))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue