Commit graph

17 commits

Author SHA1 Message Date
Oni
bc80233f1f Merge branch 'vote-level-names' into 'master'
Vote level names

See merge request KartKrew/Kart!1873
2024-01-28 23:29:44 +00:00
Sally Coolatta
a7df7aa637 Add Medium Font
Monospaced in-between of Console & Thin
2024-01-27 20:38:52 -05:00
James R
510c82ca6d srb2::Draw: inherit global cliprect by default
- Let srb2::Draw be mixed seamlessly with C-style
  V_SetClipRect
2024-01-26 15:12:46 -08:00
James R
3a8a7f3cf5 Add thin timer font 2024-01-22 16:42:30 -08:00
James R
892d2c73a8 srb2::Draw: add sticker and small_sticker methods
- Can be aligned to place a wing on only the left or right
  sides, or both
- Width is adjustable
- Custom sticker support
2024-01-22 16:42:30 -08:00
James R
6347afb63f srb2::Draw: add cache_patch static class method 2024-01-22 16:42:30 -08:00
James R
3030f7c65b srb2::Draw::TextElement: add color codes to parsing
- <white>
- <purple>
- <yellow>
- <green>
- <blue>
- <red>
- <gray>
- <orange>
- <sky>
- <lavender>
- <gold>
- <aqua>
- <magenta>
- <pink>
- <brown>
- <tan>
2024-01-16 20:10:24 -08:00
James R
bfa6e4f401 srb2::Draw::TextElement: add parse method
- Parse and translate special characters
- Currently supported:
  - Button codes
    - <up>
    - <down>
    - <right>
    - <left>
    - <r>
    - <l>
    - <start>
    - <a>
    - <b>
    - <c>
    - <x>
    - <y>
    - <z>
  - All button codes can be suffixed with '_pressed' or
    '_animated'
    - E.g. <b_pressed> or <start_animated>
2024-01-16 06:21:13 -08:00
James R
1c056acc2c srb2::Draw: add menu font 2023-12-29 17:03:54 -08:00
toaster
676a1e3602 v_draw.cpp Chain::fill: Ensure flags are passed to V_DrawFill
Fixes non-green resolution for tutorial dialogue
2023-12-23 17:30:08 +00:00
toaster
00fdae8b52 srb2::Draw::Chain: Make the button function name different between public and private contexts
The author of this commit's compiler was overzealous and kept on matching the wrong one
2023-12-01 15:56:08 +00:00
James R
9fa2e3da5f srb2::Draw: add button and small_button methods 2023-10-09 18:52:02 -07:00
Sal
0675a4e527 Tally screen 2023-09-09 05:27:55 +00:00
toaster
c5dc430b50 V_6WIDTHSPACE no longer a pitfall for using V_DrawThinString
The bunched text behaviour is now the primary mode of operation for TINY_FONT.
2023-07-12 09:00:29 +01:00
toaster
a536f884ce V_ALLOWLOWERCASE --> V_FORCEUPPERCASE
Content of commit was originally written by Sal, but as a monolithic commit. The author of this commit is chunking it up for easier review.

Simple inversion on the face of things, but with a long tail of consequences, including 19 changed files.

Forced uppercase has been applied in a handful of locations where it was aesthetically imperative. Most menus will follow in another commit, so that that may be reverted if we change the default menu font.
2023-07-12 09:00:29 +01:00
James R
8c0f7d5757 Add Draw::Font::kZVote and Draw::Font::kPing
- OPPRF_FONT
- PINGF_FONT
2023-06-29 19:27:35 -07:00
James R
d2ca5d6506 v_draw.cpp, v_draw.hpp: add srb2::Draw, 2D drawing abstraction 2023-04-28 12:50:25 -07:00