Skip to content

Commit 15284b4

Browse files
committed
add spelling variant
1 parent a5a3b5e commit 15284b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

WoLua/Lua/Api/Script/Ui/ScriptWidgetApi.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using MoonSharp.Interpreter;
44

55
using VariableVixen.WoLua.Lua.Api.Script.Ui.Widget;
6+
using VariableVixen.WoLua.Lua.Docs;
67

78
namespace VariableVixen.WoLua.Lua.Api.Script.Ui;
89

@@ -14,6 +15,9 @@ public class ScriptWidgetApi(ScriptContainer source): ApiBase(source) { // TODO:
1415

1516
public TextWidget Centered(string? text = null) => this.Text(text).Center();
1617

18+
[SkipDoc("spelling variant")]
19+
public TextWidget Centred(string? text = null) => this.Centered(text);
20+
1721
public TextWidget Subheader(string? text = null) => this.Text(text).SetDim().Indent();
1822

1923
public SeparatorWidget Separator() => new();

0 commit comments

Comments
 (0)