Fix black screen in Floorplan Editor

This commit is contained in:
Sidnei 2024-09-20 00:54:28 -03:00
parent 55a882476d
commit 5bf86d8fa1
3 changed files with 75 additions and 51 deletions

View File

@ -1,7 +1,7 @@
export const TILE_SIZE = 32; export const TILE_SIZE = 32;
export const MAX_NUM_TILE_PER_AXIS = 64; export const MAX_NUM_TILE_PER_AXIS = 64;
export const HEIGHT_SCHEME: string = 'x0123456789abcdefghijklmnopq'; export const HEIGHT_SCHEME: string = 'x0123456789abcdefghijklmnopqrst';
export class FloorAction export class FloorAction
{ {
@ -23,22 +23,25 @@ export const COLORMAP: object = {
'6': '00ff93', '6': '00ff93',
'7': '00ff68', '7': '00ff68',
'8': '00ff3d', '8': '00ff3d',
'9': '19ff00', '9': '00ff11',
'a': '44ff00', 'a': '19ff00',
'b': '70ff00', 'b': '44ff00',
'c': '9bff00', 'c': '70ff00',
'd': 'f2ff00', 'd': '9bff00',
'e': 'ffe000', 'e': 'c6ff00',
'f': 'ffb500', 'f': 'f2ff00',
'g': 'ff8900', 'g': 'ffe000',
'h': 'ff5e00', 'h': 'ffb500',
'i': 'ff3200', 'i': 'ff8900',
'j': 'ff0700', 'j': 'ff5e00',
'k': 'ff0023', 'k': 'ff3200',
'l': 'ff007a', 'l': 'ff0700',
'm': 'ff00a5', 'm': 'ff0023',
'n': 'ff00d1', 'n': 'ff004f',
'o': 'ff00fc', 'o': 'ff007a',
'p': 'd600ff', 'p': 'ff00a5',
'q': 'aa00ff' 'q': 'ff00d1',
'r': 'ff00fc',
's': 'd600ff',
't': 'aa00ff'
}; };

View File

@ -1,5 +1,5 @@
export const imageBase64 = export const imageBase64 =
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAC+CAMAAADnThrbAAAAYFBMVEUAAAAiIiIAZf8A6P8A/5MZ/wCb/wD/tQD/MgD/AHr/APxDXocAkf8A/+oA/2hE/wDy/wD/iQD/BwD/AKXWAP////8AvP8A/78A/z1w/wD/4AD/XgD/ACP/ANGqAP8QEB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Cm04pFBowyGFQhsOKRTacEihmAeOxgMKKRzaUEjh0IZCCoc2FFI4tKGQwqENhRQObSikcGhDIYVDGwopHNpQSOHQhoIDR+MJBRcOayi4cFhDwYXDGgouHNZQcOGwhoILhzUUXDisoeDCYQ0FFw5rKLhwWEPRB47bI1oPg0a0bpVGtB7F5MlwTOdZDMpzPvv7oJGow8JI1OOgPJulEa0HQSNRXxbyPArKc1Ua0bockyfDMZ3nU1Cejdl5BjHr4RiOyfKCogQHdhjYYWCHgR0GdhjYYfTfYdy5MOIMI0XAgTMMGRTecOAMQwaFNxw4w+BDcScYVnDglpQuFNZw4JaULhTWcOCWlC4U1nDcm1tS2nDgHYYtFNpw4B2GLRTacOAdhi0U2nDc23cYUjjw0tsXCikceOntC4UUDrz09oVCCseDeenNhQO9pNBLSgIHekmhl5QEDvSSqqSXFAWHNxQUHN5QUHB4Q0HBMaxkJOqNbrVV5LnRrbaOPONutVe1jGhdDoGCgsMbCgoObygoOCRQqAfDiETkQR7kQR6MaEWhUCgUKv0PmXGezPQypG0AAAAASUVORK5CYII=';
export const spritesheet = { export const spritesheet = {
frames: { frames: {
@ -11,21 +11,21 @@ export const spritesheet = {
sourceSize: { w: 34, h: 17 }, sourceSize: { w: 34, h: 17 },
}, },
'1': { '1': {
frame: { x: 37, y: 1, w: 34, h: 17 }, frame: { x: 1, y: 20, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'2': { '2': {
frame: { x: 73, y: 1, w: 34, h: 17 }, frame: { x: 1, y: 39, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'3': { '3': {
frame: { x: 1, y: 20, w: 34, h: 17 }, frame: { x: 37, y: 1, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
spriteSourceSize: { x: 0, y: 0, w: 34, h: 17 }, spriteSourceSize: { x: 0, y: 0, w: 34, h: 17 },
@ -39,21 +39,21 @@ export const spritesheet = {
sourceSize: { w: 34, h: 17 }, sourceSize: { w: 34, h: 17 },
}, },
'5': { '5': {
frame: { x: 73, y: 20, w: 34, h: 17 }, frame: { x: 37, y: 39, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'6': { '6': {
frame: { x: 1, y: 39, w: 34, h: 17 }, frame: { x: 73, y: 1, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'7': { '7': {
frame: { x: 37, y: 39, w: 34, h: 17 }, frame: { x: 73, y: 20, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
spriteSourceSize: { x: 0, y: 0, w: 34, h: 17 }, spriteSourceSize: { x: 0, y: 0, w: 34, h: 17 },
@ -67,147 +67,168 @@ export const spritesheet = {
sourceSize: { w: 34, h: 17 }, sourceSize: { w: 34, h: 17 },
}, },
'9': { '9': {
frame: { x: 1, y: 58, w: 34, h: 17 }, frame: { x: 109, y: 1, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'a': { 'a': {
frame: { x: 37, y: 58, w: 34, h: 17 }, frame: { x: 109, y: 20, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'b': { 'b': {
frame: { x: 73, y: 58, w: 34, h: 17 }, frame: { x: 109, y: 39, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'c': { 'c': {
frame: { x: 1, y: 77, w: 34, h: 17 }, frame: { x: 145, y: 1, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'd': { 'd': {
frame: { x: 37, y: 77, w: 34, h: 17 }, frame: { x: 145, y: 20, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'e': { 'e': {
frame: { x: 73, y: 77, w: 34, h: 17 }, frame: { x: 145, y: 39, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'f': { 'f': {
frame: { x: 1, y: 96, w: 34, h: 17 }, frame: { x: 181, y: 1, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'g': { 'g': {
frame: { x: 37, y: 96, w: 34, h: 17 }, frame: { x: 181, y: 20, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'h': { 'h': {
frame: { x: 73, y: 96, w: 34, h: 17 }, frame: { x: 181, y: 39, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'i': { 'i': {
frame: { x: 1, y: 115, w: 34, h: 17 }, frame: { x: 217, y: 1, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'j': { 'j': {
frame: { x: 37, y: 115, w: 34, h: 17 }, frame: { x: 217, y: 20, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'k': { 'k': {
frame: { x: 73, y: 115, w: 34, h: 17 }, frame: { x: 217, y: 39, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'l': { 'l': {
frame: { x: 1, y: 134, w: 34, h: 17 }, frame: { x: 253, y: 1, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'm': { 'm': {
frame: { x: 37, y: 134, w: 34, h: 17 }, frame: { x: 253, y: 20, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'n': { 'n': {
frame: { x: 73, y: 134, w: 34, h: 17 }, frame: { x: 253, y: 39, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'o': { 'o': {
frame: { x: 1, y: 153, w: 34, h: 17 }, frame: { x: 289, y: 1, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'p': { 'p': {
frame: { x: 37, y: 153, w: 34, h: 17 }, frame: { x: 289, y: 20, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'q': { 'q': {
frame: { x: 73, y: 153, w: 34, h: 17 }, frame: { x: 289, y: 39, w: 34, h: 17 },
rotated: false,
trimmed: false,
spriteSourceSize: { x: 0, y: 0, w: 34, h: 17 },
sourceSize: { w: 34, h: 17 },
},
'r': {
frame: { x: 325, y: 1, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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_blocked': {
frame: { x: 1, y: 172, w: 34, h: 17 }, frame: { x: 325, y: 20, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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_door': { 'r_door': {
frame: { x: 37, y: 172, w: 34, h: 17 }, frame: { x: 325, y: 39, w: 34, h: 17 },
rotated: false,
trimmed: false,
spriteSourceSize: { x: 0, y: 0, w: 34, h: 17 },
sourceSize: { w: 34, h: 17 },
},
's': {
frame: { x: 361, y: 1, 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: 361, y: 20, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
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 },
}, },
'x': { 'x': {
frame: { x: 73, y: 172, w: 34, h: 17 }, frame: { x: 361, y: 39, w: 34, h: 17 },
rotated: false, rotated: false,
trimmed: false, trimmed: false,
spriteSourceSize: { x: 0, y: 0, w: 34, h: 17 }, spriteSourceSize: { x: 0, y: 0, w: 34, h: 17 },
@ -219,9 +240,9 @@ export const spritesheet = {
version: '1.0', version: '1.0',
image: 'tiles.png', image: 'tiles.png',
format: 'RGBA8888', format: 'RGBA8888',
size: { w: 108, h: 190 }, size: { w: 396, h: 57 },
scale: '1', scale: '1',
smartupdate: smartupdate:
'$TexturePacker:SmartUpdate:6d0f8373580629749f786a0b0f6c6bb9:96dff9df69bdc6938cf02f254bbe028b:accbe1e7e294ded8391337fc1c446319$', '$TexturePacker:SmartUpdate:9a8c5599c2efb03413cfa72b28c0cf7d:40a16f4027e4e7d1466e365045750b43:b8c440baf7e55a93f5e60b6e98028815$',
}, },
}; };

View File

@ -11,7 +11,7 @@ const MIN_WALL_HEIGHT: number = 0;
const MAX_WALL_HEIGHT: number = 16; const MAX_WALL_HEIGHT: number = 16;
const MIN_FLOOR_HEIGHT: number = 0; const MIN_FLOOR_HEIGHT: number = 0;
const MAX_FLOOR_HEIGHT: number = 26; const MAX_FLOOR_HEIGHT: number = 29;
export const FloorplanOptionsView: FC<{}> = props => export const FloorplanOptionsView: FC<{}> = props =>
{ {
@ -49,7 +49,7 @@ export const FloorplanOptionsView: FC<{}> = props =>
{ {
if(isNaN(value) || (value <= 0)) value = 0; if(isNaN(value) || (value <= 0)) value = 0;
if(value > 26) value = 26; if(value > MAX_FLOOR_HEIGHT) value = MAX_FLOOR_HEIGHT;
setFloorHeight(value); setFloorHeight(value);