From a52e6ff4f346f0da4205ea79d166d9f52f38d8d3 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sun, 18 May 2025 20:22:38 -0500 Subject: [PATCH] editor preview titled messages --- src/scenario/special-general.cpp | 4 +--- src/scenedit/scen.keydlgs.cpp | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/scenario/special-general.cpp b/src/scenario/special-general.cpp index c08eaa48..b8c7cf03 100644 --- a/src/scenario/special-general.cpp +++ b/src/scenario/special-general.cpp @@ -107,12 +107,10 @@ namespace{ .no_preview(); node_properties_t S_REST = node_builder_t(eSpecType::REST) .msg(); - // TODO implement preview node_properties_t S_MSG_TITLE = node_builder_t(eSpecType::TITLED_MSG) .msg() .msg3(eSpecPicker::MSG_SINGLE) - .pic() - .no_preview(); + .pic(); node_properties_t S_END_SCEN = node_builder_t(eSpecType::END_SCENARIO) .no_preview(); node_properties_t S_SETPTR = node_builder_t(eSpecType::SET_POINTER) diff --git a/src/scenedit/scen.keydlgs.cpp b/src/scenedit/scen.keydlgs.cpp index 6346cf60..f9ce2050 100644 --- a/src/scenedit/scen.keydlgs.cpp +++ b/src/scenedit/scen.keydlgs.cpp @@ -841,6 +841,11 @@ static bool preview_spec_enc_dlog(cDialog& me, std::string item_hit, cSpecial& s case eSpecType::ONCE_DIALOG: once_dialog(univ, special, cur_type, &me); break; + case eSpecType::TITLED_MSG: + univ.get_str(title, cur_type, special.m3); + pic_type = ePicType(special.pictype); + pic = special.pic; + BOOST_FALLTHROUGH; default:{ std::string str1; std::string str2;