this.emit("palettes_changed", {type:"ALL", cindex:0}); | this.emit("palettes_changed", {type:"ALL", cindex:0}); | ||||
} else { | } else { | ||||
this.__palette[(p*3) + (pci-1)] = sci; | this.__palette[(p*3) + (pci-1)] = sci; | ||||
this.emit("palettes_changes", {type:(p < 4) ? "TILE" : "SPRITE", pindex:p, cindex:pci}); | |||||
this.emit("palettes_changed", {type:(p < 4) ? "TILE" : "SPRITE", pindex:p, cindex:pci}); | |||||
} | } | ||||
return this; | return this; | ||||
} | } |