Skip to content

Commit

Permalink
dont hue shift the menu if we cant find bg bik
Browse files Browse the repository at this point in the history
  • Loading branch information
lunalawl committed Oct 20, 2023
1 parent 8c8e504 commit e845d1b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions _ark/ui/background/background.dta
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@
)
#define HUGH_SHIFT
(
(apply_hugh_shift
{set $hueshift_r {$huemath_r $hueshift_r {'/' {random_int 0 100} 10000}}}
{set $hueshift_g {$huemath_g $hueshift_g {'/' {random_int 0 100} 10000}}}
{set $hueshift_b {$huemath_b $hueshift_b {'/' {random_int 0 100} 10000}}}
{$this iterate Mat $l {$l set color {pack_color $hueshift_r $hueshift_g $hueshift_b}}} ;actually applying the hue shift after we run the math in the below script task
)
{if {file_exists "GAME:/main_background.bik"}
(apply_hugh_shift
{set $hueshift_r {$huemath_r $hueshift_r {'/' {random_int 0 100} 10000}}}
{set $hueshift_g {$huemath_g $hueshift_g {'/' {random_int 0 100} 10000}}}
{set $hueshift_b {$huemath_b $hueshift_b {'/' {random_int 0 100} 10000}}}
{$this iterate Mat $l {$l set color {pack_color $hueshift_r $hueshift_g $hueshift_b}}} ;actually applying the hue shift after we run the math in the below script task
)
}
)
{new
UIPanel
Expand Down

0 comments on commit e845d1b

Please sign in to comment.