第一次提交
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
//
|
||||
|
||||
#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;
|
||||
};
|
||||
Reference in New Issue
Block a user