@wayward/types 2.11.5-beta.dev.20220306.2 → 2.11.5-beta.dev.20220307.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,11 +18,18 @@ import type { IStringSection } from "utilities/string/Interpolator";
18
18
  export interface IStatDisplayDescription extends IModdable {
19
19
  imagePath?: string | ((entity: Entity, stat: IStat) => string);
20
20
  /**
21
- * Defaults to `#ffffff`
21
+ * The CSS variable to use for the stat bar color
22
+ * Defaults to white
22
23
  */
23
24
  color?: string | ((entity: Entity, stat: IStat) => string);
24
25
  /**
25
- * Defaults to `#000000`
26
+ * The CSS variable to use for the stat bar color in RGB format
27
+ * Defaults to white
28
+ */
29
+ rgbColor?: string | ((entity: Entity, stat: IStat) => string);
30
+ /**
31
+ * The CSS variable to use for the background of the stat bar
32
+ * Defaults to black
26
33
  */
27
34
  darkColor?: string | ((entity: Entity, stat: IStat) => string);
28
35
  /**
@@ -36,7 +36,7 @@ export declare abstract class StatElement extends Component {
36
36
  /**
37
37
  * Returns the color of this stat.
38
38
  */
39
- getStatColor(dark?: boolean): string;
39
+ getStatColor(type?: "dark" | "rgb"): string;
40
40
  /**
41
41
  * Returns the formatted CSS url for the stat icon.
42
42
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.11.5-beta.dev.20220306.2",
4
+ "version": "2.11.5-beta.dev.20220307.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",