Optimizing the code

This commit is contained in:
martinluckyrobots
2025-04-21 11:19:58 +08:00
parent aa363ac736
commit df872258a6
6 changed files with 84 additions and 1 deletions

View File

@ -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();
};