|
| ULoginWidget (const FObjectInitializer &ObjectInitializer) |
|
void | NativeOnInitialized () override |
|
void | UpdateInfoText (FString Text) |
| Updates info text box in widget. More...
|
|
void | OnLoginClicked () |
| Called when the login button is clicked.
|
|
void | CallSignIn () |
| Creates and sends a request to the SignIn endpoint.
|
|
void | SignInCallback (UVaRestRequestJSON *Request) |
| Callback for when the Sign in responds. More...
|
|
void | CallUserLogin (FString JWT) |
| Creates and executes a request to the UserLogin endpoint. More...
|
|
void | UserLoginCallback (UVaRestRequestJSON *Request) |
| Callback for when UserLogin responds. More...
|
|
void | ReadUserData (UVaRestJsonObject *ResponseObject) |
| Reads the UserLogin response and fills in UserInfo in the gameinstance. More...
|
|
void | SwitchToMainMenu () |
| Removes this widget and shows main menu.
|
|
void | QuitGame () |
| Quits the game.
|
|
|
UEditableTextBox * | UsernameField |
|
UEditableTextBox * | PasswordField |
|
UButton * | LoginButton |
|
UButton * | QuitButton |
|
UTextBlock * | InfoTextBox |
|
UVaRestSubsystem * | RestSubSys |
| VaRest Subsystem reference.
|
|
FString | ApiBaseUrl |
|
TSubclassOf< UUserWidget > | MainMenuWidgetClass |
|
FVaRestCallDelegate | SignInDelegate |
| Delegate used for SignIn response.
|
|
FVaRestCallDelegate | UserLoginDelegate |
| Delegate used for UserLogin response.
|
|
◆ CallUserLogin()
void ULoginWidget::CallUserLogin |
( |
FString |
JWT | ) |
|
Creates and executes a request to the UserLogin endpoint.
- Parameters
-
JWT | - JSON Web Token used to retrieve the user object |
◆ ReadUserData()
void ULoginWidget::ReadUserData |
( |
UVaRestJsonObject * |
JsonObj | ) |
|
Reads the UserLogin response and fills in UserInfo in the gameinstance.
- Parameters
-
JsonObj | - Pointer to the JSON object |
◆ SignInCallback()
void ULoginWidget::SignInCallback |
( |
UVaRestRequestJSON * |
Response | ) |
|
Callback for when the Sign in responds.
- Parameters
-
Response | - Response object |
◆ UpdateInfoText()
void ULoginWidget::UpdateInfoText |
( |
FString |
Text | ) |
|
Updates info text box in widget.
- Parameters
-
◆ UserLoginCallback()
void ULoginWidget::UserLoginCallback |
( |
UVaRestRequestJSON * |
Response | ) |
|
Callback for when UserLogin responds.
- Parameters
-
Response | - Response object |
The documentation for this class was generated from the following files: