From 280a695353e0cbc6dc9577a3aa46967eba043772 Mon Sep 17 00:00:00 2001 From: LysiX Date: Mon, 1 Jul 2024 16:22:26 -0700 Subject: [PATCH] drunk mode --- _ark/ps4/dx/overshell/dx_states.dta | 41 ++++++++++++------------ _ark/ps4/dx/ui/dx_init.dta | 3 ++ _build/GoldHEN/plugins/RB4DX-Plugin.prx | Bin 57088 -> 57168 bytes 3 files changed, 24 insertions(+), 20 deletions(-) diff --git a/_ark/ps4/dx/overshell/dx_states.dta b/_ark/ps4/dx/overshell/dx_states.dta index 2a1ad83..8ac81a5 100644 --- a/_ark/ps4/dx/overshell/dx_states.dta +++ b/_ark/ps4/dx/overshell/dx_states.dta @@ -94,7 +94,6 @@ {if_else $syncspeeds "Sync Difficulty Speeds: ON" "Sync Difficulty Speeds: OFF"} {if_else $calibrationmode "Calibration Mode: ON" "Calibration Mode: OFF"} {if_else $precisionmode "Precision Mode: ON" "Precision Mode: OFF"} - ;{if_else $autoplayexists {if_else $drunkmode "Drunk Mode: ON" "Drunk Mode: OFF"} "Drunk Mode: DISABLED"} ) } {$this setup_confirm_actions a @@ -105,7 +104,7 @@ {if_else $syncspeeds "Sync Difficulty Speeds: ON" "Sync Difficulty Speeds: OFF"} {if_else $calibrationmode "Calibration Mode: ON" "Calibration Mode: OFF"} {if_else $precisionmode "Precision Mode: ON" "Precision Mode: OFF"} - ;{if_else $autoplayexists {if_else $drunkmode "Drunk Mode: ON" "Drunk Mode: OFF"} "Drunk Mode: DISABLED"} + {if_else $autoplayexists {if_else $drunkmode "Drunk Mode: ON" "Drunk Mode: OFF"} "Drunk Mode: DISABLED"} ) } } @@ -208,24 +207,26 @@ } {$this trigger_select_effects } ) - ; ("Drunk Mode: DISABLED" - ; {$this show_state kState_RB4DXDrunkModeHowTo} - ; {$this trigger_select_effects } - ; ) - ; (("Drunk Mode: ON" "Drunk Mode: OFF") - ; {set $drunkmode {! $drunkmode}} - ; {if_else $drunkmode - ; {do - ; {set_elem {find $syscfg beatmatcher watcher slop} 1 750} - ; RB4DXGP_DATA - ; } - ; {do - ; {set_elem {find $syscfg beatmatcher watcher slop} 1 100} - ; {$this show_state kState_RB4DXAutoplayOff} - ; } - ; } - ; {$this trigger_select_effects } - ; ) + ("Drunk Mode: DISABLED" + {$this show_state kState_RB4DXDrunkModeHowTo} + {$this trigger_select_effects } + ) + (("Drunk Mode: ON" "Drunk Mode: OFF") + {set $drunkmode {! $drunkmode}} + {if_else $drunkmode + {do + {set_elem {find $syscfg beatmatcher watcher slop} 1 750} + {write_file "data:/GoldHEN/RB4DX/drunkmode.ini" $dx_write_nul} + RB4DXGP_DATA + } + {do + {set_elem {find $syscfg beatmatcher watcher slop} 1 100} + {file_delete "data:/GoldHEN/RB4DX/drunkmode.ini"} + {$this show_state kState_RB4DXAutoplayOff} + } + } + {$this trigger_select_effects } + ) } ) (on_cancel diff --git a/_ark/ps4/dx/ui/dx_init.dta b/_ark/ps4/dx/ui/dx_init.dta index 9a3bad9..b560e5a 100644 --- a/_ark/ps4/dx/ui/dx_init.dta +++ b/_ark/ps4/dx/ui/dx_init.dta @@ -16,6 +16,9 @@ {if {file_exists "autoplay.ini"} {file_delete "data:/GoldHEN/RB4DX/autoplay.ini"} } +{if {file_exists "drunkmode.ini"} + {file_delete "data:/GoldHEN/RB4DX/drunkmode.ini"} +} {set $autoplayexists {file_exists "data:/GoldHEN/plugins/RB4DX-Autoplay.prx"}} {set $nood {file_exists "nood.dta"}} {set $practiceod {file_exists "practiceod.dta"}} diff --git a/_build/GoldHEN/plugins/RB4DX-Plugin.prx b/_build/GoldHEN/plugins/RB4DX-Plugin.prx index 3f70df3fe5178a48c0ecb5a54ff954a748e7260f..bfe1f43737e03b3e3a98e27d7b0f645c4052ec49 100644 GIT binary patch delta 5064 zcmZu#4OEm>8ou9$qx^`&fJP<`V1VEsV49Q+f;l-_CYl+xwyQ-fxN7QdXU(-8D5o4I zcA>lNT2YH_w$y10caEEx=%8(i+J=A0anaB`^$q!h+953L+vmOa4jIe!@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