#include <InGameMenuSystemWidget.h>
|
| virtual bool | Initialize () override |
| |
| virtual void | NativeConstruct () override |
| |
| virtual void | ModalButtonSelected (const int32 Index) override |
| |
| virtual void | ModalClosed () override |
| |
| virtual void | NativeOnActivated () override |
| |
| virtual void | NativeOnDeactivated () override |
| |
| virtual bool | NativeOnHandleBackAction () override |
| |
| void | BackButtonClicked () |
| |
| void | RestartLevelButtonClicked () |
| |
| void | LogDebugError (const FString &Message) const |
| |
| void | LogDebugError (const FString &Message, const int32 Value) const |
| |
| void | LogDebugError (const FString &Message, const float Value) const |
| |
| void | LogDebugWarning (const FString &Message) const |
| |
| void | LogDebugWarning (const FString &Message, const int32 Value) const |
| |
| void | LogDebugWarning (const FString &Message, const float Value) const |
| |
| void | LogDebugMessage (const FString &Message, const bool bWarning=false, const bool bError=false) const |
| |
| void | LogDebugMessage (const FString &Message, const int32 Value, const bool bWarning=false, const bool bError=false) const |
| |
| void | LogDebugMessage (const FString &Message, const float Value, const bool bWarning=false, const bool bError=false) const |
| |
| void | LogDebugMessage (const FString &Message, const bool bValue, const bool bWarning, const bool bError) const |
| |
| void | LogOnScreenMessage (const int32 Key, const FString &Message, FColor Color=FColor::Green) const |
| |
| void | SetCategoryName (const FLogCategoryBase &Category) |
| |
◆ BackButtonClicked()
| void UInGameMenuSystemWidget::BackButtonClicked |
( |
| ) |
|
|
protected |
107{
109 APlayerController* PlayerControllerReference = GetOwningPlayer();
110 if (!ensure(PlayerControllerReference != nullptr)) return;
112}
◆ ExitGame()
| void UInGameMenuSystemWidget::ExitGame |
( |
| ) |
|
|
private |
185{
186 const UWorld* World = GetWorld();
187 if(!ensure(World != nullptr)) return;
188 APlayerController* PlayerControllerReference = GetOwningPlayer();
189 if(!ensure(PlayerControllerReference != nullptr)) return;
190 if(World->GetNetMode() == NM_ListenServer)
191 {
192 AGameModeBase* GameMode = World->GetAuthGameMode<AGameModeBase>();
193 if(GameMode)
194 {
196 GameMode->ReturnToMainMenuHost();
197 }
198 }
199 else
200 {
201 if (PlayerControllerReference)
202 {
204 PlayerControllerReference->ClientReturnToMainMenuWithTextReason(FText::FromString("Back to main menu"));
205 }
206 }
207}
◆ Initialize()
| bool UInGameMenuSystemWidget::Initialize |
( |
| ) |
|
|
overrideprotectedvirtual |
Reimplemented from UMenuSystemWidget.
13{
14 const bool Success = Super::Initialize();
17 bIsBackHandler = true;
18 return true;
19}
◆ LeaveMultiplayerGame()
| void UInGameMenuSystemWidget::LeaveMultiplayerGame |
( |
| ) |
|
◆ MainMenuButtonClicked()
| void UInGameMenuSystemWidget::MainMenuButtonClicked |
( |
| ) |
|
|
private |
49{
52 DeactivateWidget();
53}
Definition MenuData.h:266
◆ ModalButtonSelected()
| void UInGameMenuSystemWidget::ModalButtonSelected |
( |
const int32 | Index | ) |
|
|
overrideprotectedvirtual |
Reimplemented from UMenuSystemWidget.
62{
63 Super::ModalButtonSelected(Index);
65 {
67 {
69 return;
70 }
72 ActivateWidget();
73 }
74}
◆ ModalClosed()
| void UInGameMenuSystemWidget::ModalClosed |
( |
| ) |
|
|
overrideprotectedvirtual |
Reimplemented from UMenuSystemWidget.
77{
78 Super::ModalClosed();
79 ActivateWidget();
80}
◆ NativeConstruct()
| void UInGameMenuSystemWidget::NativeConstruct |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ NativeGetDesiredFocusTarget()
| UWidget * UInGameMenuSystemWidget::NativeGetDesiredFocusTarget |
( |
| ) |
const |
|
overridevirtual |
40{
42 {
43 return PauseMenu->GetDesiredFocusTarget();
44 }
45 return Super::NativeGetDesiredFocusTarget();
46}
◆ NativeOnActivated()
| void UInGameMenuSystemWidget::NativeOnActivated |
( |
| ) |
|
|
overrideprotectedvirtual |
83{
84 Super::NativeOnActivated();
86 {
88 }
89}
◆ NativeOnDeactivated()
| void UInGameMenuSystemWidget::NativeOnDeactivated |
( |
| ) |
|
|
overrideprotectedvirtual |
92{
93 Super::NativeOnDeactivated();
95 {
97 }
98}
◆ NativeOnHandleBackAction()
| bool UInGameMenuSystemWidget::NativeOnHandleBackAction |
( |
| ) |
|
|
overrideprotectedvirtual |
Reimplemented from UMenuSystemWidget.
101{
103 return Super::NativeOnHandleBackAction();
104}
◆ OpenOptionsMenu()
| void UInGameMenuSystemWidget::OpenOptionsMenu |
( |
| ) |
|
|
private |
◆ OpenScoreboard()
| void UInGameMenuSystemWidget::OpenScoreboard |
( |
| ) |
|
|
private |
◆ PauseMenuButtonSelected()
| void UInGameMenuSystemWidget::PauseMenuButtonSelected |
( |
const int32 | Index | ) |
|
|
private |
124{
125 switch (Index)
126 {
127 default:
128 case 0:
129
131 break;
132 case 1:
133
135 break;
136 case 2:
137
139 {
141 return;
142 }
143
145 break;
146 case 3:
147
149 {
150
151 return;
152 }
153
154
155
156 break;
157 case 4:
158
160 break;
161 case 5:
162
164 break;
165 case 6:
166 break;
167 }
168}
◆ RestartLevelButtonClicked()
| void UInGameMenuSystemWidget::RestartLevelButtonClicked |
( |
| ) |
|
|
protected |
◆ SaveGame()
| void UInGameMenuSystemWidget::SaveGame |
( |
| ) |
|
|
private |
◆ MultiplayerButtons
| TArray<bool> UInGameMenuSystemWidget::MultiplayerButtons = { false, false, true, true, true } |
|
protected |
42{ false, false, true, true, true };
◆ PauseMenu
The documentation for this class was generated from the following files:
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/MenuSystem/Source/MenuSystem/Public/Widgets/InGameMenuSystemWidget.h
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/MenuSystem/Source/MenuSystem/Private/Widgets/InGameMenuSystemWidget.cpp