|
G1R AngelScript
Scripting reference for the Gothic 1 Remake
|
A drawing canvas. More...
Public Member Functions | |
Canvas | |
| void | DrawText (UFont RenderFont, FString RenderText, FVector2D ScreenPosition, FVector2D Scale=FVector2D(1.000000, 1.000000), FLinearColor RenderColor=FLinearColor(1.000000, 1.000000, 1.000000, 1.000000), float32 Kerning=0.000000, FLinearColor ShadowColor=FLinearColor(0.000000, 0.000000, 0.000000, 1.000000), FVector2D ShadowOffset=FVector2D(1.000000, 1.000000), bool bCentreX=false, bool bCentreY=false, bool bOutlined=false, FLinearColor OutlineColor=FLinearColor(0.000000, 0.000000, 0.000000, 1.000000)) |
| Draws text on the Canvas. | |
| void | DrawBorder (UTexture BorderTexture, UTexture BackgroundTexture, UTexture LeftBorderTexture, UTexture RightBorderTexture, UTexture TopBorderTexture, UTexture BottomBorderTexture, FVector2D ScreenPosition, FVector2D ScreenSize, FVector2D CoordinatePosition, FVector2D CoordinateSize=FVector2D(1.000000, 1.000000), FLinearColor RenderColor=FLinearColor(1.000000, 1.000000, 1.000000, 1.000000), FVector2D BorderScale=FVector2D(0.100000, 0.100000), FVector2D BackgroundScale=FVector2D(0.100000, 0.100000), float32 Rotation=0.000000, FVector2D PivotPoint=FVector2D(0.500000, 0.500000), FVector2D CornerSize=FVector2D()) |
| Draws a 3x3 grid border with tiled frame and tiled interior on the Canvas. | |
| void | DrawBox (FVector2D ScreenPosition, FVector2D ScreenSize, float32 Thickness=1.000000, FLinearColor RenderColor=FLinearColor(1.000000, 1.000000, 1.000000, 1.000000)) |
| Draws an unfilled box on the Canvas. | |
| void | DrawLine (FVector2D ScreenPositionA=FVector2D(), FVector2D ScreenPositionB=FVector2D(), float32 Thickness=1.000000, FLinearColor RenderColor=FLinearColor(1.000000, 1.000000, 1.000000, 1.000000)) |
| Draws a line on the Canvas. | |
| void | DrawMaterial (UMaterialInterface RenderMaterial, FVector2D ScreenPosition, FVector2D ScreenSize, FVector2D CoordinatePosition, FVector2D CoordinateSize=FVector2D(1.000000, 1.000000), float32 Rotation=0.000000, FVector2D PivotPoint=FVector2D(0.500000, 0.500000)) |
| Draws a material on the Canvas. | |
| void | DrawMaterialTriangles (UMaterialInterface RenderMaterial, TArray< FCanvasUVTri > Triangles) |
| Draws a set of triangles on the Canvas. | |
| void | DrawPolygon (UTexture RenderTexture, FVector2D ScreenPosition, FVector2D Radius=FVector2D(1.000000, 1.000000), int NumberOfSides=3, FLinearColor RenderColor=FLinearColor(1.000000, 1.000000, 1.000000, 1.000000)) |
| Draws a polygon on the Canvas. | |
| void | Deproject (FVector2D ScreenPosition, FVector &WorldOrigin, FVector &WorldDirection) |
| Performs a deprojection of a screen space coordinate using the projection matrix set up for the Canvas. | |
| void | DrawTexture (UTexture RenderTexture, FVector2D ScreenPosition, FVector2D ScreenSize, FVector2D CoordinatePosition, FVector2D CoordinateSize=FVector2D(1.000000, 1.000000), FLinearColor RenderColor=FLinearColor(1.000000, 1.000000, 1.000000, 1.000000), EBlendMode BlendMode=EBlendMode ::BLEND_Translucent, float32 Rotation=0.000000, FVector2D PivotPoint=FVector2D(0.500000, 0.500000)) |
| Draws a texture on the Canvas. | |
| void | DrawTriangles (UTexture RenderTexture, TArray< FCanvasUVTri > Triangles) |
| Draws a set of triangles on the Canvas. | |
| FVector | Project (FVector WorldLocation) |
| Performs a projection of a world space coordinates using the projection matrix set up for the Canvas. | |
| FVector2D | WrappedTextSize (UFont RenderFont, FString RenderText) |
| Returns the wrapped text size in screen space coordinates. | |
| FVector2D | ClippedTextSize (UFont RenderFont, FString RenderText, FVector2D Scale=FVector2D(1.000000, 1.000000)) |
| Returns the clipped text size in screen space coordinates. | |
| Public Member Functions inherited from UObject | |
| bool | MarkPackageDirty () const |
| void | RemoveFromRoot () |
| bool | GetIsRooted () const |
| bool | IsTransient () const |
| bool | Modify (bool bAlwaysMarkDirty=true) |
| void | SetTransactional (bool bTransactional) |
| bool | IsSupportedForNetworking () const |
| UClass | GetClass () const |
| UObject | GetOuter () const |
| UObject | GetTypedOuter (TSubclassOf< UObject > Target) const |
| Traverses the outer chain searching for the next object of a certain type. | |
| UPackage | GetOutermost () const |
| UPackage | GetPackage () const |
| void | AddToRoot () |
| UWorld | GetWorld () const |
| FName | GetName () const |
| FString | GetFullName (const UObject StopOuter=nullptr) const |
| FString | GetPathName (const UObject StopOuter=nullptr) const |
| bool | IsA (const UClass Class) const |
| Returns true if this object is of the specified type, or a child of that type. | |
| void | SaveConfig () |
| void | LoadConfig () |
| void | ReloadConfig () |
| void | CopyScriptPropertiesFrom (const UObject OtherObject) |
| void | opCast (?&Address) const |
| FString | ToString () const |
Static Public Member Functions | |
Static Functions | |
| static UClass | StaticClass () |
| Static Public Member Functions inherited from UObject | |
| static UClass | StaticClass () |
Additional Inherited Members | |
| Public Attributes inherited from UObject | |
| const UClass | Class |
| const UObject | Outer |
| const UPackage | Outermost |
| const UPackage | Package |
| const UWorld | World |
| const FName | Name |
| const bool | IsRooted |
A drawing canvas.
| FVector2D ClippedTextSize | ( | UFont | RenderFont, |
| FString | RenderText, | ||
| FVector2D | Scale = FVector2D ( 1.000000 , 1.000000 ) ) |
Returns the clipped text size in screen space coordinates.
| RenderFont | Font to use when determining the size of the text. If this is null, then a default engine font is used. |
| RenderText | Text to determine the size of. |
| Scale | Scale of the font to use when determining the size of the text. |
Performs a deprojection of a screen space coordinate using the projection matrix set up for the Canvas.
| ScreenPosition | Screen space position to deproject to the World. |
| WorldOrigin | Vector which is the world position of the screen space position. |
| WorldDirection | Vector which can be used in a trace to determine what is "behind" the screen space position. Useful for object picking. |
| void DrawBorder | ( | UTexture | BorderTexture, |
| UTexture | BackgroundTexture, | ||
| UTexture | LeftBorderTexture, | ||
| UTexture | RightBorderTexture, | ||
| UTexture | TopBorderTexture, | ||
| UTexture | BottomBorderTexture, | ||
| FVector2D | ScreenPosition, | ||
| FVector2D | ScreenSize, | ||
| FVector2D | CoordinatePosition, | ||
| FVector2D | CoordinateSize = FVector2D ( 1.000000 , 1.000000 ), | ||
| FLinearColor | RenderColor = FLinearColor ( 1.000000 , 1.000000 , 1.000000 , 1.000000 ), | ||
| FVector2D | BorderScale = FVector2D ( 0.100000 , 0.100000 ), | ||
| FVector2D | BackgroundScale = FVector2D ( 0.100000 , 0.100000 ), | ||
| float32 | Rotation = 0.000000, | ||
| FVector2D | PivotPoint = FVector2D ( 0.500000 , 0.500000 ), | ||
| FVector2D | CornerSize = FVector2D ( ) ) |
Draws a 3x3 grid border with tiled frame and tiled interior on the Canvas.
| BorderTexture | Texture to use for border. |
| BackgroundTexture | Texture to use for border background. |
| LeftBorderTexture | Texture to use for the tiling left border. |
| RightBorderTexture | Texture to use for the tiling right border. |
| TopBorderTexture | Texture to use for the tiling top border. |
| BottomBorderTexture | Texture to use for the tiling bottom border. |
| ScreenPosition | Screen space position to render the texture. |
| ScreenSize | Screen space size to render the texture. |
| CoordinatePosition | Normalized UV starting coordinate to use when rendering the border texture. |
| CoordinateSize | Normalized UV size coordinate to use when rendering the border texture. |
| RenderColor | Color to tint the border. |
| BorderScale | Scale of the border. |
| BackgroundScale | Scale of the background. |
| Rotation | Rotation, in degrees, to render the texture. |
| PivotPoint | Normalized pivot point to use when rotating the texture. |
| CornerSize | Frame corner size in percent of frame texture (should be < 0.5f). |
| void DrawBox | ( | FVector2D | ScreenPosition, |
| FVector2D | ScreenSize, | ||
| float32 | Thickness = 1.000000, | ||
| FLinearColor | RenderColor = FLinearColor ( 1.000000 , 1.000000 , 1.000000 , 1.000000 ) ) |
Draws an unfilled box on the Canvas.
| ScreenPosition | Screen space position to render the text. |
| ScreenSize | Screen space size to render the texture. |
| Thickness | How many pixels thick the box lines should be. |
| void DrawLine | ( | FVector2D | ScreenPositionA = FVector2D ( ), |
| FVector2D | ScreenPositionB = FVector2D ( ), | ||
| float32 | Thickness = 1.000000, | ||
| FLinearColor | RenderColor = FLinearColor ( 1.000000 , 1.000000 , 1.000000 , 1.000000 ) ) |
Draws a line on the Canvas.
| ScreenPositionA | Starting position of the line in screen space. |
| ScreenPositionB | Ending position of the line in screen space. |
| Thickness | How many pixels thick this line should be. |
| RenderColor | Color to render the line. |
| void DrawMaterial | ( | UMaterialInterface | RenderMaterial, |
| FVector2D | ScreenPosition, | ||
| FVector2D | ScreenSize, | ||
| FVector2D | CoordinatePosition, | ||
| FVector2D | CoordinateSize = FVector2D ( 1.000000 , 1.000000 ), | ||
| float32 | Rotation = 0.000000, | ||
| FVector2D | PivotPoint = FVector2D ( 0.500000 , 0.500000 ) ) |
Draws a material on the Canvas.
| RenderMaterial | Material to use when rendering. Remember that only the emissive channel is able to be rendered as no lighting is performed when rendering to the Canvas. |
| ScreenPosition | Screen space position to render the texture. |
| ScreenSize | Screen space size to render the texture. |
| CoordinatePosition | Normalized UV starting coordinate to use when rendering the texture. |
| CoordinateSize | Normalized UV size coordinate to use when rendering the texture. |
| Rotation | Rotation, in degrees, to render the texture. |
| PivotPoint | Normalized pivot point to use when rotating the texture. |
| void DrawMaterialTriangles | ( | UMaterialInterface | RenderMaterial, |
| TArray< FCanvasUVTri > | Triangles ) |
| void DrawPolygon | ( | UTexture | RenderTexture, |
| FVector2D | ScreenPosition, | ||
| FVector2D | Radius = FVector2D ( 1.000000 , 1.000000 ), | ||
| int | NumberOfSides = 3, | ||
| FLinearColor | RenderColor = FLinearColor ( 1.000000 , 1.000000 , 1.000000 , 1.000000 ) ) |
Draws a polygon on the Canvas.
| RenderTexture | Texture to use when rendering the triangles. If no texture is set, then the default white texture is used. |
| ScreenPosition | Screen space position to render the text. |
| Radius | How large in pixels this polygon should be. |
| NumberOfSides | How many sides this polygon should have. This should be above or equal to three. |
| RenderColor | Color to tint the polygon. |
| void DrawText | ( | UFont | RenderFont, |
| FString | RenderText, | ||
| FVector2D | ScreenPosition, | ||
| FVector2D | Scale = FVector2D ( 1.000000 , 1.000000 ), | ||
| FLinearColor | RenderColor = FLinearColor ( 1.000000 , 1.000000 , 1.000000 , 1.000000 ), | ||
| float32 | Kerning = 0.000000, | ||
| FLinearColor | ShadowColor = FLinearColor ( 0.000000 , 0.000000 , 0.000000 , 1.000000 ), | ||
| FVector2D | ShadowOffset = FVector2D ( 1.000000 , 1.000000 ), | ||
| bool | bCentreX = false, | ||
| bool | bCentreY = false, | ||
| bool | bOutlined = false, | ||
| FLinearColor | OutlineColor = FLinearColor ( 0.000000 , 0.000000 , 0.000000 , 1.000000 ) ) |
Draws text on the Canvas.
| RenderFont | Font to use when rendering the text. If this is null, then a default engine font is used. |
| RenderText | Text to render on the Canvas. |
| ScreenPosition | Screen space position to render the text. |
| RenderColor | Color to render the text. |
| Kerning | Horizontal spacing adjustment to modify the spacing between each letter. |
| ShadowColor | Color to render the shadow of the text. |
| ShadowOffset | Pixel offset relative to the screen space position to render the shadow of the text. |
| bCentreX | If true, then interpret the screen space position X coordinate as the center of the rendered text. |
| bCentreY | If true, then interpret the screen space position Y coordinate as the center of the rendered text. |
| bOutlined | If true, then the text should be rendered with an outline. |
| OutlineColor | Color to render the outline for the text. |
| void DrawTexture | ( | UTexture | RenderTexture, |
| FVector2D | ScreenPosition, | ||
| FVector2D | ScreenSize, | ||
| FVector2D | CoordinatePosition, | ||
| FVector2D | CoordinateSize = FVector2D ( 1.000000 , 1.000000 ), | ||
| FLinearColor | RenderColor = FLinearColor ( 1.000000 , 1.000000 , 1.000000 , 1.000000 ), | ||
| EBlendMode | BlendMode = EBlendMode :: BLEND_Translucent, | ||
| float32 | Rotation = 0.000000, | ||
| FVector2D | PivotPoint = FVector2D ( 0.500000 , 0.500000 ) ) |
Draws a texture on the Canvas.
| RenderTexture | Texture to use when rendering. If no texture is set then this will use the default white texture. |
| ScreenPosition | Screen space position to render the texture. |
| ScreenSize | Screen space size to render the texture. |
| CoordinatePosition | Normalized UV starting coordinate to use when rendering the texture. |
| CoordinateSize | Normalized UV size coordinate to use when rendering the texture. |
| RenderColor | Color to use when rendering the texture. |
| BlendMode | Blending mode to use when rendering the texture. |
| Rotation | Rotation, in degrees, to render the texture. |
| PivotPoint | Normalized pivot point to use when rotating the texture. |
| void DrawTriangles | ( | UTexture | RenderTexture, |
| TArray< FCanvasUVTri > | Triangles ) |
Draws a set of triangles on the Canvas.
| RenderTexture | Texture to use when rendering the triangles. If no texture is set, then the default white texture is used. |
| Triangles | Triangles to render. |
Performs a projection of a world space coordinates using the projection matrix set up for the Canvas.
| WorldLocation | World space location to project onto the Canvas rendering plane. |
|
static |
Returns the wrapped text size in screen space coordinates.
| RenderFont | Font to use when determining the size of the text. If this is null, then a default engine font is used. |
| RenderText | Text to determine the size of. |