From 36426d034d92761c3260538fc5975e0e47ded771 Mon Sep 17 00:00:00 2001 From: Soar Qin Date: Tue, 23 Jun 2026 08:36:15 +0800 Subject: [PATCH] docs: update public API surface with Phase 2 additions --- docs/PublicApiSurface.md | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/docs/PublicApiSurface.md b/docs/PublicApiSurface.md index 5d39d4b..10ce55d 100644 --- a/docs/PublicApiSurface.md +++ b/docs/PublicApiSurface.md @@ -44,6 +44,14 @@ Inherited from `PatchImpl`: - `protected virtual void OnEnable()` - `protected virtual void OnDisable()` +### `GameEvent` + +```csharp +public static class GameEvent +``` + +- `public static void InvokeSafe(this Action action, ManualLogSource logger, string name)` + ### `PatchGuidAttribute` ```csharp @@ -647,6 +655,39 @@ public class MyKeyBinder : MonoBehaviour - `public void SettingChanged()` - `protected void OnDestroy()` +### `ConfigTabGroup` + +```csharp +public class ConfigTabGroup +``` + +- `public IReadOnlyList Groups { get; }` +- `public int CurrentTabIndex { get; }` +- `public int TabCount { get; }` +- `public void AddGroup(string label)` +- `public int AddTab(RectTransform rectTransform, UIButton button)` +- `public void SetCurrentTab(int index)` + +Nested types: + +- `public class Tab` + - `public RectTransform RectTransform { get; set; }` + - `public UIButton Button { get; set; }` +- `public class Group` + - `public string Label { get; set; }` + - `public List Tabs { get; }` + +### `LayoutHelper` + +```csharp +public static class LayoutHelper +``` + +- `public static Text AddText(float x, float y, RectTransform parent, string label, int fontSize = 14, string objName = "label")` +- `public static UIButton AddTipsButton(float x, float y, RectTransform parent, string label, string tip, string content, string objName = "tips-button")` +- `public static UIButton AddButton(float x, float y, RectTransform parent, string text = "", int fontSize = 16, string objName = "button", UnityAction onClick = null)` +- `public static UIButton AddButton(float x, float y, float width, RectTransform parent, string text = "", int fontSize = 16, string objName = "button", UnityAction onClick = null)` + ### `Util` ```csharp