mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-08-23 01:04:44 -05:00
Updating tons of graphics
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "button_handler.h"
|
||||
#include "sprite_data.h"
|
||||
|
||||
Button::Button(){
|
||||
|
||||
@@ -33,12 +34,12 @@ void Button::set_location(int nx, int ny)
|
||||
void Button::set_highlight(bool highlight)
|
||||
{
|
||||
button_L->attr2 &= ~ATTR2_PALBANK_MASK;
|
||||
button_L->attr2 |= ATTR2_PALBANK(highlight ? 3 : 2);
|
||||
button_L->attr2 |= ATTR2_PALBANK(highlight ? BTN_LIT_PAL : BTN_PAL);
|
||||
|
||||
if (isWide)
|
||||
{
|
||||
button_R->attr2 &= ~ATTR2_PALBANK_MASK;
|
||||
button_R->attr2 |= ATTR2_PALBANK(highlight ? 3 : 2);
|
||||
button_R->attr2 |= ATTR2_PALBANK(highlight ? BTN_LIT_PAL : BTN_PAL);
|
||||
}
|
||||
}
|
||||
void Button::hide()
|
||||
|
||||
Reference in New Issue
Block a user