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

Public Member Functions

 UTrainDMI (const FObjectInitializer &ObjectInitializer)
 
void Update (float Speed)
 Updates the needle in the train DMI. More...
 
void UpdateDMI (float Speed, FText SpeedText)
 Settign the needle in the DMI widget and the speed text. More...
 
void Hide ()
 @briefHides the DMI from the viewport.
 

Public Attributes

class UImage * needle
 Binding for the speedometer needle.
 
class UEditableTextBox * kmtText
 Binding for the speed text.
 

Member Function Documentation

◆ Update()

void UTrainDMI::Update ( float  Speed)

Updates the needle in the train DMI.

Parameters
Speed- The current speed of the train.
See also
UpdateDMI();

◆ UpdateDMI()

void UTrainDMI::UpdateDMI ( float  Speed,
FText  SpeedText 
)

Settign the needle in the DMI widget and the speed text.

Parameters
Speed
SpeedText

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