allow palette changes when loading game data
This commit is contained in:
parent
2134e4fe35
commit
59ea882e9a
|
@ -284,7 +284,7 @@ $(document).ready(function() {
|
|||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
document.getElementById('room-output').getContext('2d').putImageData(imageData, 0, 0);
|
||||
});
|
||||
}, 30);
|
||||
|
@ -311,7 +311,7 @@ $(document).ready(function() {
|
|||
readFile(this);
|
||||
});
|
||||
|
||||
$('#palette input').on('change', function() {
|
||||
$(document).on('change', '#palette input', function() {
|
||||
// if this is a colour input, update the palette
|
||||
if ($(this).attr('type') === 'color') {
|
||||
palette[$(this).attr('name')] = hexToColour($(this).val());
|
||||
|
|
Loading…
Reference in New Issue