Files
PHY/Plugins/GGS/Source/GenericUISystem/Public/UI/Foundation/GUIS_TabDefinition.h
2026-03-03 01:23:02 +08:00

56 lines
1.7 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 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;
};