@rbxts/centurion-ui 1.0.0-dev-50decb0 → 1.0.0-dev-d64d6ec

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.
@@ -28,6 +28,9 @@ local function TextField(props)
28
28
  TextScaled = props.textScaled,
29
29
  RichText = props.richText,
30
30
  AutomaticSize = props.textAutoResize,
31
+ AutoLocalize = function()
32
+ return options().autoLocalize
33
+ end,
31
34
  Size = props.size,
32
35
  Position = props.position,
33
36
  AnchorPoint = props.anchor,
@@ -31,6 +31,9 @@ local function Text(props)
31
31
  RichText = props.richText,
32
32
  Size = props.size,
33
33
  AutomaticSize = props.textAutoResize,
34
+ AutoLocalize = function()
35
+ return options().autoLocalize
36
+ end,
34
37
  Position = props.position,
35
38
  AnchorPoint = props.anchor,
36
39
  BackgroundColor3 = props.backgroundColor,
@@ -20,6 +20,7 @@ local DEFAULT_INTERFACE_OPTIONS = {
20
20
  bold = Font.new("rbxassetid://16658221428", Enum.FontWeight.Bold),
21
21
  },
22
22
  palette = DefaultPalette.mocha,
23
+ autoLocalize = false,
23
24
  }
24
25
  return {
25
26
  DEFAULT_INTERFACE_OPTIONS = DEFAULT_INTERFACE_OPTIONS,
package/out/types.d.ts CHANGED
@@ -3,8 +3,8 @@ import { ScaleFunction } from "./hooks/use-px";
3
3
  import { InterfacePalette } from "./palette";
4
4
  export interface InterfaceOptions {
5
5
  anchor: Vector2;
6
- size: UDim2 | ((px: ScaleFunction) => UDim2);
7
6
  position: UDim2 | ((px: ScaleFunction) => UDim2);
7
+ size: UDim2 | ((px: ScaleFunction) => UDim2);
8
8
  displayOrder: number;
9
9
  backgroundTransparency: number;
10
10
  hideOnLostFocus: boolean;
@@ -15,6 +15,7 @@ export interface InterfaceOptions {
15
15
  bold: Font;
16
16
  };
17
17
  palette: InterfacePalette;
18
+ autoLocalize: boolean;
18
19
  }
19
20
  export interface HistoryLineData {
20
21
  entry: HistoryEntry;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rbxts/centurion-ui",
3
3
  "description": "Terminal UI for the Centurion command framework",
4
- "version": "1.0.0-dev-50decb0",
4
+ "version": "1.0.0-dev-d64d6ec",
5
5
  "author": "paradoxuum",
6
6
  "license": "MIT",
7
7
  "main": "out/init.lua",
@@ -32,7 +32,7 @@
32
32
  "dev": "shx rm -rf out && rbxtsc -w"
33
33
  },
34
34
  "devDependencies": {
35
- "@rbxts/centurion": "^1.0.0-dev-50decb0",
35
+ "@rbxts/centurion": "^1.0.0-dev-d64d6ec",
36
36
  "@rbxts/compiler-types": "2.3.0-types.1",
37
37
  "@rbxts/types": "^1.0.794",
38
38
  "roblox-ts": "2.3.0-dev-26ec859",