Preferences: "Commands" tab to change the chat command words #1084

Open
opened 2026-10-25 21:21:12 +00:00 by sky_line · 0 comments
Owner

Nearby-chat viewer commands (indra/newview/slchatcommand.cpp) can already be renamed, but only through Debug Settings (SlipstreamChatCommand*). Add a Commands tab to the Preferences window that shows every command with its current trigger and lets the user change it.

Contents

  • Master checkbox: enable chat commands (SlipstreamChatCommandEnable).
  • One row per command: a short description, an editable trigger field, and a reset-to-default button. Current commands (setting -> default):
    • DrawDistance /dd, Height /gth, Ground /flr, Pos /pos, RezPlat /plat, Home /home, SetHome /sethome, Calc /calc, Mapto /mapto, ClearNearby /clr, RegionMessage /regionmsg, SetChatChannel /setchannel, ResyncAnim /resync, TeleportToCam /tp2cam, HoverHeight /hover, plus the AO command (#496) and any other configurable ones in the file.
  • Commands that are hard-coded today (/droll, /sendmenu) either get settings too or are listed read-only.
  • "Reset all to defaults" button.

Behaviour

  • Validation: a trigger must start with /, contain no spaces, and not collide with another command (show the conflict inline; refuse to save duplicates).
  • Changes apply immediately (the parser reads the cached controls).
  • Optional: allow an alias per command (e.g. /rezplat as a second trigger for /plat), so familiar names from other viewers work without renaming ours.
  • Short help text per command (arguments, e.g. /gth <height>), also usable for a future /help command.
Nearby-chat viewer commands (`indra/newview/slchatcommand.cpp`) can already be renamed, but only through Debug Settings (`SlipstreamChatCommand*`). Add a **Commands** tab to the Preferences window that shows every command with its current trigger and lets the user change it. ## Contents - Master checkbox: enable chat commands (`SlipstreamChatCommandEnable`). - One row per command: a short description, an editable trigger field, and a reset-to-default button. Current commands (setting -> default): - DrawDistance `/dd`, Height `/gth`, Ground `/flr`, Pos `/pos`, RezPlat `/plat`, Home `/home`, SetHome `/sethome`, Calc `/calc`, Mapto `/mapto`, ClearNearby `/clr`, RegionMessage `/regionmsg`, SetChatChannel `/setchannel`, ResyncAnim `/resync`, TeleportToCam `/tp2cam`, HoverHeight `/hover`, plus the AO command (#496) and any other configurable ones in the file. - Commands that are hard-coded today (`/droll`, `/sendmenu`) either get settings too or are listed read-only. - "Reset all to defaults" button. ## Behaviour - Validation: a trigger must start with `/`, contain no spaces, and not collide with another command (show the conflict inline; refuse to save duplicates). - Changes apply immediately (the parser reads the cached controls). - Optional: allow an alias per command (e.g. `/rezplat` as a second trigger for `/plat`), so familiar names from other viewers work without renaming ours. - Short help text per command (arguments, e.g. `/gth <height>`), also usable for a future `/help` command.
sky_line added this to the Slipstream project 2026-10-25 21:21:13 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sky_line/Slipstream#1084
No description provided.