Skip to content

Commit

Permalink
rb3 hw transparency
Browse files Browse the repository at this point in the history
  • Loading branch information
LlysiX committed Jan 13, 2024
1 parent 7249fd0 commit 2bcedd3
Show file tree
Hide file tree
Showing 22 changed files with 127 additions and 4 deletions.
24 changes: 24 additions & 0 deletions _ark/dx/track/dx_h2h_callback.dta
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
{$this check_missed}
{{{get_track_0_panel} find streak_meter} star_deploy_stop}
{{{{get_track_0_panel} find streak_meter} find glass.mat} set diffuse_tex {{get_track_panel} find multiplier_cap_glass_vox.tex}}
{if {== $hwalpha rb3}
{{{get_track_0_panel} find track_clipping.mat} set diffuse_tex {{get_track_panel} find rb3clip.tex}}
}
{track_0 stop_deploy}
}
)
Expand All @@ -25,6 +28,9 @@
{$this check_missed}
{{{get_track_0_panel} find streak_meter} star_deploy_stop}
{{{{get_track_0_panel} find streak_meter} find glass.mat} set diffuse_tex {{get_track_panel} find multiplier_cap_glass_vox.tex}}
{if {== $hwalpha rb3}
{{{get_track_0_panel} find track_clipping.mat} set diffuse_tex {{get_track_panel} find rb3clip.tex}}
}
{track_0 stop_deploy}
)
(check_fc
Expand All @@ -40,6 +46,9 @@
{if {> {'+' [num_gems_miss] [num_gems_pass]} 0}
{{{get_track_0_panel} find streak_meter} star_deploy_stop}
{{{{get_track_0_panel} find streak_meter} find glass.mat} set diffuse_tex {{get_track_panel} find multiplier_cap_glass_vox.tex}}
{if {== $hwalpha rb3}
{{{get_track_0_panel} find track_clipping.mat} set diffuse_tex {{get_track_panel} find rb3clip.tex}}
}
{track_0 stop_deploy}
}
{if_else {== {{game get_participant_config 0} get_track_sym} guitar}
Expand Down Expand Up @@ -101,6 +110,9 @@
}
}
}
{if {== $hwalpha rb3}
{{{get_track_0_panel} find track_clipping.mat} set diffuse_tex {{get_track_panel} find track_clipping.tex}}
}
}
)
(do_streak
Expand Down Expand Up @@ -153,6 +165,9 @@
{$this check_missed}
{{{get_track_1_panel} find streak_meter} star_deploy_stop}
{{{{get_track_1_panel} find streak_meter} find glass.mat} set diffuse_tex {{get_track_panel} find multiplier_cap_glass_vox.tex}}
{if {== $hwalpha rb3}
{{{get_track_1_panel} find track_clipping.mat} set diffuse_tex {{get_track_panel} find rb3clip.tex}}
}
{track_1 stop_deploy}
}
)
Expand All @@ -164,6 +179,9 @@
{$this check_missed}
{{{get_track_1_panel} find streak_meter} star_deploy_stop}
{{{{get_track_1_panel} find streak_meter} find glass.mat} set diffuse_tex {{get_track_panel} find multiplier_cap_glass_vox.tex}}
{if {== $hwalpha rb3}
{{{get_track_1_panel} find track_clipping.mat} set diffuse_tex {{get_track_panel} find rb3clip.tex}}
}
{track_1 stop_deploy}
)
(check_fc
Expand All @@ -179,6 +197,9 @@
{if {> {'+' [num_gems_miss] [num_gems_pass]} 0}
{{{get_track_1_panel} find streak_meter} star_deploy_stop}
{{{{get_track_1_panel} find streak_meter} find glass.mat} set diffuse_tex {{get_track_panel} find multiplier_cap_glass_vox.tex}}
{if {== $hwalpha rb3}
{{{get_track_1_panel} find track_clipping.mat} set diffuse_tex {{get_track_panel} find rb3clip.tex}}
}
{track_1 stop_deploy}
}
{if_else {== {{game get_participant_config 0} get_track_sym} guitar}
Expand Down Expand Up @@ -240,6 +261,9 @@
}
}
}
{if {== $hwalpha rb3}
{{{get_track_1_panel} find track_clipping.mat} set diffuse_tex {{get_track_panel} find track_clipping.tex}}
}
}
)
(do_streak
Expand Down
36 changes: 36 additions & 0 deletions _ark/dx/track/dx_track_callback.dta
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
{{{get_bass_panel} find streak_meter} star_deploy_stop}
{{{{get_bass_panel} find streak_meter} find glass.mat} set diffuse_tex {{get_track_panel} find multiplier_cap_glass_vox.tex}}
{bass stop_deploy}
{if {== $hwalpha rb3}
{{{get_bass_panel} find track_clipping.mat} set diffuse_tex {{get_track_panel} find rb3clip.tex}}
}
}
)
(pass
Expand All @@ -27,6 +30,9 @@
{$this check_missed}
{{{get_bass_panel} find streak_meter} star_deploy_stop}
{{{{get_bass_panel} find streak_meter} find glass.mat} set diffuse_tex {{get_track_panel} find multiplier_cap_glass_vox.tex}}
{if {== $hwalpha rb3}
{{{get_bass_panel} find track_clipping.mat} set diffuse_tex {{get_track_panel} find rb3clip.tex}}
}
{bass stop_deploy}
)
(check_fc
Expand All @@ -42,6 +48,9 @@
{if {> {'+' [num_gems_miss] [num_gems_pass]} 0}
{{{get_bass_panel} find streak_meter} star_deploy_stop}
{{{{get_bass_panel} find streak_meter} find glass.mat} set diffuse_tex {{get_track_panel} find multiplier_cap_glass_vox.tex}}
{if {== $hwalpha rb3}
{{{get_bass_panel} find track_clipping.mat} set diffuse_tex {{get_track_panel} find rb3clip.tex}}
}
{bass stop_deploy}
}
{if_else {== $highwaybass "_1_none"}
Expand Down Expand Up @@ -91,6 +100,9 @@
(do_customhw_streak
{if $hwstrk
{{{get_bass_panel} find surface.mat} set emissive_map {{get_track_panel} find bass_superstreak_pattern.tex}}
{if {== $hwalpha rb3}
{{{get_bass_panel} find track_clipping.mat} set diffuse_tex {{get_track_panel} find track_clipping.tex}}
}
}
)
(do_warning
Expand Down Expand Up @@ -165,6 +177,9 @@
{$this check_missed}
{{{get_guitar_panel} find streak_meter} star_deploy_stop}
{{{{get_guitar_panel} find streak_meter} find glass.mat} set diffuse_tex {{get_track_panel} find multiplier_cap_glass_vox.tex}}
{if {== $hwalpha rb3}
{{{get_guitar_panel} find track_clipping.mat} set diffuse_tex {{get_track_panel} find rb3clip.tex}}
}
{guitar stop_deploy}
}
)
Expand All @@ -176,6 +191,9 @@
{$this check_missed}
{{{get_guitar_panel} find streak_meter} star_deploy_stop}
{{{{get_guitar_panel} find streak_meter} find glass.mat} set diffuse_tex {{get_track_panel} find multiplier_cap_glass_vox.tex}}
{if {== $hwalpha rb3}
{{{get_guitar_panel} find track_clipping.mat} set diffuse_tex {{get_track_panel} find rb3clip.tex}}
}
{guitar stop_deploy}
)
(check_fc
Expand All @@ -192,6 +210,9 @@
{{{get_guitar_panel} find streak_meter} star_deploy_stop}
{{{{get_guitar_panel} find streak_meter} find glass.mat} set diffuse_tex {{get_track_panel} find multiplier_cap_glass_vox.tex}}
{guitar stop_deploy}
{if {== $hwalpha rb3}
{{{get_guitar_panel} find track_clipping.mat} set diffuse_tex {{get_track_panel} find rb3clip.tex}}
}
}
{if_else {== $highwaygtr "_1_none"}
{do
Expand Down Expand Up @@ -240,6 +261,9 @@
{{{get_guitar_panel} find surface.mat} set emissive_map {{get_track_panel} find bass_superstreak_pattern.tex}}
{{{get_guitar_panel} find surface.mat} set emissive_map {{get_track_panel} find pitch_arrow_effect_old.tex}}
}
{if {== $hwalpha rb3}
{{{get_guitar_panel} find track_clipping.mat} set diffuse_tex {{get_track_panel} find track_clipping.tex}}
}
}
)
(do_warning
Expand Down Expand Up @@ -314,6 +338,9 @@
{$this check_missed}
{{{get_drum_panel} find streak_meter} star_deploy_stop}
{{{{get_drum_panel} find streak_meter} find glass.mat} set diffuse_tex {{get_track_panel} find multiplier_cap_glass_vox.tex}}
{if {== $hwalpha rb3}
{{{get_drum_panel} find track_clipping.mat} set diffuse_tex {{get_track_panel} find rb3clip.tex}}
}
{drum stop_deploy}
}
)
Expand All @@ -325,6 +352,9 @@
{$this check_missed}
{{{get_drum_panel} find streak_meter} star_deploy_stop}
{{{{get_drum_panel} find streak_meter} find glass.mat} set diffuse_tex {{get_track_panel} find multiplier_cap_glass_vox.tex}}
{if {== $hwalpha rb3}
{{{get_drum_panel} find track_clipping.mat} set diffuse_tex {{get_track_panel} find rb3clip.tex}}
}
{drum stop_deploy}
)
(check_fc
Expand All @@ -340,6 +370,9 @@
{if {> {'+' [num_gems_miss] [num_gems_pass]} 0}
{{{get_drum_panel} find streak_meter} star_deploy_stop}
{{{{get_drum_panel} find streak_meter} find glass.mat} set diffuse_tex {{get_track_panel} find multiplier_cap_glass_vox.tex}}
{if {== $hwalpha rb3}
{{{get_drum_panel} find track_clipping.mat} set diffuse_tex {{get_track_panel} find rb3clip.tex}}
}
{drum stop_deploy}
}
{if_else {== $highwaydrum "_1_none"}
Expand Down Expand Up @@ -392,6 +425,9 @@
{{{get_drum_panel} find surface.mat} set emissive_map {{get_track_panel} find bass_superstreak_pattern.tex}}
{{{get_drum_panel} find surface.mat} set emissive_map {{get_track_panel} find smasher_plate_orange_emiss_nomip.tex}}
}
{if {== $hwalpha rb3}
{{{get_drum_panel} find track_clipping.mat} set diffuse_tex {{get_track_panel} find track_clipping.tex}}
}
}
)
(do_warning
Expand Down
60 changes: 60 additions & 0 deletions _ark/dx/track/dx_track_macros.dta
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
{unless $texrunevery ;this runs every track load as these textures always reset
{new Tex transparent.tex}
{{$this find transparent.tex} set_bitmap "track/custom_track_textures/_no_highway.png"}
{new Tex rb3clip.tex}
{{$this find rb3clip.tex} set_bitmap "track/custom_track_textures/track_clipping_rb3.png"}
}

{unless $texrunonce
Expand Down Expand Up @@ -90,6 +92,26 @@
{{{get_track_1_panel} find drum_slots_narrow.mat} set diffuse_tex {$this find beat_marker.tex}}
}
}
{unless $h2hclipscale
{{{get_track_0_panel} find track_clipping.mesh} get_local_scale $clipx $clipy $clipz}
{set $h2hclipscale TRUE}
}
{if_else {== $hwalpha rb3}
{do
{{{get_track_0_panel} find track_clipping.mat} set diffuse_tex {$this find rb3clip.tex}}
{{{get_track_1_panel} find track_clipping.mat} set diffuse_tex {$this find rb3clip.tex}}
{{{get_track_0_panel} find track_clipping.mesh} set_local_scale {+ $clipx 0.05} {+ $clipy 500} $clipz}
{{{get_track_1_panel} find track_clipping.mesh} set_local_scale {+ $clipx 0.05} {+ $clipy 500} $clipz}
}
{do
{{{get_track_0_panel} find track_clipping.mat} set diffuse_tex {$this find track_clipping.tex}}
{{{get_track_1_panel} find track_clipping.mat} set diffuse_tex {$this find track_clipping.tex}}
{{{get_track_0_panel} find track_clipping.mesh} set_local_scale $clipx $clipy $clipz}
{{{get_track_1_panel} find track_clipping.mesh} set_local_scale $clipx $clipy $clipz}
}
}
{{{get_track_0_panel} find track_clipping.mat} set intensify {== $hwalpha rb3}}
{{{get_track_1_panel} find track_clipping.mat} set intensify {== $hwalpha rb3}}
{{{get_track_0_panel} find track_clipping.mesh} set_showing {!= $hwalpha rb1}}
{{{get_track_1_panel} find track_clipping.mesh} set_showing {!= $hwalpha rb1}}
{if_else {== {{game get_participant_config 0} get_track_sym} drum}
Expand Down Expand Up @@ -120,6 +142,43 @@
}
}
}
{if_else {== $hwalpha rb3}
{beatmatch foreach_active_player $player
{switch {$player instrument}
(bass {{{get_bass_panel} find track_clipping.mat} set diffuse_tex {$this find rb3clip.tex}})
(guitar {{{get_guitar_panel} find track_clipping.mat} set diffuse_tex {$this find rb3clip.tex}})
(drum {{{get_drum_panel} find track_clipping.mat} set diffuse_tex {$this find rb3clip.tex}})
}
}
{beatmatch foreach_active_player $player
{switch {$player instrument}
(bass {{{get_bass_panel} find track_clipping.mat} set diffuse_tex {$this find track_clipping.tex}})
(guitar {{{get_guitar_panel} find track_clipping.mat} set diffuse_tex {$this find track_clipping.tex}})
(drum {{{get_drum_panel} find track_clipping.mat} set diffuse_tex {$this find track_clipping.tex}})
}
}
}
{{{get_guitar_panel} find track_clipping.mat} set intensify {== $hwalpha rb3}}
{{{get_bass_panel} find track_clipping.mat} set intensify {== $hwalpha rb3}}
{{{get_drum_panel} find track_clipping.mat} set intensify {== $hwalpha rb3}}
{unless $clipscale
{{{get_guitar_panel} find track_clipping.mesh} get_local_scale $clipx $clipy $clipz}
{{{get_bass_panel} find track_clipping.mesh} get_local_scale $clipx $clipy $clipz}
{{{get_drum_panel} find track_clipping.mesh} get_local_scale $clipx $clipy $clipz}
{set $clipscale TRUE}
}
{if_else {== $hwalpha rb3}
{do
{{{get_guitar_panel} find track_clipping.mesh} set_local_scale {+ $clipx 0.05} {+ $clipy 500} $clipz}
{{{get_bass_panel} find track_clipping.mesh} set_local_scale {+ $clipx 0.05} {+ $clipy 500} $clipz}
{{{get_drum_panel} find track_clipping.mesh} set_local_scale {+ $clipx 0.05} {+ $clipy 500} $clipz}
}
{do
{{{get_guitar_panel} find track_clipping.mesh} set_local_scale $clipx $clipy $clipz}
{{{get_bass_panel} find track_clipping.mesh} set_local_scale $clipx $clipy $clipz}
{{{get_drum_panel} find track_clipping.mesh} set_local_scale $clipx $clipy $clipz}
}
}
{{{get_guitar_panel} find track_clipping.mesh} set_showing {!= $hwalpha rb1}}
{{{get_bass_panel} find track_clipping.mesh} set_showing {!= $hwalpha rb1}}
{{{get_drum_panel} find track_clipping.mesh} set_showing {!= $hwalpha rb1}}
Expand All @@ -130,6 +189,7 @@
}

