Skip to content

Commit

Permalink
poorspy toogle
Browse files Browse the repository at this point in the history
  • Loading branch information
LlysiX committed Jul 1, 2023
1 parent 20dcdf7 commit 641d50f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
1 change: 1 addition & 0 deletions _ark/ui/eng/locale_milo.dta
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@
(sld_pickelm "PICK ELEMENT")
(ss_choosesong "CHOOSE SONG")
(os_cloneherohud {sprint "Clone Hero HUD" {if_else $clonehero_hud ": ON" ": OFF"}})
(os_poorspyenabled {sprint "Poorspy" {if_else $poorspyenabled ": ON" ": OFF"}})
(os_focusmode {sprint "Focus Mode" {if_else $focusmode ": ON" ": OFF"}})
(os_precision {sprint "Tight Speedups" {if_else $precision ": ON" ": OFF"}})
(os_brutalmode {sprint "Brutal Mode" {if_else $brutalmode ": ON" ": OFF"}})
Expand Down
1 change: 1 addition & 0 deletions _ark/ui/game.dta
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,7 @@
#ifdef HX_XBOX
(enter
{poorspy_image_panel set_showing {! $autoplay}}
{poorspy_image_panel set_showing $poorspyenabled}
{poorspy_image_panel_buffer set_showing FALSE}
{track_mask set_showing TRUE} ;show the track mask, only runs on xbox
)
Expand Down
10 changes: 9 additions & 1 deletion _ark/ui/overshell_handlers.dta
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
{sel_section.lst set_data ;set up the data for the list
(
os_cloneherohud os_brighthopos os_darkstrums
os_gh1track os_gh3track os_voidfrets os_eyeballgems
os_gh1track os_gh3track os_voidfrets os_eyeballgems os_poorspyenabled
os_poorspytex
)
}
Expand All @@ -368,6 +368,13 @@
CHEAT_POP ;shortcut for the if else options on which sound effect to play
}
)
(os_poorspyenabled
{set $poorspyenabled {! $poorspyenabled}} ;set the variable to the opposite of what it currently is
{if $autoplay {set $poorspyenabled FALSE}} ; force poorspy off if autoplay is on
{if_else $poorspyenabled ;check the state of the variable
CHEAT_POP ;shortcut for the if else options on which sound effect to play
}
)
(os_eyeballgems
{if_else $eyeballgems
{do
Expand Down Expand Up @@ -546,6 +553,7 @@
)
(os_autoplay
{set $autoplay {! $autoplay}} ;set the variable to the opposite of what it currently is
{set $poorspyenabled {if_else $autoplay FALSE TRUE}}
{set $gotcha TRUE} ;sanity check if the user enabled autoplay at all this session
{if_else $autoplay ;check the state of the variable
CHEAT_POP ;shortcut for the if else options on which sound effect to play
Expand Down
8 changes: 4 additions & 4 deletions _ark/ui/poorspy.dta
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
(
(file poorspy_viewer.milo) ;milo file used for the panel. found in /ui/gen/
(poorspy_lbl_update ;for debug use, usage: {name_overlay_panel poorspy_lbl_update {sprint "whatever you want" $includingvars "will work"}}
{if_else $autoplay
{if_else {|| {! $poorspyenabled} $autoplay}
kDataUnhandled
{do
{ss_button_0.lbl set_text {sprint $slotstate_count_0 "\n" $slot_duration_0}}
Expand Down Expand Up @@ -217,13 +217,13 @@
{set $p0_fakescore {+ {player0 score} $tracked_solo_award}}
{streak_overlay_panel set_score_line}
}
{if {! $autoplay}
{if {|| $poorspyenabled {! $autoplay}}
{if_else $p0_evenpoorspy
{switch $player ;streak is even, write to line 2 while 1 is showing then swap
(0
{poorspy_image_panel_buffer poorspy_lbl_update}
{poorspy_image_panel set_showing FALSE}
{poorspy_image_panel_buffer set_showing TRUE}
{poorspy_image_panel_buffer set_showing $poorspyenabled}
{set $p0_evenpoorspy FALSE}
)
kDataUnhandled
Expand All @@ -232,7 +232,7 @@
(0
{poorspy_image_panel poorspy_lbl_update}
{poorspy_image_panel_buffer set_showing FALSE}
{poorspy_image_panel set_showing TRUE}
{poorspy_image_panel set_showing $poorspyenabled}
{set $p0_evenpoorspy TRUE}
)
kDataUnhandled
Expand Down
3 changes: 3 additions & 0 deletions _init/init.dta
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
;game and turns off some additional noises
{set $focusmode FALSE}

;enable poorspy
{set $poorspyenabled TRUE}

;set the texture of the poorspy buttons
;available - gh2 scorespy xplorer
{set $poorspybuttontype xplorer}
Expand Down

0 comments on commit 641d50f

Please sign in to comment.