Skip to content

Commit

Permalink
feat: add hud display for base mode
Browse files Browse the repository at this point in the history
  • Loading branch information
unRARed committed Dec 8, 2024
1 parent c1bc453 commit 3f770a7
Show file tree
Hide file tree
Showing 21 changed files with 68 additions and 11 deletions.
6 changes: 6 additions & 0 deletions config/common/keyboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@ keyboard:
switch: s_qualifier2
t:
switch: s_qualifier3
# the next two switches (spinner, grooveline)
# in sequence trigger a "lap"
",":
switch: s_spinner
".":
switch: s_grooveline
3 changes: 0 additions & 3 deletions config/common/players.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,3 @@ sound_player:
rad_racer:
track: music
action: stop

slide_player:
mode_green_flag_started: green_flag_slide
10 changes: 5 additions & 5 deletions config/common/slides.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#config_version=6

slides:
green_flag_slide:
widgets:
- type: image
image: rear-view
fuel_slide:
rear_view_hud_slide:
- widget: pit_background
- widget: rear_view
- widget: fuel_(current_player.level_fuel)
- widget: oil_(current_player.level_oil)
- widget: tires_(current_player.level_tires)
55 changes: 54 additions & 1 deletion config/common/widgets.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,65 @@
#config_version=6

widgets:
pit_background:
- type: image
image: pit-background
z: 0
rear_view:
- type: image
image: rear-view
z: 1
fuel_2:
- type: image
image: fuel-2
z: 4
x: 10%
y: 15%
fuel_1:
- type: image
image: fuel-1
z: 4
x: 10%
y: 15%
fuel_0:
- type: image
image: fuel-1
image: fuel-0
z: 4
x: 10%
y: 15%
oil_2:
- type: image
image: oil-2
z: 2
x: 9%
y: 83%
oil_1:
- type: image
image: oil-1
z: 2
x: 9%
y: 83%
oil_0:
- type: image
image: oil-0
z: 2
x: 9%
y: 83%
tires_2:
- type: image
image: tires-2
z: 3
x: 32%
y: 50%
tires_1:
- type: image
image: tires-1
z: 3
x: 32%
y: 50%
tires_0:
- type: image
image: tires-0
z: 3
x: 32%
y: 50%
1 change: 1 addition & 0 deletions config/development/virtual_platform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ slides:
width: 300
height: 75
y: 100
z: 100

slide_player:
init_done: virtual_segment1
Binary file modified images/preload/fuel-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/preload/fuel-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/preload/fuel-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/preload/oil-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/preload/oil-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/preload/oil-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/preload/pit-background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/preload/rear-view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/preload/tires-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/preload/tires-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/preload/tires-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified misc/theme/fuel-gauge.pxm
Binary file not shown.
Binary file modified misc/theme/oil-gauge.pxm
Binary file not shown.
Binary file modified misc/theme/rear-view.pxm
Binary file not shown.
Binary file modified misc/theme/tire-gauge.pxm
Binary file not shown.
4 changes: 2 additions & 2 deletions modes/base/config/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ ball_saves:

slide_player:
mode_base_started:
fuel_slide:
rear_view_hud_slide:
action: play
player_level_fuel: fuel_slide
player_level_fuel: rear_view_hud_slide

variable_player:
###########
Expand Down

0 comments on commit 3f770a7

Please sign in to comment.