{if $hwalpha_needs_reset
{{$this find rb3clip.tex} iterate_refs $ref {$ref set color {pack_color 1 1 1}}}
{{$this find track_reflect.tex} iterate_refs $ref {$ref set intensify {== $hwalpha off}}}
{{$this find background.tex} iterate_refs $ref {$ref set intensify {== $hwalpha off}}}
{{$this find black.tex} iterate_refs $ref {$ref set intensify {== $hwalpha off}}}
Expand Down
2 changes: 1 addition & 1 deletion _ark/dx/ui/dx_overshell_macros.dta
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
{set $spotlightdrumcustomtexture TRUE}
{set $spotlightdrum rb3_drums}
{set $hwalpha_needs_reset TRUE}
{set $hwalpha off}
{set $hwalpha rb3}
{set $hwstrk TRUE}
{set $nohwwarn TRUE}
{set $railwarn TRUE}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _ark/track_new/highways/gen/_2_rb3_guitar.png_ps3
Binary file not shown.
Binary file modified _ark/track_new/highways/gen/_2_rb3_guitar.png_xbox
Binary file not shown.
Binary file modified _ark/track_new/highways/gen/_rb3_bass.png_ps3
Binary file not shown.
Binary file modified _ark/track_new/highways/gen/_rb3_bass.png_xbox
Binary file not shown.
Binary file modified _ark/track_new/highways/gen/_rb3_drum.png_ps3
Binary file not shown.
Binary file modified _ark/track_new/highways/gen/_rb3_drum.png_xbox
Binary file not shown.
Binary file modified _ark/track_new/highways/gen/_rb3_keys.png_ps3
Binary file not shown.
Binary file modified _ark/track_new/highways/gen/_rb3_keys.png_xbox
Binary file not shown.
1 change: 1 addition & 0 deletions _ark/ui/eng/locale_updates.dta
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,7 @@
(os_gemdiv0 "Gem Dividers: OFF")
(os_smasherbracket1 "Strikeline Bracket: OFF")
(os_smasherbracket0 "Strikeline Bracket: ON")
(os_hwalpha_rb3 "Highway Transparency: RB3")
(os_hwalpha_rb2 "Highway Transparency: RB2")
(os_hwalpha_rb1 "Highway Transparency: RB1")
(os_hwalpha_off "Highway Transparency: OFF")
Expand Down
8 changes: 5 additions & 3 deletions _ark/ui/overshell_track.dta
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@
{if_else $nogemdividers os_gemdiv0 os_gemdiv1}
{switch $hwalpha
(off os_hwalpha_off)
(rb3 os_hwalpha_rb3)
(rb2 os_hwalpha_rb2)
(rb1 os_hwalpha_rb1)
}
Expand Down Expand Up @@ -306,11 +307,12 @@
{set $hwpos {sel_section.lst selected_sym}}
{$this lst_reset}
)
((os_hwalpha_off os_hwalpha_rb2 os_hwalpha_rb1)
((os_hwalpha_off os_hwalpha_rb3 os_hwalpha_rb2 os_hwalpha_rb1)
{set $hwalpha {switch $hwalpha
(off rb2)
(off rb3)
(rb3 rb2)
(rb2 rb1)
(rb1 #ifdef HX_EE rb2 #else off #endif)
(rb1 #ifdef HX_EE rb3 #else off #endif)
}}
{set $hwalpha_needs_reset TRUE}
{set $hwpos {sel_section.lst selected_sym}}
Expand Down
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 custom_textures/highways/_2_rb3_guitar.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 custom_textures/highways/_rb3_bass.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 custom_textures/highways/_rb3_drum.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 custom_textures/highways/_rb3_keys.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2bcedd3

Please sign in to comment.