Skip to content

Reference notes for MenuItem sliders and Save/Load input #229

Description

@Krarilotus

TL;DR: Reference notes for anyone reconstructing the native menu sliders and Save/Load dialogs. No implementation is requested by this issue.

These observations explain how the existing controls pass values and handle keyboard input. They may help avoid reconstructing those behaviors incorrectly.

Proposed change: Use these findings when the corresponding functions are implemented:

  • Save modal 10 uses text entry 2. Return invokes the existing Save action and overwrite confirmation; Load modal 9 uses a selectable list.
  • Slider callbacks use the MenuItem fields at +0x3C/+0x40/+0x44 for minimum, maximum and current value. Operations 1, 7 and 2 read values, request the step and submit a change. +0x20 is thumb width.
  • Load scrollbar operation 7 returns visible rows minus one.
  • drawHeaderTextBanner at 0x475CC0 appears to take six arguments: the caller pushes six and the callee returns with ret 0x18. Check the five-argument declaration.

Status / review: Version: SHC 1.41 West. Findings come from assembly and native control checks; no implementation or binary match is claimed. This can be moved to project documentation if an issue is not the preferred place for reference notes.

Save/Load notes · Slider notes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions