speech bubbles

This commit is contained in:
infinitefusion
2021-07-22 18:42:53 -04:00
parent c2675157fb
commit cd8e190430

View File

@@ -315,6 +315,9 @@ def isDarkBackground(background,rect=nil)
end end
def isDarkWindowskin(windowskin) def isDarkWindowskin(windowskin)
if $PokemonTemp.speechbubble_bubble
return false if $PokemonTemp.speechbubble_bubble > 0
end
return true if !windowskin || windowskin.disposed? return true if !windowskin || windowskin.disposed?
if windowskin.width==192 && windowskin.height==128 if windowskin.width==192 && windowskin.height==128
return isDarkBackground(windowskin,Rect.new(0,0,128,128)) return isDarkBackground(windowskin,Rect.new(0,0,128,128))