Fluid rendering in graphics
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user