Refactor color handling in menu and update palette definitions
This commit is contained in:
@@ -1,3 +1,17 @@
|
||||
; Menu Palette
|
||||
|
||||
function hexto555(h) = ((((h&$FF)/8)<<10)|(((h>>8&$FF)/8)<<5)|(((h>>16&$FF)/8)<<0))
|
||||
|
||||
pushpc
|
||||
; update in game hud colors
|
||||
org $1BD662 : dw hexto555($814f16), hexto555($552903)
|
||||
org $1BD66A : dw hexto555($d51d00), hexto555($f9f9f9)
|
||||
org $1DB672 : dw hexto555($d0a050), hexto555($f9f9f9)
|
||||
org $1DB67A : dw hexto555($5987e0), hexto555($f9f9f9)
|
||||
org $1DB682 : dw hexto555($7b7b83), hexto555($bbbbbb)
|
||||
org $1DB68A : dw hexto555($a58100), hexto555($dfb93f)
|
||||
pullpc
|
||||
|
||||
Menu_Palette:
|
||||
dw hexto555($814f16)
|
||||
dw hexto555($552903)
|
||||
|
||||
Reference in New Issue
Block a user