martinluckyrobots 3f5bc9e1b1 Optimize some UI
2025-04-17 23:30:37 +08:00

40 lines
850 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "AllRandomUserWidget.generated.h"
class UWrapBox;
class UObjectsListUserWidget;
/**
*
*/
UCLASS()
class LUCKYWORLDV2_API UAllRandomUserWidget : public UUserWidget
{
GENERATED_BODY()
protected:
virtual void NativeConstruct() override;
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Config")
TSubclassOf<UObjectsListUserWidget> ObjectsListUserWidgetClass;
public:
UFUNCTION(BlueprintCallable)
void DoAllRandomMenuStateChanged(bool open);
UFUNCTION(BlueprintCallable)
void DoUpdateItemList(EItemCategory ItemCategory);
UFUNCTION(BlueprintCallable)
void DoOpen();
public:
UFUNCTION(BlueprintPure, BlueprintImplementableEvent)
UWrapBox* GetWrapBox();
};