Sign in to follow this  
Landi20

craft system problem

Recommended Posts

Landi20    257

i can´t put my craft working
the material don´t update in craft widget

MasterItem.h

USTRUCT(BlueprintType)
struct Finventoryslot : public FTableRowBase
{
    GENERATED_BODY()

public:

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        TSubclassOf<class AMasterItem>ItemClass;
    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        int32 Amount;

};

"LegendOfArthurCharacter.h

USTRUCT(BlueprintType)
struct FInventoryItem : public FTableRowBase
{
    GENERATED_BODY()

public:

    /*FInventoryItem() {
    Name = FText::FromString("Item");
    Action = FText::FromString("Use");
    Description = FText::FromString("Please Enter a description for this item");
    Value = 10;
    }
    */
    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        FName ItemID;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        FText Name;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        FText Action;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        int32 Value;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        UTexture2D * thumbnail;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        FText Description;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        Category Category;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        Rank Ranks;
    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        bool canbeStack;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        TArray<Finventoryslot>Recepie;
    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        bool bCanBeUsed;
    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        EnumSlots EnumSlots;
    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        FString internalName;
};

i put the blueprints and widgets in googledrive

i using this tuturial

https://www.youtube.com/watch?v=Fs0p4pPf9m8&index=20&list=PLmKKTERcjTPKEPl0nk48Tpmj-iWmzqo_Q#t=9.483922
https://drive.google.com/open?id=0B11O6ZMrJmMORkw1bWRQZmd2RFk
what i doing wrong

Share this post


Link to post
Share on other sites
Landi20    257

i find the soluction

i make a newbie mistake

i forget the connect the the foreachloop with breake in array element i forget the connect

the array element to current amount and requeried amount

Edited by Landi20

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this