Skip to content

Commit

Permalink
Merge branch 'main' into tool-only
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackRam-oss committed Jul 26, 2022
2 parents a51113b + 6859001 commit 90c4e3f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions game/tool/utility.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,17 @@ init -999 python:
return Null()
config.displayable_prefix['check'] = null_or_image

def compare(a= 0, b= 0) -> int:
if a is None and b is None:
return 0
elif b is None:
return 1
elif a is None:
return -1
return a - b

def isGreaterThan(a= 0, b= 0) -> bool:
return compare(a, b) > 0

label set_background(img):
scene expression (img) as bg

0 comments on commit 90c4e3f

Please sign in to comment.