DeskSim v2 0.1
Train simulator prototype created for Lokførerskolen
Public Member Functions | Public Attributes | List of all members
UMainMenuWidget Class Reference

The main menu widget. More...

#include <MainMenuWidget.h>

Inheritance diagram for UMainMenuWidget:

Public Member Functions

 UMainMenuWidget (const FObjectInitializer &ObjectInitializer)
 
void NativeOnInitialized () override
 Function for setting up native class members.
 
void SetButtons ()
 .Addign a function dynamic to all buttons
 
void QuitGame ()
 Quit's the game.
 
void LogOut ()
 Logs the user out of the game.
 
void ChangeLayout (bool mode)
 Function for changing between Editor menu and Main menu. More...
 
void ATCClicked ()
 Changes the active widget in the menu to ATC.
 
void ERTMSClicked ()
 Changes the active widget in the menu to ERTMS.
 
void INFRClicked ()
 Changes the active widget in the menu to INFRASTRUKTUR.
 
void FEILClicked ()
 Changes the active widget in the menu to FEIL.
 
void SKIFClicked ()
 Changes the active widget in the menu to SKIFTING.
 
void EKSTClicked ()
 Changes the active widget in the menu to EKSTERN.
 

Public Attributes

class UWidgetSwitcher * ScenarioSwitcher
 The widget switcher binding from the blueprint widget.
 
class UButton * EditorBtn
 Editor mode button binding.
 
class UButton * MainMenuBtn
 Main Menu mode button binding.
 
class UButton * SettingsBtn
 Settings button binding.
 
class UButton * QuitBtn
 Quit button binding.
 
class UButton * LogoutBtn
 Log out button binding.
 
class UButton * ATCBtn
 ATC button binding.
 
class UButton * ERTMSBtn
 ERTMS button binding.
 
class UButton * INFRBtn
 INFRASTRUKTUR button binding.
 
class UButton * FEILBtn
 FEIL button binding.
 
class UButton * SKIFBtn
 SKIFTING button binding.
 
class UButton * EKSTBtn
 EKSTERN button binding.
 

Detailed Description

The main menu widget.

Member Function Documentation

◆ ChangeLayout()

void UMainMenuWidget::ChangeLayout ( bool  mode)

Function for changing between Editor menu and Main menu.

Parameters
mode- true = Editormode | false = MainMenuMode

The documentation for this class was generated from the following files: