Added hex input to colour picker

This commit is contained in:
unsettledgames 2021-04-29 16:54:02 +02:00
parent 6e483710f0
commit f24ded088b
4 changed files with 2 additions and 16 deletions

View File

@ -1332,9 +1332,7 @@ svg {
}
input {
width:50px;
right:0;
position:absolute;
width:60px;
}
div {

View File

@ -7,11 +7,8 @@ for (var i = 1; i < mainMenuItems.length; i++) {
var menuItem = mainMenuItems[i];
var menuButton = menuItem.children[0];
console.log(mainMenuItems);
//when you click a main menu items button
on('click', menuButton, function (e, button) {
console.log('parent ', button.parentElement);
select(button.parentElement);
});

View File

@ -118,7 +118,6 @@ function resizeSprite(event, ratio) {
// event is null when the user is undoing
if (event != null) {
console.log("AO SALVO LA CRONOLOGIA");
// Copying the image data
imageDatasCopy = rsImageDatas.slice();
// Saving the history

View File

@ -63,12 +63,4 @@ you've always been familiar with.
That's all for this update! Hope you have fun with this new release :) </br>
- <a href="https://github.com/unsettledgames">Unsettled</a>
</br></br>
P.S.: we're always looking for contributors! Join the <a href="https://discord.com/invite/QjsgTQM">Lospec discord</a> to get in touch!
<!--
TODO:
- Fix sprite scaling input bug (when a parameter is changed, the other one isn't)
- Redo problem, the canvas contents aren't copied correctly
- Add hex input to colour picker
-->
P.S.: we're always looking for contributors! Join the <a href="https://discord.com/invite/QjsgTQM">Lospec discord</a> to get in touch!