UOperatingSystemBsodWidget
#include <OperatingSystemSimulator/Public/Widgets/OperatingSystemBsodWidget.h>class UOperatingSystemBsodWidgetDefined in OperatingSystemBsodWidget.h:17
Inherits:
UUserWidget,UUserWidget
Inheritance diagram
Section titled “Inheritance diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemBsodWidget["UOperatingSystemBsodWidget"]
class UUserWidget["UUserWidget"]
UUserWidget <|-- UOperatingSystemBsodWidget
UUserWidget <|-- UOperatingSystemBsodWidget
Collaboration diagram
Section titled “Collaboration diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemBsodWidget["UOperatingSystemBsodWidget"]
class UOperatingSystem["UOperatingSystem"]
UOperatingSystemBsodWidget *-- UOperatingSystem
class FGenericError["FGenericError"]
UOperatingSystemBsodWidget *-- FGenericError
Class detail
Section titled “Class detail”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemBsodWidget {
+SetError(const FGenericError &NewError)
+UpdateProgress(const float ProgressPercentage)
+CreateBsodWidget(UOperatingSystem *OwningOS) UOperatingSystemBsodWidget() *
+ParentOS : TObjectPtr< UOperatingSystem() >
+BsodError : FGenericError()
+K2_OnProgressChanged(const float &CurrentProgressPercentage)
}
Represents the BSOD (Blue Screen of Death) widget for an operating system.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
void | SetError | Sets the error for the BSOD (Blue Screen Of Death) widget by taking in a reference to a FGenericError object. |
void | UpdateProgress | Updates the progress percentage of the BSOD (Blue Screen of Death) widget. |
SetError
Section titled “SetError”void SetError(const FGenericError & NewError)Defined in OperatingSystemBsodWidget.h:57 Sets the error for the BSOD (Blue Screen Of Death) widget by taking in a reference to a FGenericError object.
Parameters
Section titled “Parameters”NewErrorThe error to set for the BSOD widget.
See also: FGenericError
References
Section titled “References”UpdateProgress
Section titled “UpdateProgress”void UpdateProgress(const float ProgressPercentage)Defined in OperatingSystemBsodWidget.h:65 Updates the progress percentage of the BSOD (Blue Screen of Death) widget.
Parameters
Section titled “Parameters”ProgressPercentageThe progress percentage value to update. Should be a value between 0 and 100.
References
Section titled “References”Public Static Methods
Section titled “Public Static Methods”| Return | Name | Description |
|---|---|---|
UOperatingSystemBsodWidget * | CreateBsodWidget static | Creates a BSOD (Blue Screen of Death) widget for an operating system. |
CreateBsodWidget
Section titled “CreateBsodWidget”static
static UOperatingSystemBsodWidget * CreateBsodWidget(UOperatingSystem * OwningOS)Defined in OperatingSystemBsodWidget.h:49 Creates a BSOD (Blue Screen of Death) widget for an operating system.
This function creates a BSOD widget by taking in a pointer to the owning operating system object.
Parameters
Section titled “Parameters”OwningOSA pointer to the owning operating system object.
Returns
Section titled “Returns”A pointer to the created BSOD widget.
Referenced by
Section titled “Referenced by”References
Section titled “References”CreateFromSoftWidget
Protected Attributes
Section titled “Protected Attributes”| Return | Name | Description |
|---|---|---|
TObjectPtr< UOperatingSystem > | ParentOS | Pointer to the parent operating system object of the BSOD widget. |
FGenericError | BsodError | Struct containing any error |
ParentOS
Section titled “ParentOS”TObjectPtr< UOperatingSystem > ParentOSDefined in OperatingSystemBsodWidget.h:30 Pointer to the parent operating system object of the BSOD widget.
The ParentOS variable is used in the CreateBsodWidget function of the UOperatingSystemBsodWidget class to set the parent operating system for the BSOD widget. See also: CreateBsodWidget
BsodError
Section titled “BsodError”FGenericError BsodErrorDefined in OperatingSystemBsodWidget.h:37 Struct containing any error
See also: SetError()
Referenced by
Section titled “Referenced by”Protected Methods
Section titled “Protected Methods”| Return | Name | Description |
|---|---|---|
void | K2_OnProgressChanged | Triggered when the progress of the BSOD (Blue Screen of Death) widget changes. |
K2_OnProgressChanged
Section titled “K2_OnProgressChanged”void K2_OnProgressChanged(const float & CurrentProgressPercentage)Defined in OperatingSystemBsodWidget.h:76 Triggered when the progress of the BSOD (Blue Screen of Death) widget changes.
Parameters
Section titled “Parameters”CurrentProgressPercentageThe current progress percentage value. Should be a value between 0 and 100.