You've already forked LuckyWorld
Optimizing the code
This commit is contained in:
@ -14,8 +14,29 @@ UCLASS()
|
||||
class LUCKYWORLDV2_API UObjectsListUserWidget : public UUserWidget
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
|
||||
protected:
|
||||
virtual void NativeConstruct() override;
|
||||
void OnIconLoaded();
|
||||
|
||||
public:
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
bool bIsChecked;
|
||||
|
||||
public:
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
FSelectableItemData SelectableItemData;
|
||||
|
||||
public:
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void DoUpdateChecked();
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void ToggleChecked();
|
||||
public:
|
||||
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
|
||||
void UpdateIcon(UTexture2D* Image);
|
||||
|
||||
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
|
||||
void DoDisplayChecked();
|
||||
};
|
||||
|
Reference in New Issue
Block a user