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

The class that is used to display all of the holders for each created scenario. More...

#include <ScenarioWidget.h>

Inheritance diagram for UScenarioWidget:

Public Member Functions

void SetMembers (FString Name, FString Description, FName MapName)
 Setting all the members in the scenario widget and setting a button dynamic. More...
 
void ChangeToLevel ()
 Changes the level based on if the menu is in main menu, or editor mode and sends the gamemode as a parameter.
 
void SetMenuMode (bool mode)
 Changes the menu mode. More...
 

Public Attributes

class UTextBlock * TitleText
 Binding for title text in object widget.
 
class UTextBlock * DescriptionText
 Binding for description text in object widget.
 
class UButton * ScenarioButton
 Binding for scenario button in object widget.
 

Detailed Description

The class that is used to display all of the holders for each created scenario.

Member Function Documentation

◆ SetMembers()

void UScenarioWidget::SetMembers ( FString  Name,
FString  Description,
FName  MapName 
)

Setting all the members in the scenario widget and setting a button dynamic.

Parameters
Name- The name of the Scenario
Description- Description of the scenario.
MapName- The FName reference of the level

◆ SetMenuMode()

void UScenarioWidget::SetMenuMode ( bool  mode)

Changes the menu mode.

Parameters
mode- The menu mode to be set

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