CT OBJECT ZOOM: Difference between revisions
Killzone Kid (talk | contribs) (Redirected page to DialogControls-Objects) |
m (Text replacement - "{{CT|intro" to "Category: Control Types {{CT|intro ") |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Category: Control Types]] | |||
{{CT|intro | |||
|macro = CT_OBJECT_ZOOM | |||
|value = 81 | |||
|description = Very similar to [[CT_OBJECT]]. See that page for information on objects in dialogs. | |||
|commands = | |||
* [[:Category:Command_Group:_GUI_Control_-_Object|Commands: Object]] | |||
|events = | |||
* [[User_Interface_Event_Handlers#onObjectMoved|onObjectMoved]] | |||
}} | |||
{{CT|abc start}} | |||
=== A === | |||
{{CT|attribute | |||
|name=AnimationSources | |||
|type1=Class | |||
|value1=class AnimationSources | |||
{ | |||
class Threat_Level_Source | |||
{ | |||
source = "user"; | |||
initPhase = 0.005; | |||
animPeriod = 1; | |||
}; | |||
}; | |||
|description= | |||
}} | |||
=== D === | |||
{{CT|attribute | |||
|name=direction | |||
|type1=Array | |||
|value1={0,0,1} | |||
|description= | |||
}} | |||
=== E === | |||
{{CT|attribute | |||
|name=enableZoom | |||
|type1=Number | |||
|value1=1 | |||
|description= | |||
}} | |||
=== I === | |||
{{CT|attribute | |||
|name=inBack | |||
|type1=Number | |||
|value1=0 | |||
|description= | |||
}} | |||
=== M === | |||
{{CT|attribute | |||
|name=model | |||
|type1=String | |||
|value1="\a3\Missions_F_Oldman\Systems\UI\Objects\WatchDummy.p3d" | |||
|description= | |||
}} | |||
=== P === | |||
{{CT|attribute | |||
|name=position | |||
|type1=Array | |||
|value1={0,0,0.15} | |||
|description= | |||
}} | |||
{{CT|attribute | |||
|name=positionBack | |||
|type1=Array | |||
|value1={0.0475,-0.0575,0.225} | |||
|description= | |||
}} | |||
=== S === | |||
{{CT|attribute | |||
|name=scale | |||
|type1=Number | |||
|value1=2 | |||
|description= | |||
}} | |||
{{CT|attribute | |||
|name=selectionDate1 | |||
|type1=String | |||
|value1="date1" | |||
|description= | |||
}} | |||
{{CT|attribute | |||
|name=selectionDate2 | |||
|type1=String | |||
|value1="date2" | |||
|description= | |||
}} | |||
{{CT|attribute | |||
|name=selectionDay | |||
|type1=String | |||
|value1="day" | |||
|description= | |||
}} | |||
=== U === | |||
{{CT|attribute | |||
|name=up | |||
|type1=Array | |||
|value1={0,1,0} | |||
|description= | |||
}} | |||
=== X === | |||
{{CT|attribute | |||
|name=xBack | |||
|type1=String | |||
|value1="26 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)" | |||
|description= | |||
}} | |||
=== Y === | |||
{{CT|attribute | |||
|name=yBack | |||
|type1=String | |||
|value1="13 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)" | |||
|description= | |||
}} | |||
=== Z === | |||
{{CT|attribute | |||
|name=z | |||
|type1=Number | |||
|value1=1 | |||
|description= | |||
}} | |||
{{CT|attribute | |||
|name=zBack | |||
|type1=Number | |||
|value1=2 | |||
|description= | |||
}} | |||
{{CT|attribute | |||
|name=zoomDuration | |||
|type1=Number | |||
|value1=0.5 | |||
|description= | |||
}} | |||
{{CT|abc end}} | |||
{{CT|examples}} | |||
None | |||
== Other Examples == | |||
=== RscExample === | |||
<syntaxhighlight lang="cpp"> | |||
class MyCompass | |||
{ | |||
idd = -1; | |||
class objects | |||
{ | |||
class RscCompass /*: RscObject */ | |||
{ | |||
idc = -1; | |||
type = 81; | |||
scale = 1; | |||
shadow = 0; | |||
model = "\core\compass\compass.p3d"; | |||
selectionArrow = "arrow"; | |||
position[] = { 0.026, 0.047, 0.2 }; | |||
direction[] = { 0, 1, 1 }; | |||
up[] = { 0, 0, -1 }; | |||
positionBack[] = { 0.0749, -0.059, 0.315 }; | |||
inBack = 1; | |||
enableZoom = 0; | |||
zoomDuration = 0.5; | |||
class Animations | |||
{ | |||
class Pointer | |||
{ | |||
type = "rotation"; | |||
source = "compassPointer"; | |||
selection = "kompas"; | |||
axis = "osa kompasu"; | |||
memory = 1; | |||
animPeriod = 0; | |||
minValue = "rad -180"; | |||
maxValue = "rad 180"; | |||
angle0 = "rad -180"; | |||
angle1 = "rad 180"; | |||
}; | |||
class Arrow | |||
{ | |||
type = "rotation"; | |||
source = "compassArrow"; | |||
selection = "arrow"; | |||
axis = "osa kompasu"; | |||
memory = 1; | |||
animPeriod = 0; | |||
minValue = "rad -180"; | |||
maxValue = "rad 180"; | |||
angle0 = "rad -180"; | |||
angle1 = "rad 180"; | |||
}; | |||
class Cover | |||
{ | |||
type = "rotation"; | |||
source = "compassCover"; | |||
selection = "vicko"; | |||
axis = "osa vicka"; | |||
memory = 1; | |||
animPeriod = 0; | |||
angle0 = 0; | |||
angle1 = "rad -81"; | |||
}; | |||
}; | |||
}; | |||
}; | |||
}; | |||
</syntaxhighlight> |
Latest revision as of 15:25, 29 November 2020
Control Types / MACRO (TYPE VALUE) | |
---|---|
Text/Image/Video |
CT_STATIC (0) | CT_EDIT (2) | CT_HTML (9) | CT_STRUCTURED_TEXT (13) |
Buttons |
CT_BUTTON (1) | CT_ACTIVETEXT (11) | CT_SHORTCUTBUTTON (16) | CT_CHECKBOX (77) | CT_XBUTTON (41) |
Lists |
CT_COMBO (4) | CT_TOOLBOX (6) | CT_CHECKBOXES (7) | CT_TREE (12) | CT_CONTROLS_TABLE (19) | CT_XCOMBO (44) | CT_LISTBOX (5) | CT_LISTNBOX (102) | CT_LISTNBOX_CHECKABLE (104) | CT_XLISTBOX (45) |
3D Objects |
CT_OBJECT (80) | CT_OBJECT_ZOOM (81) | CT_OBJECT_CONTAINER (82) | CT_OBJECT_CONT_ANIM (83) |
Maps |
CT_MAP (100) | CT_MAP_MAIN (101) |
Meta |
CT_SLIDER (3) | CT_XSLIDER (43) | CT_PROGRESS (8) | CT_CONTROLS_GROUP (15) | CT_WEBBROWSER (106) | CT_EXTENSION (107) |
Menu |
CT_CONTEXT_MENU (14) | CT_MENU (46) | CT_MENU_STRIP (47) |
Unknown |
CT_STATIC_SKEW (10) | CT_HITZONES (17) | CT_VEHICLETOGGLES (18) | CT_XKEYDESC (40) | CT_ANIMATED_TEXTURE (45) | CT_LINEBREAK (98) | CT_USER (99) | CT_ITEMSLOT (103) | CT_VEHICLE_DIRECTION (105) |
Introduction
Very similar to CT_OBJECT. See that page for information on objects in dialogs.
Related commands & functions
Related User Interface Eventhandlers
Alphabetical Order
#define CT_OBJECT_ZOOM 81
A
AnimationSources
- Type
- Class
- Description
- n/a
class AnimationSources
{
class Threat_Level_Source
{
source = "user";
initPhase = 0.005;
animPeriod = 1;
};
};
D
direction
- Type
- Array
- Description
- n/a
direction[] = {0,0,1};
E
enableZoom
- Type
- Number
- Description
- n/a
enableZoom = 1;
I
inBack
- Type
- Number
- Description
- n/a
inBack = 0;
M
model
- Type
- String
- Description
- n/a
model = "\a3\Missions_F_Oldman\Systems\UI\Objects\WatchDummy.p3d";
P
position
- Type
- Array
- Description
- n/a
position[] = {0,0,0.15};
positionBack
- Type
- Array
- Description
- n/a
positionBack[] = {0.0475,-0.0575,0.225};
S
scale
- Type
- Number
- Description
- n/a
scale = 2;
selectionDate1
- Type
- String
- Description
- n/a
selectionDate1 = "date1";
selectionDate2
- Type
- String
- Description
- n/a
selectionDate2 = "date2";
selectionDay
- Type
- String
- Description
- n/a
selectionDay = "day";
U
up
- Type
- Array
- Description
- n/a
up[] = {0,1,0};
X
xBack
- Type
- String
- Description
- n/a
xBack = "26 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
Y
yBack
- Type
- String
- Description
- n/a
yBack = "13 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
Z
z
- Type
- Number
- Description
- n/a
z = 1;
zBack
- Type
- Number
- Description
- n/a
zBack = 2;
zoomDuration
- Type
- Number
- Description
- n/a
zoomDuration = 0.5;
Default Classes
None
Other Examples
RscExample
class MyCompass
{
idd = -1;
class objects
{
class RscCompass /*: RscObject */
{
idc = -1;
type = 81;
scale = 1;
shadow = 0;
model = "\core\compass\compass.p3d";
selectionArrow = "arrow";
position[] = { 0.026, 0.047, 0.2 };
direction[] = { 0, 1, 1 };
up[] = { 0, 0, -1 };
positionBack[] = { 0.0749, -0.059, 0.315 };
inBack = 1;
enableZoom = 0;
zoomDuration = 0.5;
class Animations
{
class Pointer
{
type = "rotation";
source = "compassPointer";
selection = "kompas";
axis = "osa kompasu";
memory = 1;
animPeriod = 0;
minValue = "rad -180";
maxValue = "rad 180";
angle0 = "rad -180";
angle1 = "rad 180";
};
class Arrow
{
type = "rotation";
source = "compassArrow";
selection = "arrow";
axis = "osa kompasu";
memory = 1;
animPeriod = 0;
minValue = "rad -180";
maxValue = "rad 180";
angle0 = "rad -180";
angle1 = "rad 180";
};
class Cover
{
type = "rotation";
source = "compassCover";
selection = "vicko";
axis = "osa vicka";
memory = 1;
animPeriod = 0;
angle0 = 0;
angle1 = "rad -81";
};
};
};
};
};