forked from cataclysmbnteam/Cataclysm-BN
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: togglable message log window size (cataclysmbnteam#2511)
* feat: expand message log window to full height i can't believe it was this simple! * feat: widen message log display * feat: local keybind for toggling messages * feat: add local keybinding for messages * style: use for loop to load keybindings * feat: togglable messages * feat: use wide display by default, use full height * refactor: remove unnessary mark_resize in `init` * refactor: simplify `set_size` we're not providing way to customize message log dimension so using struct is overkill. * chore: remove duplicate <locale> * refactor: move all keybindings to `data/raw/keybindings/` * refactor: separate `user_keybindings` pre-step for furthur refactorings * refactor: resursively load `data/raw/` * feat: add `TOGGLE_FULL_HEIGHT_DISPLAY` * feat: keep window size persistent i doubt this is the best solution but it works * fix: use `size_t` Co-authored-by: Olanti <[email protected]> * fix: remove redundant `set_size()` Co-authored-by: olanti-p <[email protected]> * fix: clang complaint on `<set>` header inclusion * feat: persistent wide and height size * feat: make option description less verbose Co-authored-by: Olanti <[email protected]> * feat: add description for toggleable description on messages panel * refactor: use more specific name for msg window uistate Co-authored-by: olanti-p <[email protected]> --------- Co-authored-by: Olanti <[email protected]>
- Loading branch information
Showing
9 changed files
with
92 additions
and
58 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[ | ||
{ | ||
"id": "TOGGLE_WIDE_DISPLAY", | ||
"type": "keybinding", | ||
"category": "MESSAGE_LOG", | ||
"name": "Toggle wide display", | ||
"bindings": [ { "input_method": "keyboard", "key": "w" } ] | ||
}, | ||
{ | ||
"id": "TOGGLE_FULL_HEIGHT_DISPLAY", | ||
"type": "keybinding", | ||
"category": "MESSAGE_LOG", | ||
"name": "Toggle full height display", | ||
"bindings": [ { "input_method": "keyboard", "key": "h" } ] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters