Skip to content

Commit

Permalink
track theme menu, beta gems, rb2 strikeline
Browse files Browse the repository at this point in the history
  • Loading branch information
LlysiX committed Oct 28, 2024
1 parent 29aebac commit 5cac8ab
Show file tree
Hide file tree
Showing 6 changed files with 162 additions and 66 deletions.
223 changes: 158 additions & 65 deletions _ark/ps4/dx/overshell/dx_states.dta
Original file line number Diff line number Diff line change
Expand Up @@ -720,30 +720,15 @@
;Track Settings
#define RB4DXTRK_DATA
(
{if_else {$this in_song}
{$this setup_confirm_actions a
(
{if_else $noflames "Flames: OFF" "Flames: ON"}
{if_else $noshine "Highway Shine: OFF" "Highway Shine: ON"}
{if_else $gemshine "Gem Shine: OFF" "Gem Shine: ON"}
{if_else $noaa "Track Antialiasing: OFF" "Track Antialiasing: ON"}
{if_else $micwarn "Hide Mic Warning: ON" "Hide Mic Warning: OFF"}
{if_else $trackangle "Custom Track Angle: ON" "Custom Track Angle: OFF"}
"Track Curvature"
)
}
{$this setup_confirm_actions a
(
"Highway Texture"
{if_else $noflames "Flames: OFF" "Flames: ON"}
{if_else $noshine "Highway Shine: OFF" "Highway Shine: ON"}
{if_else $gemshine "Gem Shine: OFF" "Gem Shine: ON"}
{if_else $noaa "Track Antialiasing: OFF" "Track Antialiasing: ON"}
{if_else $micwarn "Hide Mic Warning: ON" "Hide Mic Warning: OFF"}
{if_else $trackangle "Custom Track Angle: ON" "Custom Track Angle: OFF"}
"Track Curvature"
)
}
{$this setup_confirm_actions a
(
"Track Theme"
{if_else $noflames "Flames: OFF" "Flames: ON"}
{if_else $noaa "Track Antialiasing: OFF" "Track Antialiasing: ON"}
{if_else $micwarn "Hide Mic Warning: ON" "Hide Mic Warning: OFF"}
{if_else $trackangle "Custom Track Angle: ON" "Custom Track Angle: OFF"}
"Track Curvature"
)
}
)
(kState_RB4DXTrkSettings
Expand Down Expand Up @@ -792,44 +777,6 @@
{$this show_state kState_RB4DXTrackAngleSelector}
{$this trigger_select_effects}
)
(("Highway Shine: ON" "Highway Shine: OFF")
{set $noshine {! $noshine}}
{if_else $noshine
{do
{dx_file_rename "ps4/track/shared/track_skin_swap1.sgraph_ps4ps4" "ps4/track/shared/track_skin_swap.sgraph_ps4ps4"}
{dx_write_null_file "settings/visuals/noshine.dta"}
}
{do
{dx_file_rename "ps4/track/shared/track_skin_swap.sgraph_ps4ps4" "ps4/track/shared/track_skin_swap1.sgraph_ps4ps4"}
{dx_file_delete "settings/visuals/noshine.dta"}
}
}
{if_else {$this in_song}
{$this show_state kState_RB4DXInGameWarn}
RB4DXTRK_DATA
}
{$this trigger_select_effects}
)
(("Gem Shine: ON" "Gem Shine: OFF")
{set $gemshine {! $gemshine}}
{if_else $gemshine
{do
{dx_file_rename "ps4/track/guitar/gem_unlit1.sgraph_ps4ps4" "ps4/track/guitar/gem_unlit.sgraph_ps4ps4"}
{dx_file_rename "ps4/track/drums/gem_cymbal_unlit1.sgraph_ps4ps4" "ps4/track/drums/gem_cymbal_unlit.sgraph_ps4ps4"}
{dx_write_null_file "settings/visuals/gemshine.dta"}
}
{do
{dx_file_rename "ps4/track/guitar/gem_unlit.sgraph_ps4ps4" "ps4/track/guitar/gem_unlit1.sgraph_ps4ps4"}
{dx_file_rename "ps4/track/drums/gem_cymbal_unlit.sgraph_ps4ps4" "ps4/track/drums/gem_cymbal_unlit1.sgraph_ps4ps4"}
{dx_file_delete "settings/visuals/gemshine.dta"}
}
}
{if_else {$this in_song}
{$this show_state kState_RB4DXInGameWarn}
RB4DXTRK_DATA
}
{$this trigger_select_effects}
)
(("Flames: OFF" "Flames: ON")
{set $noflames {! $noflames}}
{if_else $noflames
Expand Down Expand Up @@ -882,15 +829,98 @@
{$this show_state kState_RB4DXTrackCurve}
{$this trigger_select_effects}
)
("Track Theme"
{$this show_state kState_RB4DXTrackTheme}
{$this trigger_select_effects}
)
}
)
(on_cancel
{set $dx_cur_state FALSE}
{$this show_state kState_RB4DXMain}
{$this trigger_cancel_effects}
)
)

;Track Theme
#define RB4DXTHM_DATA
(
{$this setup_confirm_actions a
(
"Highway Texture"
"Gem Texture"
"Strikeline Texture"
{if_else $noshine "Highway Shine: OFF" "Highway Shine: ON"}
{if_else $gemshine "Gem Shine: OFF" "Gem Shine: ON"}
)
}
)
(kState_RB4DXTrackTheme
(view {$this get_auto_list_view})
(enter
{set $noshine {dx_file_exists "ps4/track/shared/track_skin_swap.sgraph_ps4ps4"}}
{set $gemshine {dx_file_exists "ps4/track/guitar/gem_unlit.sgraph_ps4ps4"}}
{set $dx_cur_state thm}
RB4DXTHM_DATA
)
(SELECT_MSG
{local $list_data {($objId UIListCom) get_data_in_column token}}
{switch $list_data
(("Highway Shine: ON" "Highway Shine: OFF")
{set $noshine {! $noshine}}
{if_else $noshine
{do
{dx_file_rename "ps4/track/shared/track_skin_swap1.sgraph_ps4ps4" "ps4/track/shared/track_skin_swap.sgraph_ps4ps4"}
{dx_write_null_file "settings/visuals/noshine.dta"}
}
{do
{dx_file_rename "ps4/track/shared/track_skin_swap.sgraph_ps4ps4" "ps4/track/shared/track_skin_swap1.sgraph_ps4ps4"}
{dx_file_delete "settings/visuals/noshine.dta"}
}
}
{if_else {$this in_song}
{$this show_state kState_RB4DXInGameWarn}
RB4DXTHM_DATA
}
{$this trigger_select_effects}
)
(("Gem Shine: ON" "Gem Shine: OFF")
{set $gemshine {! $gemshine}}
{if_else $gemshine
{do
{dx_file_rename "ps4/track/guitar/gem_unlit1.sgraph_ps4ps4" "ps4/track/guitar/gem_unlit.sgraph_ps4ps4"}
{dx_file_rename "ps4/track/drums/gem_cymbal_unlit1.sgraph_ps4ps4" "ps4/track/drums/gem_cymbal_unlit.sgraph_ps4ps4"}
{dx_write_null_file "settings/visuals/gemshine.dta"}
}
{do
{dx_file_rename "ps4/track/guitar/gem_unlit.sgraph_ps4ps4" "ps4/track/guitar/gem_unlit1.sgraph_ps4ps4"}
{dx_file_rename "ps4/track/drums/gem_cymbal_unlit.sgraph_ps4ps4" "ps4/track/drums/gem_cymbal_unlit1.sgraph_ps4ps4"}
{dx_file_delete "settings/visuals/gemshine.dta"}
}
}
{if_else {$this in_song}
{$this show_state kState_RB4DXInGameWarn}
RB4DXTHM_DATA
}
{$this trigger_select_effects}
)
("Highway Texture"
{$this show_state kState_RB4DXHWTexSelector}
{$this trigger_select_effects}
)
("Gem Texture"
{$this show_state kState_RB4DXGemTexSelector}
{$this trigger_select_effects}
)
("Strikeline Texture"
{$this show_state kState_RB4DXSLTexSelector}
{$this trigger_select_effects}
)
}
)
(on_cancel
{set $dx_cur_state FALSE}
{$this show_state kState_RB4DXMain}
{$this show_state kState_RB4DXTrkSettings}
{$this trigger_cancel_effects}
)
)
Expand Down Expand Up @@ -931,11 +961,74 @@
}
}
}
{$this show_state kState_RB4DXTrkSettings}
{if_else {$this in_song}
{$this show_state kState_RB4DXInGameWarn}
{$this show_state kState_RB4DXTrackTheme}
}
{$this trigger_select_effects}
)
(on_cancel
{$this show_state kState_RB4DXTrkSettings}
{$this show_state kState_RB4DXTrackTheme}
{$this trigger_cancel_effects}
)
)

