添加背包配置文档

This commit is contained in:
997146918 2025-09-01 10:20:49 +08:00
parent 39c95a5ed5
commit 8c6d5cceac
79 changed files with 15 additions and 7 deletions

View File

@ -2,7 +2,7 @@
"BuildId": "37670630", "BuildId": "37670630",
"Modules": "Modules":
{ {
"ProjectFish": "UnrealEditor-ProjectFish-0004.dll", "ProjectFish": "UnrealEditor-ProjectFish.dll",
"ProjectFishEditor": "UnrealEditor-ProjectFishEditor-0004.dll" "ProjectFishEditor": "UnrealEditor-ProjectFishEditor.dll"
} }
} }

View File

@ -0,0 +1,4 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=72263A5F_002DD5F9_002D3915_002D8DA0_002DCD45C38A70E5_002Fdl_003ASource_003AF_0021_003FEpic_003FUE_005F5_002E5_003FEngine_003FSource_002Fd_003ARuntime_002Fd_003ACoreUObject_002Fd_003APublic_002Fd_003AAssetRegistry_002Ff_003AAssetData_002Eh/@EntryIndexedValue">ForceIncluded</s:String>
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=72263A5F_002DD5F9_002D3915_002D8DA0_002DCD45C38A70E5_002Fdl_003ASource_003AF_0021_003FEpic_003FUE_005F5_002E5_003FEngine_003FSource_002Fd_003AEditor_002Fd_003APropertyEditor_002Fd_003APublic_002Ff_003APropertyCustomizationHelpers_002Eh/@EntryIndexedValue">ForceIncluded</s:String>
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=72263A5F_002DD5F9_002D3915_002D8DA0_002DCD45C38A70E5_002Fdl_003ASource_003AF_0021_003FEpic_003FUE_005F5_002E5_003FEngine_003FSource_002Fd_003ARuntime_002Fd_003ACoreUObject_002Fd_003APublic_002Fd_003AUObject_002Ff_003AUObjectBaseUtility_002Eh/@EntryIndexedValue">ForceIncluded</s:String></wpf:ResourceDictionary>

View File

@ -56,7 +56,7 @@ struct FPlacedSkillInfo
/** /**
* *
*/ */
UCLASS() UCLASS(BlueprintType)
class PROJECTFISH_API UBagConfigAsset : public UDataAsset class PROJECTFISH_API UBagConfigAsset : public UDataAsset
{ {
GENERATED_BODY() GENERATED_BODY()

View File

@ -8,6 +8,7 @@
#include "ProjectFish/DataAsset/BagShapeAsset.h" #include "ProjectFish/DataAsset/BagShapeAsset.h"
#include "../Public/Thumbnail/BagShapeAssetThumbnailRenderer.h" #include "../Public/Thumbnail/BagShapeAssetThumbnailRenderer.h"
#include "../Public/Thumbnail/BagConfigThumbnailRenderer.h" #include "../Public/Thumbnail/BagConfigThumbnailRenderer.h"
#include "AssetActions/SkillAssetTypeAction.h"
#include "ProjectFish/DataAsset/BagConfigAsset.h" #include "ProjectFish/DataAsset/BagConfigAsset.h"
#define LOCTEXT_NAMESPACE "FProjectFishEditorModule" #define LOCTEXT_NAMESPACE "FProjectFishEditorModule"
@ -53,7 +54,10 @@ void FProjectFishEditorModule::RegisterAssetTypeActions()
AssetTools.RegisterAssetTypeActions(BagConfigAction); AssetTools.RegisterAssetTypeActions(BagConfigAction);
CreatedAssetTypeActions.Add(BagConfigAction); CreatedAssetTypeActions.Add(BagConfigAction);
//注册技能资源菜单
TSharedRef<FAssetTypeActions_Base> SkillAssetAction = MakeShareable(new FSkillAssetTypeAction(BogShapeAssetCategory));
AssetTools.RegisterAssetTypeActions(SkillAssetAction);
CreatedAssetTypeActions.Add(SkillAssetAction);
} }
void FProjectFishEditorModule::UnregisterAssetTypeActions() void FProjectFishEditorModule::UnregisterAssetTypeActions()

View File

@ -103,7 +103,7 @@ void SBagConfigEditorWidget::Construct(const FArguments& InArgs)
.Padding(2.0f) .Padding(2.0f)
[ [
SNew(SButton) SNew(SButton)
.Text(FText::FromString(TEXT("点击后,单击背包添加当前选中的技能"))) .Text(FText::FromString(TEXT("添加当前选中的技能")))
.OnClicked(this, &SBagConfigEditorWidget::OnAddSkillClicked) .OnClicked(this, &SBagConfigEditorWidget::OnAddSkillClicked)
.IsEnabled_Lambda([this]() { return BagConfig.IsValid() && BagConfig->BagShapeAsset != nullptr && SelectedSkillAsset.IsValid(); }) .IsEnabled_Lambda([this]() { return BagConfig.IsValid() && BagConfig->BagShapeAsset != nullptr && SelectedSkillAsset.IsValid(); })
] ]
@ -113,7 +113,7 @@ void SBagConfigEditorWidget::Construct(const FArguments& InArgs)
.Padding(2.0f) .Padding(2.0f)
[ [
SNew(SButton) SNew(SButton)
.Text(FText::FromString(TEXT("点击后,单击背包移除当前选中的技能"))) .Text(FText::FromString(TEXT("移除当前选中的技能")))
.OnClicked(this, &SBagConfigEditorWidget::OnRemoveSkillClicked) .OnClicked(this, &SBagConfigEditorWidget::OnRemoveSkillClicked)
.IsEnabled_Lambda([this]() { return SelectedSkillAsset.IsValid(); }) .IsEnabled_Lambda([this]() { return SelectedSkillAsset.IsValid(); })
] ]

View File

@ -103,7 +103,7 @@ TSharedRef<SWidget> SBagShapeEditorWidget::CreateSizeControls()
.Padding(20, 0, 10, 0) .Padding(20, 0, 10, 0)
[ [
SNew(STextBlock) SNew(STextBlock)
.Text(FText::FromString("Width:")) .Text(FText::FromString("Height:"))
] ]
+ SHorizontalBox::Slot() + SHorizontalBox::Slot()
.AutoWidth() .AutoWidth()

Binary file not shown.

Binary file not shown.

Binary file not shown.