info overlay + script to update images in games and logs

This commit is contained in:
Zutatensuppe 2021-07-11 16:37:34 +02:00
parent 0cb1cec210
commit 518092d269
14 changed files with 148 additions and 93 deletions

View file

@ -93,7 +93,7 @@ export interface Image {
export interface GameSettings {
tiles: number
image: Image
image: ImageInfo
scoreMode: ScoreMode
shapeMode: ShapeMode
snapMode: SnapMode
@ -152,11 +152,23 @@ export interface PieceChange {
group?: number
}
export interface ImageInfo
{
id: number
filename: string
url: string
title: string
tags: Tag[]
created: Timestamp
width: number
height: number
}
export interface PuzzleInfo {
table: PuzzleTable
targetTiles: number
imageUrl: string
imageTitle: string
imageUrl?: string // deprecated, use image.url instead
image?: ImageInfo
width: number
height: number