第一次提交

This commit is contained in:
不明不惑
2026-03-03 01:23:02 +08:00
commit 3e434877e8
1053 changed files with 102411 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
// Copyright 2025 https://yuewu.dev/en All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/Object.h"
#include "Engine/DataAsset.h"
#include "Styling/SlateBrush.h"
#include "GUIS_TabDefinition.generated.h"
class UCommonActivatableWidget;
class UWidget;
class UCommonUserWidget;
class UCommonButtonBase;
/**
* Base Tab definition.
* @attention Deprecated as it's unstable.
* 基础选项卡定义。
* @注意 已经弃用
*/
UCLASS(Blueprintable, EditInlineNew, CollapseCategories, Const, DefaultToInstanced, Deprecated)
class GENERICUISYSTEM_API UDEPRECATED_GUIS_TabDefinition : public UObject
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Tab Definition")
FName TabId;
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Tab Definition")
FText TabText;
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Tab Definition")
FSlateBrush IconBrush;
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Tab Definition", Transient)
bool bHidden;
/**
* A common button which implements GUIS_TabButtonInterface to received Label infomation.
* 指定用作Tab按钮的Widget类型该类型必须实现GUIS_TabButtonInterface以接收Label信息。
*/
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Tab Definition", meta = (MustImplement = "/Script/GenericUISystem.GUIS_TabButtonInterface", AllowAbstract = "false"))
TSoftClassPtr<UCommonButtonBase> TabButtonType;
/**
* 该所呈现的Widget可选如果有指定那么需要调用
*/
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Tab Definition")
TSoftClassPtr<UCommonActivatableWidget> TabContentType;
UPROPERTY(Transient)
TObjectPtr<UWidget> CreatedTabContentWidget;
};