#include <SingleMenuSystemWidget.h>
|
| virtual bool | Initialize () override |
| |
| virtual void | NativePreConstruct () override |
| |
| virtual void | NativeConstruct () override |
| |
| 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) |
| |
◆ USingleMenuSystemWidget()
| USingleMenuSystemWidget::USingleMenuSystemWidget |
( |
const FObjectInitializer & | ObjectInitializer | ) |
|
|
explicit |
13 : Super(ObjectInitializer)
14{
15 const ConstructorHelpers::FClassFinder<UUserWidget> SelectionButtonBP(TEXT("/MenuSystem/Widgets/CommonUI/WBP_SelectionButton"));
16 if (!ensure(SelectionButtonBP.Class != nullptr)) return;
18 bIsBackHandler = true;
19}
◆ BackgroundSelected()
| void USingleMenuSystemWidget::BackgroundSelected |
( |
| ) |
|
|
private |
◆ ButtonSelectedEvent()
| void USingleMenuSystemWidget::ButtonSelectedEvent |
( |
const int32 | Index | ) |
|
◆ CheckButtonFocus()
| int32 USingleMenuSystemWidget::CheckButtonFocus |
( |
| ) |
const |
214{
215 for(int32 i = 0; i <
MenuButtons->GetChildrenCount(); i++)
216 {
218 if(SelectionButton != nullptr)
219 {
220 if(SelectionButton->IsVisible() && !SelectionButton->
GetIsDisabled())
221 {
223 }
224 }
225 }
226 return 0;
227}
◆ CreateSelectionButtons()
| void USingleMenuSystemWidget::CreateSelectionButtons |
( |
| ) |
|
93{
96
100 {
102 if(SelectionButton == nullptr){continue;}
103
105 {
107
109 {
111 {
113 }
114 else
115 {
117 SelectionButton->SetVisibility(ESlateVisibility::Hidden);
118 }
119 }
122 {
124 }
125 }
126 else
127 {
129 {
131 {
133 }
134 else
135 {
137 SelectionButton->SetVisibility(ESlateVisibility::Hidden);
138 }
141 {
143 }
144 }
145 else
146 {
147
148 SelectionButton->SetVisibility(ESlateVisibility::Hidden);
149 }
150 }
153 USpacer* Spacer = WidgetTree->ConstructWidget<USpacer>(USpacer::StaticClass());
154 if(Spacer != nullptr)
155 {
158 }
159 }
160}
◆ DisableAllButtons()
| void USingleMenuSystemWidget::DisableAllButtons |
( |
| ) |
const |
177{
178 for(int32 i = 0; i <
MenuButtons->GetChildrenCount(); i++)
179 {
181 if(SelectionButton != nullptr)
182 {
184 }
185 }
186}
◆ GetMenuIndex()
| int32 USingleMenuSystemWidget::GetMenuIndex |
( |
| ) |
const |
|
inline |
◆ Initialize()
| bool USingleMenuSystemWidget::Initialize |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ MenuButtonClicked()
| void USingleMenuSystemWidget::MenuButtonClicked |
( |
const int32 | Index | ) |
|
|
private |
◆ NativeConstruct()
| void USingleMenuSystemWidget::NativeConstruct |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ NativeGetDesiredFocusTarget()
| UWidget * USingleMenuSystemWidget::NativeGetDesiredFocusTarget |
( |
| ) |
const |
|
overridevirtual |
33{
34 for(int32 i = 0; i <
MenuButtons->GetChildrenCount(); i++)
35 {
37 if(SelectionButton != nullptr)
38 {
39 if(SelectionButton->IsVisible() && !SelectionButton->
GetIsDisabled())
40 {
41 return SelectionButton;
42 }
43 }
44 }
45 return Super::NativeGetDesiredFocusTarget();
46}
◆ NativeOnActivated()
| void USingleMenuSystemWidget::NativeOnActivated |
( |
| ) |
|
|
overridevirtual |
55{
56 Super::NativeOnActivated();
57 for(int32 i = 0; i <
MenuButtons->GetChildrenCount(); i++)
58 {
60 if(SelectionButton != nullptr)
61 {
63 }
64 }
65}
◆ NativeOnDeactivated()
| void USingleMenuSystemWidget::NativeOnDeactivated |
( |
| ) |
|
|
overridevirtual |
68{
69 Super::NativeOnDeactivated();
70 for(int32 i = 0; i <
MenuButtons->GetChildrenCount(); i++)
71 {
73 if(SelectionButton != nullptr)
74 {
76 }
77 }
78}
◆ NativeOnHandleBackAction()
| bool USingleMenuSystemWidget::NativeOnHandleBackAction |
( |
| ) |
|
|
overridevirtual |
Reimplemented from UMenuSystemWidget.
49{
51 return Super::NativeOnHandleBackAction();
52}
◆ NativePreConstruct()
| void USingleMenuSystemWidget::NativePreConstruct |
( |
| ) |
|
|
overrideprotectedvirtual |
81{
82 Super::NativePreConstruct();
84}
◆ SetAllButtonsToAltText()
| void USingleMenuSystemWidget::SetAllButtonsToAltText |
( |
| ) |
|
189{
190 for(int32 i = 0; i <
MenuButtons->GetChildrenCount(); i++)
191 {
193 }
195}
◆ SetFromSingleMenuData()
| void USingleMenuSystemWidget::SetFromSingleMenuData |
( |
const FSingleMenu & | SingleMenu | ) |
|
◆ SetIsBackHandler()
| void USingleMenuSystemWidget::SetIsBackHandler |
( |
const bool | bValue | ) |
|
198{
199 bIsBackHandler = bValue;
200}
◆ SetMenuIndex()
| void USingleMenuSystemWidget::SetMenuIndex |
( |
const int32 | Index | ) |
|
|
inline |
◆ AltButtonTextList
| TArray<FString> USingleMenuSystemWidget::AltButtonTextList |
◆ AltTextButtons
| TArray<bool> USingleMenuSystemWidget::AltTextButtons |
◆ BackButtonIndex
| int32 USingleMenuSystemWidget::BackButtonIndex = 5 |
◆ BackgroundButton
| class UButton* USingleMenuSystemWidget::BackgroundButton = nullptr |
|
protected |
◆ ButtonTextList
| TArray<FString> USingleMenuSystemWidget::ButtonTextList |
◆ DescriptionTitle
| FString USingleMenuSystemWidget::DescriptionTitle = "Description" |
◆ DisabledButtons
| TArray<bool> USingleMenuSystemWidget::DisabledButtons |
◆ Layout
| int32 USingleMenuSystemWidget::Layout = 1 |
◆ MenuButtons
| class UStackBox* USingleMenuSystemWidget::MenuButtons = nullptr |
|
protected |
◆ MenuIndex
| int32 USingleMenuSystemWidget::MenuIndex = 0 |
|
private |
◆ MenuTitle
| FString USingleMenuSystemWidget::MenuTitle = "Menu Title" |
◆ MenuTitleText
| class UTextBlock* USingleMenuSystemWidget::MenuTitleText = nullptr |
|
protected |
◆ OnMenuButtonSelected
| FOnMenuButtonSelected USingleMenuSystemWidget::OnMenuButtonSelected |
◆ OnMenuButtonWithTabSelected
| FOnMenuButtonWithTabSelected USingleMenuSystemWidget::OnMenuButtonWithTabSelected |
◆ SelectionButtonClass
| TSubclassOf<class UUserWidget> USingleMenuSystemWidget::SelectionButtonClass |
|
private |
◆ SpacerSize
| float USingleMenuSystemWidget::SpacerSize = 17.0f |
The documentation for this class was generated from the following files:
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/MenuSystem/Source/MenuSystem/Public/Widgets/SingleMenuSystemWidget.h
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/MenuSystem/Source/MenuSystem/Private/Widgets/SingleMenuSystemWidget.cpp