editor preview titled messages

This commit is contained in:
2025-05-18 20:22:38 -05:00
parent a18b438bee
commit a52e6ff4f3
2 changed files with 6 additions and 3 deletions

View File

@@ -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)

View File

@@ -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;