25 lines
514 B
C++
25 lines
514 B
C++
//
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "CommonUserWidget.h"
|
|
#include "AmountContainerBase.generated.h"
|
|
|
|
/**
|
|
* 用来显示数量的容器基类
|
|
*/
|
|
UCLASS()
|
|
class PHYINVENTORY_API UAmountContainerBase : public UCommonUserWidget
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
protected:
|
|
UPROPERTY(meta=(BindWidget))
|
|
class USizeBox* Container;
|
|
UPROPERTY(meta=(BindWidget))
|
|
class UCommonTextBlock* AmountText;
|
|
public:
|
|
void UpdateAmount(float InAmount, const FNumberFormattingOptions* const Options = nullptr) const;
|
|
};
|