]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
Add code to support adding handicap icon to scoreboard
authorotta8634 <k9wolf@pm.me>
Sat, 14 Dec 2024 04:15:12 +0000 (12:15 +0800)
committerotta8634 <k9wolf@pm.me>
Sat, 17 May 2025 06:01:51 +0000 (14:01 +0800)
commit6086b18a5d332d02f8bf4b352e5df89187fabf76
tree86e0549d4510342b05c3aae89a72e40f9a190359
parent47cc62cd81a997889460d8ba24f36eaade4f73ba
Add code to support adding handicap icon to scoreboard

Currently it's disabled with an if (false), since handicap isn't yet networked to the client.
- This commit will be followed up by networking handicap to the client and enabling showing the icon.
Added handicap icon, based on https://commons.wikimedia.org/wiki/File:Wheelchair_symbol.svg,
... modified with Inkscape to be more consistent with other HUD icons like mediasource's gfx/luma/gfx/scoreboard/player_ready.svg
- Resized to be 32x32 with 3px padding around all edges (and thus made it be "square").
- Made the lines thicker, and extended the foot-rest.
- Increased the size of the gap between the frame and the wheel.
- Removed the arm-rest.
- Mostly properly aligned the head to the right.
Scoreboard changes:
- Now player_ready and playercolors can be shown simultaneously, side-by-side.
- Support for this was added with sbt_field_icon_extra*.
In future it may be worthwhile considering making the extra icons align right, I think that would look better.
gfx/scoreboard/player_handicap.tga [new file with mode: 0644]
qcsrc/client/hud/panel/scoreboard.qc
qcsrc/server/handicap.qc
qcsrc/server/handicap.qh