Fluid rendering in graphics

This commit is contained in:
2026-10-28 11:49:56 -03:00
parent 8fc08ab41e
commit bcd0690ef5
7 changed files with 59 additions and 20 deletions
+3
View File
@@ -254,6 +254,9 @@ export interface Graphics {
direction?: "right" | "up",
): void;
item(id: Id, x: number, y: number, count?: number): void;
// a fluid as a slot shows it, its texture in its color, at a slot's top left like item. filled (0 to 1, 1 when not
// set) is how much of the slot it fills from the bottom up, like amount / capacity for a machine's tank
fluid(fluid: FluidVariant, x: number, y: number, filled?: number): void;
clip(x: number, y: number, w: number, h: number, draw: () => void): void;
button(label: string, x: number, y: number, w: number, h: number): boolean;
text_input(id: string, x: number, y: number, w: number): string;