Skip to content

dialog: remove redundant "Menu Type" field from Button Properties Dialog#371

Merged
No0ne558 merged 1 commit into
ViewTouch:masterfrom
No0ne558:master
May 28, 2026
Merged

dialog: remove redundant "Menu Type" field from Button Properties Dialog#371
No0ne558 merged 1 commit into
ViewTouch:masterfrom
No0ne558:master

Conversation

@No0ne558
Copy link
Copy Markdown
Contributor

Summary

The "Menu Type" selector in the Button Properties Dialog was redundant.
"Button's Type" already has a dedicated entry for every menu-item
sub-classification:

Button's Type Equivalent Menu Type
Menu Item (Normal) Normal
Menu Item (Modifier) Modifier
Menu Item (Method) Method
Menu Item (Substitute) Substitute
Menu Item (Pound) Pound
Menu Item (Admission) Admission

When any of those specific types were selected, the dialog already
auto-derived itype from ztype and hid the Menu Type widget anyway.
The widget was only visible for the legacy generic ZONE_ITEM type.

Changes

  • Removed the item_type (DialogMenu) widget from ZoneDialog.
  • itype is now derived solely from ztype in EZ_TypeCB and
    Correct(). The generic ZONE_ITEM type defaults to ITEM_NORMAL.
  • The network protocol byte (WInt8(itype)) is unchanged — the
    server still sends and receives the same 1-byte item-type value.

Files Modified

  • term/term_dialog.hh — removed item_type field from ZoneDialog
  • term/term_dialog.cc — removed widget creation, Set, Show, and
    two item_type.Value() call sites; replaced with itype

The 'Menu Type' selector was already covered by the specific zone types
in 'Button's Type' (ZONE_ITEM_NORMAL, ZONE_ITEM_MODIFIER, etc.).
itype is now derived solely from ztype; generic ZONE_ITEM defaults to
ITEM_NORMAL. Network protocol byte is unchanged.
@No0ne558 No0ne558 merged commit 7feb0ca into ViewTouch:master May 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant