mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Added hex input to colour picker
This commit is contained in:
parent
6e483710f0
commit
f24ded088b
@ -1332,9 +1332,7 @@ svg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
width:50px;
|
width:60px;
|
||||||
right:0;
|
|
||||||
position:absolute;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div {
|
div {
|
||||||
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
|
||||||
-->
|
|
Loading…
Reference in New Issue
Block a user