G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
GothicUI Namespace Reference

Functions

Player
APlayerController GetLocalPlayerController ()
Functions
void GetArmorOreCost (FGameplayTag _ArmorTag, int &_OreCost)
void GetAttributeDisplayText (FGameplayAttribute _GameplayAttribute, FText &_DisplayName, FText &_Description)
 Returns the display name and description for the given gameplay attribute.
FText GetChapterHeadline (int _ChapterNumber)
 Returns the headline of the given chapter (chapter number + title).
FText FormatNumberSI (int _Number)
 Formats a number using SI prefixes.
FText GetChapterTitle (int _ChapterNumber)
 Returns the display name of the given chapter.
FSlateBrush GetCurrentEnhancedInputActionIcon (const ULocalPlayer _LocalPlayer, const UInputAction _InputAction)
 Returns the proper icon brush for the given input action for the current input device of the given local player.
FSlateBrush GetCurrentInputActionIcon (const ULocalPlayer _LocalPlayer, FDataTableRowHandle _DataTableRowHandle)
 Returns the proper icon brush for the given input action for the current input device of the given local player.
bool BrushIsEmpty (FSlateBrush _Brush)
 Returns true if the DrawAs type of the given brush is None.
void GetLearningSkillTooltipText (FGameplayTag _SkillTag, TArray< FText > &_SkillDescriptions)
 Returns an array of "learning descriptions" for a given skill tag.
void GetGameplayTagDisplayText (FGameplayTag _GameplayTag, FText &_DisplayName, FText &_Description)
 Returns the display name and description for the given gameplay tag.
FGameplayTag GetOwnedSkillMastery (const AActor _Owner, FGameplayTag _SkillTag)
void GetSkillLPCost (const AGothicCharacterState CharacterState, FGameplayTag _SkillTag, int &_LPCost)
void GetSkillOreCost (FGameplayTag _SkillTag, int &_OreCost)
void GetSkillTagDisplayText (FGameplayTag _SkillTag, FText &_DisplayName, FText &_Description, FText &_MasteryDisplayName, FText &_MasteryDescription, int &_MasteryLevel)
 Returns the display name and description for the given skill gameplay tag. Extracts the mastery level in [0..2] for skills with a mastery level and -1 for others.
bool TryGetCurrentKeyIcon (FSlateBrush &_IconBrush, const ULocalPlayer _LocalPlayer, FKey _Key)
 Returns the proper icon brush for the given key for the current input device of the given local player.
void Viewport_SetMousePosition (const APlayerController ThePC, const float32 &PosX, const float32 &PosY)

Function Documentation

◆ BrushIsEmpty()

bool BrushIsEmpty ( FSlateBrush _Brush)

Returns true if the DrawAs type of the given brush is None.

◆ FormatNumberSI()

FText FormatNumberSI ( int _Number)

Formats a number using SI prefixes.

◆ GetArmorOreCost()

void GetArmorOreCost ( FGameplayTag _ArmorTag,
int & _OreCost )

◆ GetAttributeDisplayText()

void GetAttributeDisplayText ( FGameplayAttribute _GameplayAttribute,
FText & _DisplayName,
FText & _Description )

Returns the display name and description for the given gameplay attribute.

◆ GetChapterHeadline()

FText GetChapterHeadline ( int _ChapterNumber)

Returns the headline of the given chapter (chapter number + title).

◆ GetChapterTitle()

FText GetChapterTitle ( int _ChapterNumber)

Returns the display name of the given chapter.

◆ GetCurrentEnhancedInputActionIcon()

FSlateBrush GetCurrentEnhancedInputActionIcon ( const ULocalPlayer _LocalPlayer,
const UInputAction _InputAction )

Returns the proper icon brush for the given input action for the current input device of the given local player.

◆ GetCurrentInputActionIcon()

FSlateBrush GetCurrentInputActionIcon ( const ULocalPlayer _LocalPlayer,
FDataTableRowHandle _DataTableRowHandle )

Returns the proper icon brush for the given input action for the current input device of the given local player.

◆ GetGameplayTagDisplayText()

void GetGameplayTagDisplayText ( FGameplayTag _GameplayTag,
FText & _DisplayName,
FText & _Description )

Returns the display name and description for the given gameplay tag.

◆ GetLearningSkillTooltipText()

void GetLearningSkillTooltipText ( FGameplayTag _SkillTag,
TArray< FText > & _SkillDescriptions )

Returns an array of "learning descriptions" for a given skill tag.

◆ GetLocalPlayerController()

APlayerController GetLocalPlayerController ( )

◆ GetOwnedSkillMastery()

FGameplayTag GetOwnedSkillMastery ( const AActor _Owner,
FGameplayTag _SkillTag )

◆ GetSkillLPCost()

void GetSkillLPCost ( const AGothicCharacterState CharacterState,
FGameplayTag _SkillTag,
int & _LPCost )

◆ GetSkillOreCost()

void GetSkillOreCost ( FGameplayTag _SkillTag,
int & _OreCost )

◆ GetSkillTagDisplayText()

void GetSkillTagDisplayText ( FGameplayTag _SkillTag,
FText & _DisplayName,
FText & _Description,
FText & _MasteryDisplayName,
FText & _MasteryDescription,
int & _MasteryLevel )

Returns the display name and description for the given skill gameplay tag. Extracts the mastery level in [0..2] for skills with a mastery level and -1 for others.

◆ TryGetCurrentKeyIcon()

bool TryGetCurrentKeyIcon ( FSlateBrush & _IconBrush,
const ULocalPlayer _LocalPlayer,
FKey _Key )

Returns the proper icon brush for the given key for the current input device of the given local player.

◆ Viewport_SetMousePosition()

void Viewport_SetMousePosition ( const APlayerController ThePC,
const float32 & PosX,
const float32 & PosY )