basically evertything
This commit is contained in:
parent
8835dde778
commit
d53b369343
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -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)
BIN
Content/GameInstance_BP.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/MenuSelect.uasset
(Stored with Git LFS)
Normal file
BIN
Content/MenuSelect.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/ThirdPerson/Input/IMC_Default.uasset
(Stored with Git LFS)
BIN
Content/ThirdPerson/Input/IMC_Default.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/ToggleStartMenu.uasset
(Stored with Git LFS)
Normal file
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)
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)
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
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
BIN
Content/part1--5/characterBP/StartMenu.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/part1--5/characterBP/gunCharacter_BP.uasset
(Stored with Git LFS)
BIN
Content/part1--5/characterBP/gunCharacter_BP.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/part1/blueprints/inspecItemBP/widget/added_to_journal_notification.uasset
(Stored with Git LFS)
BIN
Content/part1/blueprints/inspecItemBP/widget/added_to_journal_notification.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/part1/partie1.umap
(Stored with Git LFS)
BIN
Content/part1/partie1.umap
(Stored with Git LFS)
Binary file not shown.
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user