![]() |
DeskSim v2 0.1
Train simulator prototype created for Lokførerskolen
|
The settings widget class. More...
#include <settings.h>
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... | |
The settings widget class.
void Usettings::ChangeResolution | ( | FString | sItem, |
ESelectInfo::Type | seltype | ||
) |
Changes the resolution of the screen.
sItem | - the resolution string in the form (num1 x num2) |
seltype |
void Usettings::ChangeScreenMode | ( | FString | sItem, |
ESelectInfo::Type | seltype | ||
) |
Changes the simulator's screen mode.
sItem | - The string with the screen mode |
seltype | - info of the selection |
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.