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 { input {
width:50px; width:60px;
right:0;
position:absolute;
} }
div { div {

View File

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

View File

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

View File

@ -64,11 +64,3 @@ That's all for this update! Hope you have fun with this new release :) </br>
- <a href="https://github.com/unsettledgames">Unsettled</a> - <a href="https://github.com/unsettledgames">Unsettled</a>
</br></br> </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! 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
-->