Merge branch 'dev' into Turn-Based-Combat

# Conflicts:
#	Content/Blueprints/Combat_UI/CombatCharacter.uasset
#	Content/BungeeMan/Mat_BungeeMan_Rubber.uasset
#	Content/Dialogue/NPCTest.uasset
#	Source/the_twilight_abyss/PlayerTemp/TempCharacter.cpp
This commit is contained in:
Philip W 2023-02-28 15:29:35 +00:00
commit e8c20e2d67
116 changed files with 685 additions and 33 deletions

View File

@ -1,15 +1,10 @@
{
"version": "1.0",
"components": [
"Microsoft.Net.Component.4.6.2.TargetingPack",
"Microsoft.VisualStudio.Component.VC.14.33.17.3.ARM64",
"Microsoft.VisualStudio.Component.VC.14.33.17.3.x86.x64",
"Microsoft.VisualStudio.Component.VC.Tools.ARM64",
"Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
"Microsoft.VisualStudio.Component.Windows10SDK",
"Microsoft.VisualStudio.Workload.CoreEditor",
"Microsoft.VisualStudio.Workload.ManagedDesktop",
"Microsoft.VisualStudio.Workload.NativeCrossPlat",
"Microsoft.VisualStudio.Workload.NativeDesktop",
"Microsoft.VisualStudio.Workload.NativeGame",
"Microsoft.VisualStudio.Workload.Universal"

BIN
Art Misc/Kit1.mb (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Characters/Merchant.fbx (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Characters/Merchant_low_MerchantMat_BaseColor.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Characters/Merchant_low_MerchantMat_Emissive.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Characters/Merchant_low_MerchantMat_Normal.png (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

BIN
Concept Art/Modular_test.fbx (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Characters/Goat Enemy/Goat.fbx (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Content/Assets/InventoryImages/Inventory_Symbol.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Content/Assets/Objects/Tutrorial_Assets/Beams_1.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Objects/Tutrorial_Assets/Beams_2.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Objects/Tutrorial_Assets/Plank_Long.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Objects/Tutrorial_Assets/Plank_Short.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

BIN
Content/Assets/Objects/Tutrorial_Assets/lambert1.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Content/Dialogue/DialogueTest.umap (Stored with Git LFS)

Binary file not shown.

BIN
Content/Environment/Test_imports/Modular_test.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Environment/Test_imports/lambert1.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Environment/Tutorial/Plank_Long.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Environment/Tutorial/Plank_Short.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Content/Environment/Tutorial/lambert1.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Environment/Tutorial/lambert2.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Environment/Tutorial/tutorial_level_ceiling.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Environment/Tutorial/tutorial_level_ceiling1.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Environment/Tutorial/tutorial_level_ceiling2.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Environment/Tutorial/tutorial_level_floor.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Environment/Tutorial/tutorial_level_floor1.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Environment/Tutorial/tutorial_level_floor2.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Levels/Hub.umap (Stored with Git LFS)

Binary file not shown.

BIN
Content/Levels/Level_1.umap (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Levels/Testing/SneakMechanicTesting.umap (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Levels/Top_layer_level.umap (Stored with Git LFS)

Binary file not shown.

BIN
Content/Levels/Tutorial.umap (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Levels/_GENERATED/tr258492/Boolean_227A3118.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Levels/_GENERATED/tr258492/Boolean_8613293A.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Levels/_GENERATED/tr258492/Box_0AF9695A.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Levels/_GENERATED/tr258492/Box_481BA8EA.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Levels/_GENERATED/tr258492/Box_57F24318.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Levels/_GENERATED/tr258492/Box_F1F2469E.uasset (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,8 +1,11 @@
Combat Spread Sheet:
https://docs.google.com/spreadsheets/d/1s_uxjS8ir1pbt4-ofdOVpSPaQZVC8x9gQzS78bzE3KI/edit#gid=0
https://docs.google.com/document/d/1Y6eYoKQPw9n8gl7p030fmtPjfJcE132YHAvwL7Gk4jk/edit
Combat Spread Sheet: https://docs.google.com/spreadsheets/d/1s_uxjS8ir1pbt4-ofdOVpSPaQZVC8x9gQzS78bzE3KI/edit?usp=sharing
Combat Word Doc: https://docs.google.com/document/d/1Y6eYoKQPw9n8gl7p030fmtPjfJcE132YHAvwL7Gk4jk/edit?usp=sharing
Enemy Spread Sheet: https://docs.google.com/spreadsheets/d/1NsmF43HhB2W9_BrQazy-rpT-GDlIZIQlLdvG18DWlkA/edit?usp=sharing
Level Blueprints - https://docs.google.com/presentation/d/1ckx8IpO-BIxTFy19MJoUy7EuAMYOYoWQE6x1E2egr1o/edit?usp=sharing

View File

@ -35,15 +35,15 @@ void UDialogueNPC::BeginPlay()
void UDialogueNPC::NextDialogue()
{
//Dialogue Skip
if (CurrentDialogue.Len() < Dialogue[DialogueIndex].Len())
if (CurrentDialogue.Len() < CurrentDialoguePath[DialogueIndex].Len())
{
CurrentDialogue = Dialogue[DialogueIndex];
CurrentDialogue = CurrentDialoguePath[DialogueIndex];
DialogueText->SetText(FText::FromString(CurrentDialogue));
return;
}
DialogueIndex++;
if (DialogueIndex >= Dialogue.Num())
if (DialogueIndex >= CurrentDialoguePath.Num())
{
EndDialogue();
return;
@ -53,11 +53,11 @@ void UDialogueNPC::NextDialogue()
void UDialogueNPC::NextCharacter()
{
if (DialogueIndex >= Dialogue.Num()) return;
if (DialogueIndex >= CurrentDialoguePath.Num()) return;
if (CurrentDialogue.Len() < Dialogue[DialogueIndex].Len())
if (CurrentDialogue.Len() < CurrentDialoguePath[DialogueIndex].Len())
{
CurrentDialogue.AppendChar(Dialogue[DialogueIndex][CurrentDialogue.Len()]);
CurrentDialogue.AppendChar(CurrentDialoguePath[DialogueIndex][CurrentDialogue.Len()]);
DialogueText->SetText(FText::FromString(CurrentDialogue));
}
}
@ -86,6 +86,7 @@ void UDialogueNPC::StartDialogue()
DialogueIndex = 1;
NPCNameText->SetText(FText::FromString(NPCName));
CurrentDialogue = "";
CurrentDialoguePath = DialoguePaths[0].Dialogue;
GetWorld()->GetTimerManager().SetTimer(TextAnimationTimerHandle, this, &UDialogueNPC::NextCharacter, TextAnimationSpeed, true);
}
@ -105,14 +106,42 @@ void UDialogueNPC::EndDialogue()
PlayerController->bShowMouseCursor = false;
}
TArray<FString> UDialogueNPC::AddDialogue(FText TextInput, TArray<FString> DialogueArrayInput)
FDialoguePath UDialogueNPC::CreateRootDialoguePath()
{
if (TextInput.IsEmpty()) return DialogueArrayInput;
DialogueArrayInput.Add(TextInput.ToString());
return DialogueArrayInput;
return FDialoguePath();
}
FDialoguePath UDialogueNPC::CreateDialoguePath(FDialoguePath ParentDialoguePath)
{
return FDialoguePath("#" + FString::FromInt(DialoguePaths.Num()));
}
FDialoguePath UDialogueNPC::CreateDialogueChoice(FDialoguePath PreviousDialoguePath)
{
return FDialoguePath();
}
bool UDialogueNPC::GotoDialoguePath(FString PathId)
{
for (FDialoguePath DialogPath : DialoguePaths)
{
if (DialogPath.Dialogue[0] == PathId)
{
CurrentDialoguePath = DialogPath.Dialogue;
return true;
}
}
return false;
}
FDialoguePath UDialogueNPC::AddDialogue(FText TextInput, FDialoguePath DialoguePath)
{
if (TextInput.IsEmpty()) return DialoguePath;
DialoguePath.Dialogue.Add(TextInput.ToString());
return DialoguePath;
}
void UDialogueNPC::GetFinalDialogue(TArray<FString> DialogueArray)
{
Dialogue = DialogueArray;
DialoguePaths.Add(FDialoguePath(DialogueArray));
}

View File

@ -16,6 +16,30 @@ enum class EChoices : uint8
Choice3 UMETA(DisplayName="Choice 3"),
};
USTRUCT(BlueprintType)
struct FDialoguePath
{
GENERATED_BODY()
UPROPERTY()
TArray<FString> Dialogue;
FDialoguePath()
{
Dialogue.Add("#ROOT");
}
FDialoguePath(FString Id)
{
Dialogue.Add(Id);
}
explicit FDialoguePath(TArray<FString> Dialogue)
{
this->Dialogue = Dialogue;
}
};
UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
class THE_TWILIGHT_ABYSS_API UDialogueNPC : public UActorComponent
{
@ -29,7 +53,9 @@ public:
FString NPCName;
UPROPERTY()
TArray<FString> Dialogue;
TArray<FDialoguePath> DialoguePaths;
TArray<FString> CurrentDialoguePath;
UPROPERTY(EditAnywhere)
float TextAnimationSpeed = 0.05f;
@ -75,7 +101,19 @@ public:
void EndDialogue();
UFUNCTION(BlueprintPure)
TArray<FString> AddDialogue(FText TextInput, TArray<FString> DialogueArrayInput);
FDialoguePath CreateRootDialoguePath();
UFUNCTION()
FDialoguePath CreateDialoguePath(FDialoguePath ParentDialoguePath);
UFUNCTION(BlueprintPure)
FDialoguePath CreateDialogueChoice(FDialoguePath PreviousDialoguePath);
UFUNCTION()
bool GotoDialoguePath(FString PathId);
UFUNCTION(BlueprintPure)
FDialoguePath AddDialogue(FText TextInput, FDialoguePath DialoguePath);
UFUNCTION(BlueprintCallable)
void GetFinalDialogue(TArray<FString> DialogueArray);

BIN
UI designs/Beastiary Symbol.png (Stored with Git LFS) Normal file

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More