feat: updated engine

This commit is contained in:
Sara Gerretsen 2026-07-10 17:04:34 +02:00
parent cbe99774ff
commit f4cf6b3999
6607 changed files with 910135 additions and 430025 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="TextServerExtension" inherits="TextServer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
<class name="TextServerExtension" inherits="TextServer" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
<brief_description>
Base class for custom [TextServer] implementations (plugins).
</brief_description>
@ -384,6 +384,36 @@
Returns oversampling factor override. If set to a positive value, overrides the oversampling factor of the viewport this font is used in. See [member Viewport.oversampling]. This value doesn't override the [code skip-lint]oversampling[/code] parameter of [code skip-lint]draw_*[/code] methods. Used by dynamic fonts only.
</description>
</method>
<method name="_font_get_palette_colors" qualifiers="virtual const">
<return type="PackedColorArray" />
<param index="0" name="font_rid" type="RID" />
<param index="1" name="index" type="int" />
<description>
Returns the array in the predefined color palette at [param index]. Palette contains all colors used to render font glyphs. Each palette has the same number of colors. Colors can be overridden using [method _font_set_palette_custom_colors].
</description>
</method>
<method name="_font_get_palette_count" qualifiers="virtual const">
<return type="int" />
<param index="0" name="font_rid" type="RID" />
<description>
Returns the number of predefined color palettes. Palette contains all colors used to render font glyphs. Each palette has the same number of colors.
</description>
</method>
<method name="_font_get_palette_custom_colors" qualifiers="virtual const">
<return type="PackedColorArray" />
<param index="0" name="font_rid" type="RID" />
<description>
Returns array of custom colors to override predefined palette.
</description>
</method>
<method name="_font_get_palette_name" qualifiers="virtual const">
<return type="String" />
<param index="0" name="font_rid" type="RID" />
<param index="1" name="index" type="int" />
<description>
Returns the name of the predefined color palette at [param index]. Palette contains all colors used to render font glyphs. Each palette has the same number of colors.
</description>
</method>
<method name="_font_get_scale" qualifiers="virtual required const">
<return type="float" />
<param index="0" name="font_rid" type="RID" />
@ -520,6 +550,13 @@
Returns thickness of the underline in pixels.
</description>
</method>
<method name="_font_get_used_palette" qualifiers="virtual const">
<return type="int" />
<param index="0" name="font_rid" type="RID" />
<description>
Returns used palette index.
</description>
</method>
<method name="_font_get_variation_coordinates" qualifiers="virtual const">
<return type="Dictionary" />
<param index="0" name="font_rid" type="RID" />
@ -919,6 +956,14 @@
If set to a positive value, overrides the oversampling factor of the viewport this font is used in. See [member Viewport.oversampling]. This value doesn't override the [code skip-lint]oversampling[/code] parameter of [code skip-lint]draw_*[/code] methods. Used by dynamic fonts only.
</description>
</method>
<method name="_font_set_palette_custom_colors" qualifiers="virtual">
<return type="void" />
<param index="0" name="font_rid" type="RID" />
<param index="1" name="colors" type="PackedColorArray" />
<description>
Sets array of custom colors to override predefined palette. Set to empty array to reset overrides. Use [code]Color(0, 0, 0, 0)[/code], to keep predefined palette color at specific position.
</description>
</method>
<method name="_font_set_scale" qualifiers="virtual required">
<return type="void" />
<param index="0" name="font_rid" type="RID" />
@ -1024,6 +1069,14 @@
Sets thickness of the underline in pixels.
</description>
</method>
<method name="_font_set_used_palette" qualifiers="virtual">
<return type="void" />
<param index="0" name="font_rid" type="RID" />
<param index="1" name="index" type="int" />
<description>
Sets used palette index.
</description>
</method>
<method name="_font_set_variation_coordinates" qualifiers="virtual">
<return type="void" />
<param index="0" name="font_rid" type="RID" />
@ -1090,6 +1143,12 @@
Returns the name of the server interface.
</description>
</method>
<method name="_get_short_name" qualifiers="virtual const">
<return type="String" />
<description>
Returns the short name of the server interface. By convention, this should return a lowercase string that follows the [code]snake_case[/code] naming scheme.
</description>
</method>
<method name="_get_support_data" qualifiers="virtual const">
<return type="PackedByteArray" />
<description>
@ -1432,7 +1491,7 @@
<return type="void" />
<param index="0" name="shaped" type="RID" />
<param index="1" name="position" type="int" />
<param index="2" name="caret" type="CaretInfo*" />
<param index="2" name="r_caret" type="CaretInfo*" />
<description>
Returns shapes of the carets corresponding to the character offset [param position] in the text. Returned caret shape is 1 pixel wide rectangle.
</description>