CT EXTENSION: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "Category: Control Types")
 
No edit summary
Line 1: Line 1:
{{CT|intro
|macro = CT_EXTENSION
|value = 107
|description =Extension controls are controlled and rendered by [[Extensions]]. The constant ''type'' property for these controls usually is {{hl|CT_EXTENSIONC}}.
}}
{{CT|abc start}}
=== C ===
{{CT|attribute
|name=colorBackground
|type1=Array
|value1={0,0,0,0}
|description=Color of the background (The backing texture gets cleared to this color before the Extension's OnDraw). If the UI is not created (Extension not found, or doesn't offer the uiClass), this color fills the whole control.
}}
=== E ===
{{CT|attribute
|name=extension
|type1=String
|value1="RVExtensionTest"
|description=Name of the Extension that provides this UI Control.
}}
=== T ===
{{CT|attribute
|name=tileH
|type1=Number
|value1=1
|type2=String
|value2="4 / (32 * pixelH)"
|description=Height of one tile. Used with ST_TILE_PICTURE to create a repeating wall of pictures, such as the fullscreen backgrounds in the [[:Category:Eden Editor|Eden Editor]]. Uses [[GUI Coordinates]].
}}
{{CT|attribute
|name=tileW
|type1=Number
|value1=1
|type2=String
|value2="8 / (32 * pixelW)"
|description=Width of one tile. Used with ST_TILE_PICTURE to create a repeating wall of pictures, such as the fullscreen backgrounds in the [[:Category:Eden Editor|Eden Editor]]. Uses [[GUI Coordinates]].
}}
=== U ===
{{CT|attribute
|name=uiClass
|type1=String
|value1="TestUI_123"
|description="Classname" of the UI, gets passed to the Extension, the Extension has to interpret it and choose what UI to display (If the Extension offers multiple UI Elements).
}}
{{CT|abc end}}
{{CT|examples}}
=== TODO ===
[[Category: Control Types]]
[[Category: Control Types]]

Revision as of 15:10, 20 August 2024

Introduction

Extension controls are controlled and rendered by Extensions. The constant type property for these controls usually is CT_EXTENSIONC.


Related commands & functions

Related User Interface Eventhandlers

Alphabetical Order

TokenNames common to most controls, such as x, y, w, h, text, idc... can be found here.
Not all of the listed attributes might have an effect nor might the list be complete. All attributes were gathered with this config crawler.
#define CT_EXTENSION 107



C

colorBackground

Type
Array
Description
Color of the background (The backing texture gets cleared to this color before the Extension's OnDraw). If the UI is not created (Extension not found, or doesn't offer the uiClass), this color fills the whole control.
colorBackground[] = {0,0,0,0};


E

extension

Type
String
Description
Name of the Extension that provides this UI Control.
extension = "RVExtensionTest";


T

tileH

Type
Number, String
Description
Height of one tile. Used with ST_TILE_PICTURE to create a repeating wall of pictures, such as the fullscreen backgrounds in the Eden Editor. Uses GUI Coordinates.

Number example:

tileH = 1;

String example:

tileH = "4 / (32 * pixelH)";


tileW

Type
Number, String
Description
Width of one tile. Used with ST_TILE_PICTURE to create a repeating wall of pictures, such as the fullscreen backgrounds in the Eden Editor. Uses GUI Coordinates.

Number example:

tileW = 1;

String example:

tileW = "8 / (32 * pixelW)";


U

uiClass

Type
String
Description
"Classname" of the UI, gets passed to the Extension, the Extension has to interpret it and choose what UI to display (If the Extension offers multiple UI Elements).
uiClass = "TestUI_123";



Default Classes

Arma 3
AddOns: Classes need to be initialised first with class SomeClass;

Missions: Since Arma 3 v2.02 one can use import SomeClass; to initialise a class (see the import keyword).

In older versions, use "Default" call BIS_fnc_exportGUIBaseClasses; and paste the result into the description.ext.


TODO