|
|
|
|
|
|
|
|
if (val !== LastVal){ |
|
|
if (val !== LastVal){ |
|
|
LastVal = val; |
|
|
LastVal = val; |
|
|
if (val === "all"){ |
|
|
if (val === "all"){ |
|
|
SURF.access_mode = 2; |
|
|
|
|
|
|
|
|
SURF.access_mode = NESBank.ACCESSMODE_FULL; |
|
|
} else if (val === "sprites"){ |
|
|
} else if (val === "sprites"){ |
|
|
SURF.access_mode = 1; |
|
|
|
|
|
|
|
|
SURF.access_mode = NESBank.ACCESSMODE_SPRITE; |
|
|
GlobalEvents.emit("set_palette_mode", 1); |
|
|
GlobalEvents.emit("set_palette_mode", 1); |
|
|
} else if (val === "tiles"){ |
|
|
} else if (val === "tiles"){ |
|
|
SURF.access_mode = 0; |
|
|
|
|
|
|
|
|
SURF.access_mode = NESBank.ACCESSMODE_BACKGROUND; |
|
|
GlobalEvents.emit("set_palette_mode", 0); |
|
|
GlobalEvents.emit("set_palette_mode", 0); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |