From a18b438beec80e500f14fb0c0267660471dcdd69 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sun, 18 May 2025 20:21:12 -0500 Subject: [PATCH] editor dialog previews show record button --- src/scenedit/scen.keydlgs.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/scenedit/scen.keydlgs.cpp b/src/scenedit/scen.keydlgs.cpp index eaa20eb0..6346cf60 100644 --- a/src/scenedit/scen.keydlgs.cpp +++ b/src/scenedit/scen.keydlgs.cpp @@ -833,6 +833,10 @@ static bool preview_spec_enc_dlog(cDialog& me, std::string item_hit, cSpecial& s univ.party.outdoor_corner = cur_out; univ.party.i_w_c = {0, 0}; + std::string title = ""; + ePicType pic_type = PIC_SCEN; + pic_num_t pic = scenario.intro_pic; + switch(special.type){ case eSpecType::ONCE_DIALOG: once_dialog(univ, special, cur_type, &me); @@ -846,7 +850,9 @@ static bool preview_spec_enc_dlog(cDialog& me, std::string item_hit, cSpecial& s short defaultBackground = cDialog::defaultBackground; cDialog::defaultBackground = cDialog::BG_DARK; - cStrDlog(str1, str2, "", scenario.intro_pic, PIC_SCEN, &me).show(); + cStrDlog dlog(str1, str2, title, pic, pic_type, &me); + dlog->getControl("record").show(); + dlog.show(); cDialog::defaultBackground = defaultBackground; }break; }