feat(demo): add Bootstrap Demo Hub, Chinese UI font, and UI Demo showcase scene
This commit is contained in:
1 parent
3572f2da43
commit
4c83c086f4
49 files changed
+7864
-131
No files matched your search
Vendored
+152
@@ -0,0 +1,152 @@
|
||||
// Auto-generated by UnLua TypeScript Generator (Generate IntelliSense & TS).
|
||||
// Do not edit manually. Excludes runtime types owned by unlua.d.ts.
|
||||
|
||||
declare namespace UE {
|
||||
class WBP_DemoHub_C extends UUserWidget {
|
||||
TxtRuntimeInfo: UTextBlock;
|
||||
TxtHubTitle: UTextBlock;
|
||||
TxtHubSubtitle: UTextBlock;
|
||||
ScrollDemoList: UScrollBox;
|
||||
BtnOpenMiniSettings: UButton;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class WBP_DemoHubItem_C extends UUserWidget {
|
||||
TxtEnterLabel: UTextBlock;
|
||||
TxtDemoTitle: UTextBlock;
|
||||
TxtDemoMeta: UTextBlock;
|
||||
TxtDemoDesc: UTextBlock;
|
||||
CardBorder: UBorder;
|
||||
BtnEnterDemo: UButton;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class WBP_UIDemoCached_C extends UUserWidget {
|
||||
TxtCachedTitle: UTextBlock;
|
||||
TxtCachedStats: UTextBlock;
|
||||
BtnCachedClose: UButton;
|
||||
BtnCachedAction: UButton;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class WBP_UIDemoFullscreen_C extends UUserWidget {
|
||||
TxtFullTitle: UTextBlock;
|
||||
TxtFullDesc: UTextBlock;
|
||||
ImgFullPreview: UImage;
|
||||
BtnFullOpenModal: UButton;
|
||||
BtnFullClose: UButton;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class WBP_UIDemoListItem_C extends UUserWidget {
|
||||
TxtItemTitle: UTextBlock;
|
||||
BtnItemDelete: UButton;
|
||||
BtnItemAction: UButton;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class WBP_UIDemoMain_C extends UUserWidget {
|
||||
TxtSpinStatus: UTextBlock;
|
||||
TxtSliderStatus: UTextBlock;
|
||||
TxtRichSample: UTextBlock;
|
||||
TxtProgressPlay: UTextBlock;
|
||||
TxtPlayerName: UTextBlock;
|
||||
TxtListSummary: UTextBlock;
|
||||
TxtInputStatus: UTextBlock;
|
||||
TxtImageStatus: UTextBlock;
|
||||
TxtHudStats: UTextBlock;
|
||||
TxtEventLog: UTextBlock;
|
||||
TxtDiagDetail: UTextBlock;
|
||||
TxtDemoTarget: UTextBlock;
|
||||
TxtComboStatus: UTextBlock;
|
||||
TxtCheckStatus: UTextBlock;
|
||||
TxtBasicBtnStatus: UTextBlock;
|
||||
TabSwitcher: UWidgetSwitcher;
|
||||
SpinDemo: USpinBox;
|
||||
SliderDemo: USlider;
|
||||
ScrollEventLog: UScrollBox;
|
||||
ScrollDynamicList: UScrollBox;
|
||||
ProgressDemo: UProgressBar;
|
||||
InputNickname: UEditableTextBox;
|
||||
ImgPreview: UImage;
|
||||
ImgPlayerAvatar: UImage;
|
||||
GridBadges: UUniformGridPanel;
|
||||
ComboTheme: UComboBoxString;
|
||||
ChkFeature: UCheckBox;
|
||||
BtnWinToast: UButton;
|
||||
BtnWinSystem: UButton;
|
||||
BtnWinNormal: UButton;
|
||||
BtnWinMulti: UButton;
|
||||
BtnWinModal: UButton;
|
||||
BtnWinFullscreen: UButton;
|
||||
BtnWinCached: UButton;
|
||||
BtnTopSettings: UButton;
|
||||
BtnToggleDisable: UButton;
|
||||
BtnTintTex: UButton;
|
||||
BtnTabMedia: UButton;
|
||||
BtnTabInput: UButton;
|
||||
BtnTabDiag: UButton;
|
||||
BtnTabBasic: UButton;
|
||||
BtnSwitchTex: UButton;
|
||||
BtnProgressReset: UButton;
|
||||
BtnProgressPlay: UButton;
|
||||
BtnListClear: UButton;
|
||||
BtnListAddTen: UButton;
|
||||
BtnListAddOne: UButton;
|
||||
BtnEvictCache: UButton;
|
||||
BtnDiagRefresh: UButton;
|
||||
BtnDiagConcurrent: UButton;
|
||||
BtnDiagCancelLoad: UButton;
|
||||
BtnDemoTarget: UButton;
|
||||
BtnDemoAction: UButton;
|
||||
BtnCycleVis: UButton;
|
||||
BtnCycleTextSize: UButton;
|
||||
BtnCycleTextColor: UButton;
|
||||
BtnCloseOthers: UButton;
|
||||
BtnClearLog: UButton;
|
||||
BtnBackToHub: UButton;
|
||||
BtnApplyNickname: UButton;
|
||||
BorderThemePreview: UBorder;
|
||||
BarPlayerExp: UProgressBar;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class WBP_UIDemoModal_C extends UUserWidget {
|
||||
TxtModalTitle: UTextBlock;
|
||||
TxtModalMessage: UTextBlock;
|
||||
BtnModalConfirm: UButton;
|
||||
BtnModalCancel: UButton;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class WBP_UIDemoMulti_C extends UUserWidget {
|
||||
TxtMultiTitle: UTextBlock;
|
||||
TxtMultiBody: UTextBlock;
|
||||
MultiCard: UBorder;
|
||||
BtnMultiCount: UButton;
|
||||
BtnMultiClose: UButton;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class WBP_UIDemoNormal_C extends UUserWidget {
|
||||
TxtNormalTitle: UTextBlock;
|
||||
TxtNormalBody: UTextBlock;
|
||||
BtnNormalPing: UButton;
|
||||
BtnNormalClose: UButton;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class WBP_UIDemoSystem_C extends UUserWidget {
|
||||
TxtSystemTitle: UTextBlock;
|
||||
TxtSystemBody: UTextBlock;
|
||||
BtnSystemAck: UButton;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class WBP_UIDemoToast_C extends UUserWidget {
|
||||
TxtToastMessage: UTextBlock;
|
||||
ToastPill: UBorder;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
}
|
||||
+50
-3
@@ -64,8 +64,24 @@ declare namespace UE {
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class ULuaButtonClickProxy extends UObject {
|
||||
HandleClicked(): void;
|
||||
class ULuaButtonClickProxy extends ULuaWidgetEventProxyBase {
|
||||
HandleEvent(): void;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class ULuaCheckBoxProxy extends ULuaWidgetEventProxyBase {
|
||||
HandleCheckStateChanged(bIsChecked: boolean): void;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class ULuaComboBoxProxy extends ULuaWidgetEventProxyBase {
|
||||
HandleSelectionChanged(SelectedItem: string, SelectionType: ESelectInfo): void;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class ULuaEditableTextProxy extends ULuaWidgetEventProxyBase {
|
||||
HandleTextCommitted(Text: string, CommitMethod: ETextCommit): void;
|
||||
HandleTextChanged(Text: string): void;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
@@ -128,6 +144,16 @@ declare namespace UE {
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class ULuaSliderProxy extends ULuaWidgetEventProxyBase {
|
||||
HandleValueChanged(Value: number): void;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class ULuaSpinBoxProxy extends ULuaWidgetEventProxyBase {
|
||||
HandleValueChanged(Value: number): void;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class ULuaStorageLibrary extends UBlueprintFunctionLibrary {
|
||||
static WriteCorruptRawSlotForTest(this: void, SlotName: string, RawGarbage: string, UserIndex?: number): boolean;
|
||||
static SaveSlotUtf8(this: void, SlotName: string, PayloadUtf8: string, UserIndex?: number): ELuaStorageStatus;
|
||||
@@ -140,14 +166,35 @@ declare namespace UE {
|
||||
}
|
||||
|
||||
class ULuaUIEventSubsystem extends UGameInstanceSubsystem {
|
||||
ActiveButtonProxies: TMap<number, ULuaButtonClickProxy>;
|
||||
ActiveProxies: TMap<number, ULuaWidgetEventProxyBase>;
|
||||
UnbindWidgetEvent(BindingId: number): boolean;
|
||||
UnbindButtonClicked(BindingId: number): boolean;
|
||||
static SimulateSpinBoxValue(this: void, SpinBox: USpinBox | undefined, Value: number): boolean;
|
||||
static SimulateSliderValue(this: void, Slider: USlider | undefined, Value: number): boolean;
|
||||
static SimulateEditableTextCommit(this: void, TextBox: UEditableTextBox | undefined, NewText: string, CommitMethod: number): boolean;
|
||||
static SimulateEditableTextChange(this: void, TextBox: UEditableTextBox | undefined, NewText: string): boolean;
|
||||
static SimulateComboBoxSelect(this: void, ComboBox: UComboBoxString | undefined, Option: string): boolean;
|
||||
static SimulateCheckBoxToggle(this: void, CheckBox: UCheckBox | undefined, bIsChecked: boolean): boolean;
|
||||
static SimulateButtonHover(this: void, Button: UButton | undefined, bHovered: boolean): boolean;
|
||||
static SimulateButtonClick(this: void, Button: UButton | undefined): boolean;
|
||||
static SetCanvasPosition(this: void, Widget: UWidget | undefined, Position: FVector2D): boolean;
|
||||
static GetFromGameInstance(this: void, GameInstance: UGameInstance | undefined): ULuaUIEventSubsystem;
|
||||
GetActiveBindingCount(): number;
|
||||
static FindChildWidgetByName(this: void, RootWidget: UUserWidget | undefined, WidgetName: string): UWidget;
|
||||
BindSpinBoxChanged(SpinBox: USpinBox | undefined): number;
|
||||
BindSliderChanged(Slider: USlider | undefined): number;
|
||||
BindEditableTextCommitted(TextBox: UEditableTextBox | undefined): number;
|
||||
BindEditableTextChanged(TextBox: UEditableTextBox | undefined): number;
|
||||
BindComboBoxSelectionChanged(ComboBox: UComboBoxString | undefined): number;
|
||||
BindCheckBoxChanged(CheckBox: UCheckBox | undefined): number;
|
||||
BindButtonUnhovered(Button: UButton | undefined): number;
|
||||
BindButtonHovered(Button: UButton | undefined): number;
|
||||
BindButtonClicked(Button: UButton | undefined): number;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class ULuaWidgetEventProxyBase extends UObject {
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user