mirror of
https://github.com/duckietm/Nitro-Cool-UI.git
synced 2025-06-21 22:36:58 +00:00
Fix: Floorplan & Button
This commit is contained in:
parent
6426a7ad1e
commit
765aa38c3e
@ -27,37 +27,22 @@ input[type=number] {
|
|||||||
.rounded {
|
.rounded {
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
}
|
}
|
||||||
.btn-primary{
|
.btn-primary {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: #7fb1c5;
|
background-color: #3c6d82;
|
||||||
border: 2px solid #1a617f;
|
border: 2px solid #1a617f;
|
||||||
padding: 0.25rem 0.5rem;
|
padding: 0.25rem 0.5rem;
|
||||||
font-size: .7875rem;
|
font-size: .7875rem;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
box-shadow: none!important;
|
box-shadow: none!important;
|
||||||
}
|
}
|
||||||
.btn-primary:hover{
|
.btn-primary:hover {
|
||||||
background-color: #185b77;
|
|
||||||
border-color: #175670;
|
|
||||||
box-shadow: none!important;
|
|
||||||
}
|
|
||||||
.btn-secondary{
|
|
||||||
color: #fff;
|
|
||||||
background-color: #7fb1c5;
|
|
||||||
border: 2px solid #1a617f;
|
border: 2px solid #1a617f;
|
||||||
padding: 0.25rem 0.5rem;
|
|
||||||
font-size: .7875rem;
|
|
||||||
border-radius: 0.5rem;
|
|
||||||
box-shadow: none!important;
|
|
||||||
}
|
|
||||||
.btn-secondary:hover{
|
|
||||||
background-color: #185b77;
|
|
||||||
border-color: #175670;
|
|
||||||
box-shadow: none!important;
|
box-shadow: none!important;
|
||||||
}
|
}
|
||||||
.btn-success{
|
.btn-success{
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: #00800b;
|
background-color: #3c8243;
|
||||||
border: 2px solid #006d09;
|
border: 2px solid #006d09;
|
||||||
padding: 0.25rem 0.5rem;
|
padding: 0.25rem 0.5rem;
|
||||||
font-size: .7875rem;
|
font-size: .7875rem;
|
||||||
|
@ -198,6 +198,12 @@ export class FloorplanEditor
|
|||||||
|
|
||||||
const asset = spritesheet.frames[assetName];
|
const asset = spritesheet.frames[assetName];
|
||||||
|
|
||||||
|
if (asset === undefined)
|
||||||
|
{
|
||||||
|
console.warn(`Asset "${ assetName }" not found in spritesheet.`);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
this.renderer.drawImage(this._image, asset.frame.x, asset.frame.y, asset.frame.w, asset.frame.h, positionX, positionY, asset.frame.w, asset.frame.h);
|
this.renderer.drawImage(this._image, asset.frame.x, asset.frame.y, asset.frame.w, asset.frame.h, positionX, positionY, asset.frame.w, asset.frame.h);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -192,7 +192,14 @@ export const spritesheet = {
|
|||||||
spriteSourceSize: { x: 0, y: 0, w: 34, h: 17 },
|
spriteSourceSize: { x: 0, y: 0, w: 34, h: 17 },
|
||||||
sourceSize: { w: 34, h: 17 },
|
sourceSize: { w: 34, h: 17 },
|
||||||
},
|
},
|
||||||
'r_blocked': {
|
'r': {
|
||||||
|
frame: { x: 73, y: 153, w: 34, h: 17 },
|
||||||
|
rotated: false,
|
||||||
|
trimmed: false,
|
||||||
|
spriteSourceSize: { x: 0, y: 0, w: 34, h: 17 },
|
||||||
|
sourceSize: { w: 34, h: 17 },
|
||||||
|
},
|
||||||
|
'r_blocked': {
|
||||||
frame: { x: 1, y: 172, w: 34, h: 17 },
|
frame: { x: 1, y: 172, w: 34, h: 17 },
|
||||||
rotated: false,
|
rotated: false,
|
||||||
trimmed: false,
|
trimmed: false,
|
||||||
@ -206,6 +213,20 @@ export const spritesheet = {
|
|||||||
spriteSourceSize: { x: 0, y: 0, w: 34, h: 17 },
|
spriteSourceSize: { x: 0, y: 0, w: 34, h: 17 },
|
||||||
sourceSize: { w: 34, h: 17 },
|
sourceSize: { w: 34, h: 17 },
|
||||||
},
|
},
|
||||||
|
's': {
|
||||||
|
frame: { x: 73, y: 153, w: 34, h: 17 },
|
||||||
|
rotated: false,
|
||||||
|
trimmed: false,
|
||||||
|
spriteSourceSize: { x: 0, y: 0, w: 34, h: 17 },
|
||||||
|
sourceSize: { w: 34, h: 17 },
|
||||||
|
},
|
||||||
|
't': {
|
||||||
|
frame: { x: 73, y: 153, w: 34, h: 17 },
|
||||||
|
rotated: false,
|
||||||
|
trimmed: false,
|
||||||
|
spriteSourceSize: { x: 0, y: 0, w: 34, h: 17 },
|
||||||
|
sourceSize: { w: 34, h: 17 },
|
||||||
|
},
|
||||||
'x': {
|
'x': {
|
||||||
frame: { x: 73, y: 172, w: 34, h: 17 },
|
frame: { x: 73, y: 172, w: 34, h: 17 },
|
||||||
rotated: false,
|
rotated: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user