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

The settings widget class. More...

#include <settings.h>

Inheritance diagram for Usettings:

Public Member Functions

void ChangeResolution (FString sItem, ESelectInfo::Type seltype)
 Changes the resolution of the screen. More...
 
void ChangeScreenMode (FString sItem, ESelectInfo::Type seltype)
 Changes the simulator's screen mode. More...
 
void CloseSettings ()
 Removes the settings window.
 
void SetupSettings ()
 Sets up and fills the information seen in the settings widget in the main menu. More...
 

Public Attributes

class UComboBoxString * ResolutionDropdown
 Binding for the Screen resolution widget.
 
class UComboBoxString * WindowModeDropdown
 Binding for the window mode widget.
 
class USlider * SliderVolume
 Binding for volume slider.
 
class UButton * QuitButton
 Back to main menu button.
 

Detailed Description

The settings widget class.

Member Function Documentation

◆ ChangeResolution()

void Usettings::ChangeResolution ( FString  sItem,
ESelectInfo::Type  seltype 
)

Changes the resolution of the screen.

Parameters
sItem- the resolution string in the form (num1 x num2)
seltype

◆ ChangeScreenMode()

void Usettings::ChangeScreenMode ( FString  sItem,
ESelectInfo::Type  seltype 
)

Changes the simulator's screen mode.

Parameters
sItem- The string with the screen mode
seltype- info of the selection

◆ SetupSettings()

void Usettings::SetupSettings ( )

Sets up and fills the information seen in the settings widget in the main menu.

The function also binds the functionality for when a different resolution or screen mode is selected in the widget.

See also
ChangeScreenMode()
ChangeResolution()

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