;Gem Texture Selector
(kState_RB4DXGemTexSelector
(view {$this get_auto_list_view})
(enter
{$this setup_confirm_actions a ("Rock Band 4" "Rock Band 4 (Beta)")}
)
(SELECT_MSG
{local $list_data {($objId UIListCom) get_data_in_column token}}
{switch $list_data
("Rock Band 4"
{dx_file_delete "ps4/track/guitar/gem_unlit.entity_ps4"}
{dx_file_delete "ps4/track/guitar/gem_hopo_unlit.entity_ps4"}
)
("Rock Band 4 (Beta)"
{dx_file_copy "ps4/track/guitar/gem.entity_ps4" "ps4/track/guitar/gem_unlit.entity_ps4"}
{dx_file_copy "ps4/track/guitar/gem.entity_ps4" "ps4/track/guitar/gem_hopo_unlit.entity_ps4"}
)
}
{if_else {$this in_song}
{$this show_state kState_RB4DXInGameWarn}
{$this show_state kState_RB4DXTrackTheme}
}
{$this trigger_select_effects}
)
(on_cancel
{$this show_state kState_RB4DXTrackTheme}
{$this trigger_cancel_effects}
)
)

;Smasher/Strikeline Texture Selector
(kState_RB4DXSLTexSelector
(view {$this get_auto_list_view})
(enter
{$this setup_confirm_actions a ("Rock Band 4" "Rock Band 2")}
)
(SELECT_MSG
{local $list_data {($objId UIListCom) get_data_in_column token}}
{switch $list_data
("Rock Band 4"
{dx_file_delete "ps4/track/smasher/smasher_normal.bmp_ps4"}
{dx_file_delete "ps4/track/smasher/smasher_util.bmp_ps4"}
)
("Rock Band 2"
{dx_file_copy "ps4/track/smasher/smasher_normal_rb2.bmp_ps4" "ps4/track/smasher/smasher_normal.bmp_ps4"}
{dx_file_copy "ps4/track/smasher/smasher_util_rb2.bmp_ps4" "ps4/track/smasher/smasher_util.bmp_ps4"}
)
}
{if_else {$this in_song}
{$this show_state kState_RB4DXInGameWarn}
{$this show_state kState_RB4DXTrackTheme}
}
{$this trigger_select_effects}
)
(on_cancel
{$this show_state kState_RB4DXTrackTheme}
{$this trigger_cancel_effects}
)
)
Expand Down
1 change: 1 addition & 0 deletions _ark/ps4/dx/ui/dx_init.dta
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include init_dev.dta
{set $speedmod 100}
{write_file "data:/GoldHEN/RB4DX/speedmod.ini" {array ({/ $speedmod 100})}}
{set $dx_initialized TRUE}
{set $calibrationmode FALSE}
{set $track_curve 1}
Expand Down
4 changes: 3 additions & 1 deletion _ark/ps4/dx/ui/init_dev.dta
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ UPDATE_SETTINGS
{if {file_exists "RB4DX.ini"}
{dx_file_delete "RB4DX.ini"}
}
{dx_write_file "speedmod.ini" {array ({/ $speedmod 100})}}
{if {file_exists "speedmod.ini"}
{dx_file_delete "speedmod.ini"}
}
{if {file_exists "autoplay.ini"}
{dx_file_delete "autoplay.ini"}
}
Expand Down
Binary file added _ark/ps4/track/guitar/gem.entity_ps4
Binary file not shown.
Binary file not shown.
Binary file added _ark/ps4/track/smasher/smasher_util_rb2.bmp_ps4
Binary file not shown.

0 comments on commit 5cac8ab

Please sign in to comment.