Idea: mod API: the game screens' button prompts, set by a mod, and every prompt clickable #2642
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot#2642
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The idea
A mod API service for the game screens' button prompts (the app menu overlay's guides at the bottom right: "Select
(A)", "Back (B)", Options' "Default Settings (Y)"), and every prompt clickable with the mouse.
with a key icon and a text, beside the screen's own. Today that means calling the overlay's functions by address
(make the guides for its kind, show the first n, set guide i's key and label, then the pane
Pa_Guide_NN/T_Guide_00'stext through
Layout_SetTextwith a UTF-16 buffer the mod allocates in guest memory) and knowing the overlay's layoutoffsets. Proposed:
ui.prompts.set(screen kind, [{ key, text }])andui.prompts.reset(kind), the service doingthe calls on the game's thread at the overlay's guide site, texts translated by the mod.
oot::menus) clicks "Back" by a fixed box at the bottom right and themap's Y prompt by another. Reading the overlay's own guides (their count, panes, keys and hit boxes) and tapping the
clicked guide's key would make every prompt clickable, the game's and a mod's, with no fixed boxes and nothing for a
mod to do. This part is core, and comes first.
Anything else
First user: the save slots system mod on
mod-api(branchfeat/save-slots-mod) shows "X New Save, B Back" in thesave list through the overlay's functions as named locations; on main, its C version clicked "New Save" by a fixed box
beside Back's. With (2) its click needs no code of its own; with (1) its prompt is a call.
Prior work: none found (searched
button prompt,guide prompt,clickable).Possibly related, for context: