basically evertything

This commit is contained in:
Djalim Simaila 2024-01-11 09:22:33 +01:00
parent 8835dde778
commit d53b369343
16 changed files with 20354 additions and 15486 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -120,3 +120,8 @@ DefaultShapeComplexity=CTF_UseComplexAsSimple
[/Script/Engine.UserInterfaceSettings]
RenderFocusRule=Never
[/Script/UnrealEd.CookerSettings]
bCookOnTheFlyForLaunchOn=False

BIN
Content/GameInstance_BP.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/MenuSelect.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

BIN
Content/ToggleStartMenu.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/part1--5/BP_JournalWidget.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/part1--5/JournalWidget_BPP.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/part1--5/characterBP/BP_JournalWidget.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/part1--5/characterBP/StartMenu.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

BIN
Content/part1/partie1.umap (Stored with Git LFS)

Binary file not shown.

View File

@ -9,16 +9,19 @@
void UJournalWidget::NativeConstruct()
{
Super::NativeConstruct();
//UJournalPage* page = NewObject<UJournalPage>();
//journal_pages.Add(page);
//current_number_of_pages = journal_pages.Num();
//current_page_number = 0;
// Meubler le journal
FString name = "another item";
FString desc = "Je suis un item de la liste dans le journal, je sert a tester le truc car c'est encore necessaire";
for (int i = 0; i < 25; i++) {
add_to_journal(name, desc);
}
}
void UJournalWidget::next_page()
{
if (current_page_number + 1 < max_pages)
if (current_page_number + 1 < current_number_of_pages)
{
current_page_number++;
}
@ -104,6 +107,16 @@ void UJournalWidget::print_current_page()
return;
}
int UJournalWidget::get_current_number_of_page() {
return current_number_of_pages;
}
int UJournalWidget::get_number_of_entries_in_current_page() {
return journal_pages[current_page_number]->get_number_of_entries();
}
int UJournalWidget::add_page()
{
UJournalPage* page = NewObject<UJournalPage>();
@ -112,7 +125,8 @@ int UJournalWidget::add_page()
return current_number_of_pages;
}
int UJournalWidget::get_current_page_number()
int UJournalWidget::get_current_pages_number()
{
return current_page_number;
}
}

View File

@ -24,12 +24,15 @@ class SURREALISM_API UJournalWidget : public UUserWidget
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Journal")
int max_pages = 10;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Journal")
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Journal")
int current_number_of_pages = 0;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Journal")
int current_page_number = 0;
UFUNCTION(BlueprintCallable, CallInEditor, Category = "Journal")
int get_current_number_of_page();
UFUNCTION(BlueprintCallable, CallInEditor, Category = "Journal")
void next_page();
@ -61,7 +64,11 @@ class SURREALISM_API UJournalWidget : public UUserWidget
void print_current_page();
UFUNCTION(BlueprintCallable, CallInEditor, Category = "Journal")
int get_current_page_number();
int get_current_pages_number();
UFUNCTION(BlueprintCallable, CallInEditor, Category = "Journal")
int get_number_of_entries_in_current_page();
virtual void NativeConstruct() override;