Skip to content

Chat keyboard, quick phrases, grouping jobs and own slots for Main's face buttons - #2

Open
apoguita wants to merge 3 commits into
skytruax:mainfrom
apoguita:chat-and-group-jobs
Open

apoguita wants to merge 3 commits into
skytruax:mainfrom
apoguita:chat-and-group-jobs

Conversation

@apoguita

Copy link
Copy Markdown
Contributor

This builds on #1. Until that one is merged, the diff here shows its changes as well; the two commits that are new are "Adding keyboard and quick mesagfe support" and "Layer bugfixes".

New

Chat keyboard

  • An on-screen keyboard for typing in chat with the controller. It opens with the chat, or from a button given the "Chat keyboard" job.
  • The D-pad or left stick moves a highlight over the keys. A types, X deletes (hold to keep deleting), Y sends, B clears the message and then closes the chat.
  • Space, Shift and numbers/symbols are keys on the keyboard.
  • Word suggestions appear above the keys as you type, in English, French, German, Spanish or Italian. It learns the words you use.
  • A row of chat channels (say, yell, party, raid, guild, general, whisper, reply) sits under the keys; LB and RB switch between them.
  • It remembers the last channel you wrote on, per character, and opens there next time, including after logging out.
  • Key layouts: QWERTY, AZERTY, QWERTZ, Spanish and Italian.

Quick phrases

  • A window of ready-made phrases in themed rows of five, sent with one press.
  • The D-pad or left stick picks a phrase, LB and RB pick the channel, A sends.
  • Phrases and row names can be rewritten, rows can be added (up to eight), and a phrase can be opened in the keyboard to add to it before sending.
  • A phrase that starts with / runs as a command, such as an emote or /roll.
  • Phrases are shared by all characters and can be reset to the defaults.

New jobs for buttons

  • Chat keyboard
  • Quick phrases
  • Invite target
  • Ask to join target's group
  • Invite target, or ask to join: picks whichever applies to the target
  • Leave party
  • Accept group invite or request
  • Target's menu: opens the game's own menu for the target (inspect, mark, whisper, trade)

All of them can go on the bar, on any other button, or in the game's Key Bindings screen, and each has its own icon. The grouping jobs work in combat.

Settings

  • A new Chat page: keyboard on or off, whether it opens with the chat, key layout, suggestion language, learning, remembering the channel, and the quick phrases.
  • New commands: /fc chat, /fc keyboard (with on, off, unlock, lock, reset, scale, forget) and /fc phrases.

Changed

  • Every job now belongs to its page. Turning the page, returning to the main layer and the mouse button used to sit on their button on every page. They now behave like any other job: set on one page, they are on that page only. Existing setups are moved to the page they were most likely set on.
  • The controller belongs to the chat window while it is open. With the keyboard or the phrases window up, the bar lets go of all its buttons and takes them back when the window closes.
  • The mouse pointer is put away when the keyboard or the phrases window opens.

Fixed

  • Buttons sharing an action across pages. A face button on Main (X, Y, B, A with no trigger held) that was made an action slot showed the same action as LT + RT + that button on another page, so changing one changed the other. Every page now has 32 separate buttons.
  • A bumper used by the chat window responding late or not at all, because the game was treating it as a held modifier key.

Worth a look before merging

  • Where Main's face buttons keep their actions has changed. They now use slots 13 to 24, the second page of the game's main action bar, instead of sharing the LT + RT slots of another page. For anyone who already made one of those buttons an action slot, it will look empty after updating; what it held is still on the LT + RT button it was shared with.
  • Third-party code. The keyboard's frame, word suggestions, channel row and quick phrases are ported from Easy Controller - Forever by moust4ki (MIT). The five word lists come with it from FrequencyWords (CC-BY-SA-4.0). Both notices are in FreeControl/Chat/LICENSE-EasyController.txt, which ships in the zip, and the README credits them.
  • Size. The addon grows by about 1 MB, mostly the word lists.
  • Combat. Neither the keyboard nor the phrases window works in a fight; both close when one starts.
  • Tests. The mock-client suite goes from 309 to 331 tests, all passing, and takes about 35 seconds instead of 7 because every test now loads the word lists.
  • Version. Not bumped; the changelog entries are under "Unreleased".

Played with in game on the Forever client: the keyboard, the quick phrases and the bar handing its buttons over and back. The grouping jobs and the slot fix have been through the test suite only.

🤖 Generated with Claude Code

LAYERS AND TRIGGERS

- Triggers can lock a layer instead of being held. Press LT, RT or both
  once to switch to that layer, and press again to leave it. A "Toggle
  layers" setting switches back to hold-to-shift.
- "Return to main layer" job. Any button can be given the job of going
  back to the Main layer, in combat too.

BUTTONS AND JOBS

- Every button on every layer can have a job. Before, only the eight
  no-trigger buttons could be something other than a spell slot. Now any
  button on Main, LT, RT or LT + RT can be a spell slot, a command, your
  own key binding, or nothing.
- A "Nothing" job: a button can be set to do nothing on a layer.
- Button assignments in the settings: pick a layout from a list and set
  all eight of its buttons in one place.
- The mouse-pointer button can go on any layer, not only Main.

JOBS BELONG TO A PAGE

- A job is set for the page you are on. A job given on page 1 is not on
  that button on pages 2 and 3; there the button is an ordinary spell
  slot or has a different job.
- This works in combat: turning the page swaps the jobs and their
  pictures at once.
- Navigation jobs stay on every page so nobody gets stuck: next and
  previous page, Return to main layer, the mouse button, and a stance's
  own button.
- Main's starting jobs (Interact, game menu, Jump) are on page 1 only.
  On pages 2 and 3 those face buttons are free for spells.
- Existing setups are converted once, moving old jobs to page 1.

TARGETING THE PARTY

- Four new jobs: target next, previous, first and last party member.
  They step through the party without a button per person.
- They skip empty places, work in combat, and leave the target alone
  when there is no party.
- They can go on bar buttons, bumpers and paddles, button combinations,
  or the game's Key Bindings screen.

STANCES AND FORMS

- Each form can have its own Main layout: eight Main buttons of its own,
  with their own spells and jobs.
- The player chooses which layouts change with stance. The setting is
  four ticks: Main, LT, RT and LT + RT. It replaces the list of preset
  choices in the menu.
- Nothing is chosen for the player. A new character starts with no
  layout ticked. An existing setup is converted once into ticks that
  match what was changing before.
- Only one page reacts to stances. The other pages are the same in every
  stance or form.
- The limit is Main plus two of LT, RT and LT + RT, which is all the
  game can store.

ICONS

- Every job has its own picture. The four party-stepping jobs have
  arrows in different colours, party members 1 to 4 show one to four
  dots, page turning has double arrows, and the remaining jobs each have
  their own colour. Before, most of them shared one grey icon.

PER CHARACTER AND PER TALENT GROUP

- Settings are saved per character. Each character starts from a copy of
  the old shared settings and then keeps its own, bindings included.
- Bar settings follow the talent group: the page, paging options, slot
  source and stance choices are kept separately for primary and
  secondary talents.

SMALLER FIXES

- A button holding a cast-sequence macro updates its icon and tooltip as
  the sequence moves on or resets.

NOTES FOR REVIEW

- Two defaults change for existing users: stance changes start with
  nothing ticked, and Jump and Interact are on page 1 only.
- The unit tests pass. The simulator suite has not been run, and the
  newer features have not been checked in the game.
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