Skip to content

UOperatingSystemBsodWidget

#include <OperatingSystemSimulator/Public/Widgets/OperatingSystemBsodWidget.h>
class UOperatingSystemBsodWidget

Defined in OperatingSystemBsodWidget.h:17

Inherits: UUserWidget, UUserWidget

---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemBsodWidget["UOperatingSystemBsodWidget"]
  class UUserWidget["UUserWidget"]
  UUserWidget <|-- UOperatingSystemBsodWidget
  UUserWidget <|-- UOperatingSystemBsodWidget
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemBsodWidget["UOperatingSystemBsodWidget"]
  class UOperatingSystem["UOperatingSystem"]
  UOperatingSystemBsodWidget *-- UOperatingSystem
  class FGenericError["FGenericError"]
  UOperatingSystemBsodWidget *-- FGenericError
---
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.

ReturnNameDescription
voidSetErrorSets the error for the BSOD (Blue Screen Of Death) widget by taking in a reference to a FGenericError object.
voidUpdateProgressUpdates the progress percentage of the BSOD (Blue Screen of Death) widget.

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.

  • NewError The error to set for the BSOD widget.

See also: FGenericError


void UpdateProgress(const float ProgressPercentage)

Defined in OperatingSystemBsodWidget.h:65 Updates the progress percentage of the BSOD (Blue Screen of Death) widget.

  • ProgressPercentage The progress percentage value to update. Should be a value between 0 and 100.
ReturnNameDescription
UOperatingSystemBsodWidget *CreateBsodWidget staticCreates a BSOD (Blue Screen of Death) widget for an operating system.

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.

  • OwningOS A pointer to the owning operating system object.

A pointer to the created BSOD widget.

  • CreateFromSoftWidget
ReturnNameDescription
TObjectPtr< UOperatingSystem >ParentOSPointer to the parent operating system object of the BSOD widget.
FGenericErrorBsodErrorStruct containing any error

TObjectPtr< UOperatingSystem > ParentOS

Defined 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


FGenericError BsodError

Defined in OperatingSystemBsodWidget.h:37 Struct containing any error

See also: SetError()

ReturnNameDescription
voidK2_OnProgressChangedTriggered when the progress of the BSOD (Blue Screen of Death) widget changes.

void K2_OnProgressChanged(const float & CurrentProgressPercentage)

Defined in OperatingSystemBsodWidget.h:76 Triggered when the progress of the BSOD (Blue Screen of Death) widget changes.

  • CurrentProgressPercentage The current progress percentage value. Should be a value between 0 and 100.