invert the default previewable value of node types

This commit is contained in:
2025-05-01 13:43:43 -05:00
parent db11f2c20e
commit 52fa88b0a0
3 changed files with 6 additions and 7 deletions

View File

@@ -37,8 +37,7 @@ namespace {
.ex1a(STRT_BUTTON)
.ex2a(STRT_BUTTON)
.ex1b(eSpecPicker::NODE)
.ex2b(eSpecPicker::NODE)
.preview();
.ex2b(eSpecPicker::NODE);
node_properties_t S_ITEM_DIALOG = node_builder_t(eSpecType::ONCE_GIVE_ITEM_DIALOG)
.sdf()
.msg()

View File

@@ -575,7 +575,7 @@ bool node_category_info_t::contains(eSpecType spec) const {
node_properties_t::node_properties_t(eSpecType type)
: self(type)
, cat(getNodeCategory(type))
, can_preview(false)
, can_preview(true)
{
set(eSpecField::JUMP, eSpecPicker::NODE);
}
@@ -873,8 +873,8 @@ node_builder_t& node_builder_t::loc(eSpecField a, eSpecField b, eLocType type, e
return *this;
}
node_builder_t& node_builder_t::preview() {
node.can_preview = true;
node_builder_t& node_builder_t::no_preview() {
node.can_preview = false;
return *this;
}

View File

@@ -268,8 +268,8 @@ struct node_builder_t {
node_builder_t& loc(eSpecField a, eSpecField b, eLocType type);
// As above, but also notes that the area the location is in will be specified by the indicated field.
node_builder_t& loc(eSpecField a, eSpecField b, eLocType type, eSpecField where);
// Specifies that the node defines a dialog which can be previewed
node_builder_t& preview();
// Specifies that the node does not display a dialog, or its dialog cannot be previewed
node_builder_t& no_preview();
node_condition_builder_t when(node_condition_t cond, int lbl_sub);
operator node_properties_t();
private: