|
|
Line 1: |
Line 1: |
| | [[Category:Scripting Commands|ROPECREATE]] |
|
| |
|
| =1= | | {{Command|= Comments |
| <!-- CONTINUE Notes -->
| | ____________________________________________________________________________________________ |
| <dl class="command_description">
| |
| <dd class="notedate">Posted on September 30, 2014 - 23:40 (UTC)</dd>
| |
| <dt class="note">[[User:Benargee|Benargee]]</dt>
| |
| <dd class="note">
| |
|
| |
|
| This function is only used for dialogs which have background UAV tiles (See the in game pause menu for example), since this is only really found in official dialogs documentation on this function doesn't really exist.<br/>
| | | TKOH |= Game name |
| <br/>
| | |1.00|= Game version |
| To set up your own dialog for use with this function it's actually fairly simple. Use the below example as a framework:<br/><br/>
| |
|
| |
|
| | | game2= arma3 |= |
| | |version2= dev|= <!-- user:Benargee dev 1.33 --> |
|
| |
|
| <spoiler text="Click to view code"><code><nowiki>//base classes
| | ____________________________________________________________________________________________ |
| class RscControlsGroup
| |
| {
| |
| class VScrollbar
| |
| {
| |
| color[] = {1,1,1,1};
| |
| width = 0.021;
| |
| autoScrollEnabled = 1;
| |
|
| |
| colorActive[] = {1, 1, 1, 1};
| |
| colorDisabled[] = {1, 1, 1, 0.3};
| |
| thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
| |
| arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
| |
| arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
| |
| border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
| |
| };
| |
|
| |
| class HScrollbar : VScrollbar
| |
| {
| |
| color[] = {1,1,1,1};
| |
| height = 0.028;
| |
| };
| |
|
| |
| class Controls {};
| |
|
| |
| type = 15;
| |
| idc = -1;
| |
| x = 0;
| |
| y = 0;
| |
| w = 1;
| |
| h = 1;
| |
| shadow = 0;
| |
| style = 16;
| |
| };
| |
|
| |
|
| class RscControlsGroupNoScrollbars : RscControlsGroup {
| | | Create a rope. |= Description |
| class VScrollbar : VScrollbar {
| | ____________________________________________________________________________________________ |
| width = 0;
| |
| };
| |
|
| |
| class HScrollbar : HScrollbar {
| |
| height = 0;
| |
| };
| |
| };
| |
|
| |
|
| class RscFrame
| | | '''ropeCreate''' [fromObject, fromPoint, toObject, toPoint, segments, (length)]|= Syntax |
| {
| |
| type = 0;
| |
| idc = -1;
| |
| style = 64;
| |
| shadow = 2;
| |
| colorBackground[] = {0,0,0,0};
| |
| colorText[] = {1,1,1,1};
| |
| font = "PuristaMedium";
| |
| sizeEx = 0.02;
| |
| text = "";
| |
| };
| |
|
| |
|
| class rscText
| | |p1= fromObject: [[Object]] - object where rope starts and which fly behavior will be affected |= |
| {
| | |p2= fromPoint: [[Array]] or [[String]] - specifies where on the object the rope should start, either a string (name of memory point) or an array of three numbers (vector in model coordinates). |= |
| access = 0;
| | |p3= toObject: [[Object]] - object which is automatically attached to other side of rope (can be objNull, rope will stay with free end) |= |
| type = 0;
| | |p4= toPoint: [[Array]] or [[String]] - specifies where on the object the rope should finish, either a string (name of memory point) or an array of three numbers (vector in model coordinates) |= |
| idc = -1;
| | |p5= segments: [[Number]] - define number of segments to be created |= |
| colorBackground[] = {0,0,0,0};
| | |p6= length (Optional): [[Number]] - optional, rope length in meters |= |
| colorText[] = {1,1,1,1};
| |
| text = "";
| |
| fixedWidth = 0;
| |
| x = 0;
| |
| y = 0;
| |
| h = 0.037;
| |
| w = 0.3;
| |
| style = 0;
| |
| shadow = 1;
| |
| colorShadow[] = {0,0,0,0.5};
| |
| font = "PuristaMedium";
| |
| SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
| |
| linespacing = 1;
| |
| tooltipColorText[] = {1,1,1,1};
| |
| tooltipColorBox[] = {1,1,1,1};
| |
| tooltipColorShade[] = {0,0,0,0.65};
| |
| };
| |
|
| |
|
| ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
| | | [[Object]] |= Return value |
| | ____________________________________________________________________________________________ |
| | |s2= '''ropeCreate''' [fromObject, fromPoint, lenght, (segments, unroll)]; |= Syntax 2 |
|
| |
|
| //actual dialog
| | |p21= fromObject: [[Object]] - object where rope starts and which fly behavior will be affected |= |
| | |p22= fromPoint: [[Array]] or [[String]] - specifies where on the object the rope should start, either a string (name of memory point) or an array of three numbers (vector in model coordinates) |= |
| | |p23= segments: [[Number]] - define number of rope segments |= |
| | |p24= length (Optional): [[Number]] - optional, rope length |= |
| | |p25= unroll (Optional): [[Boolean]] - true if rope starts at one place and falls down unrolling itself, false to create it already in full length (default: false) |= |
|
| |
|
| class rscTileExample
| | |r2= [[Object]] |= Return value 2 |
| {
| | ____________________________________________________________________________________________ |
| idd = 2345;
| |
| onLoad = "[_this select 0] call [[BIS_fnc_guiEffectTiles]] ";
| |
| onUnload = "";
| |
|
| |
| class ControlsBackground
| |
| {
| |
| class TileGroup : RscControlsGroupNoScrollbars
| |
| {
| |
| idc = 115099;
| |
| x = "safezoneX";
| |
| y = "safezoneY";
| |
| w = "safezoneW";
| |
| h = "safezoneH";
| |
| disableCustomColors = 1;
| |
|
| |
| class Controls {
| |
| class TileFrame : RscFrame {
| |
| idc = 114999;
| |
| x = 0;
| |
| y = 0;
| |
| w = "safezoneW";
| |
| h = "safezoneH";
| |
| colortext[] = {0, 0, 0, 1};
| |
| };
| |
|
| |
| class Tile_0_0 : RscText {
| |
| idc = 115000;
| |
| x = "(0 * 1/6) * safezoneW";
| |
| y = "(0 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_0_1 : RscText {
| |
| idc = 115001;
| |
| x = "(0 * 1/6) * safezoneW";
| |
| y = "(1 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_0_2 : RscText {
| |
| idc = 115002;
| |
| x = "(0 * 1/6) * safezoneW";
| |
| y = "(2 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_0_3 : RscText {
| |
| idc = 115003;
| |
| x = "(0 * 1/6) * safezoneW";
| |
| y = "(3 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_0_4 : RscText {
| |
| idc = 115004;
| |
| x = "(0 * 1/6) * safezoneW";
| |
| y = "(4 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_0_5 : RscText {
| |
| idc = 115005;
| |
| x = "(0 * 1/6) * safezoneW";
| |
| y = "(5 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_1_0 : RscText {
| |
| idc = 115010;
| |
| x = "(1 * 1/6) * safezoneW";
| |
| y = "(0 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_1_1 : RscText {
| |
| idc = 115011;
| |
| x = "(1 * 1/6) * safezoneW";
| |
| y = "(1 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_1_2 : RscText {
| |
| idc = 115012;
| |
| x = "(1 * 1/6) * safezoneW";
| |
| y = "(2 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_1_3 : RscText {
| |
| idc = 115013;
| |
| x = "(1 * 1/6) * safezoneW";
| |
| y = "(3 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_1_4 : RscText {
| |
| idc = 115014;
| |
| x = "(1 * 1/6) * safezoneW";
| |
| y = "(4 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_1_5 : RscText {
| |
| idc = 115015;
| |
| x = "(1 * 1/6) * safezoneW";
| |
| y = "(5 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_2_0 : RscText {
| |
| idc = 115020;
| |
| x = "(2 * 1/6) * safezoneW";
| |
| y = "(0 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_2_1 : RscText {
| |
| idc = 115021;
| |
| x = "(2 * 1/6) * safezoneW";
| |
| y = "(1 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_2_2 : RscText {
| |
| idc = 115022;
| |
| x = "(2 * 1/6) * safezoneW";
| |
| y = "(2 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_2_3 : RscText {
| |
| idc = 115023;
| |
| x = "(2 * 1/6) * safezoneW";
| |
| y = "(3 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_2_4 : RscText {
| |
| idc = 115024;
| |
| x = "(2 * 1/6) * safezoneW";
| |
| y = "(4 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_2_5 : RscText {
| |
| idc = 115025;
| |
| x = "(2 * 1/6) * safezoneW";
| |
| y = "(5 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_3_0 : RscText {
| |
| idc = 115030;
| |
| x = "(3 * 1/6) * safezoneW";
| |
| y = "(0 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_3_1 : RscText {
| |
| idc = 115031;
| |
| x = "(3 * 1/6) * safezoneW";
| |
| y = "(1 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_3_2 : RscText {
| |
| idc = 115032;
| |
| x = "(3 * 1/6) * safezoneW";
| |
| y = "(2 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_3_3 : RscText {
| |
| idc = 115033;
| |
| x = "(3 * 1/6) * safezoneW";
| |
| y = "(3 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_3_4 : RscText {
| |
| idc = 115034;
| |
| x = "(3 * 1/6) * safezoneW";
| |
| y = "(4 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_3_5 : RscText {
| |
| idc = 115035;
| |
| x = "(3 * 1/6) * safezoneW";
| |
| y = "(5 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_4_0 : RscText {
| |
| idc = 115040;
| |
| x = "(4 * 1/6) * safezoneW";
| |
| y = "(0 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_4_1 : RscText {
| |
| idc = 115041;
| |
| x = "(4 * 1/6) * safezoneW";
| |
| y = "(1 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_4_2 : RscText {
| |
| idc = 115042;
| |
| x = "(4 * 1/6) * safezoneW";
| |
| y = "(2 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_4_3 : RscText {
| |
| idc = 115043;
| |
| x = "(4 * 1/6) * safezoneW";
| |
| y = "(3 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_4_4 : RscText {
| |
| idc = 115044;
| |
| x = "(4 * 1/6) * safezoneW";
| |
| y = "(4 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_4_5 : RscText {
| |
| idc = 115045;
| |
| x = "(4 * 1/6) * safezoneW";
| |
| y = "(5 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_5_0 : RscText {
| |
| idc = 115050;
| |
| x = "(5 * 1/6) * safezoneW";
| |
| y = "(0 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_5_1 : RscText {
| |
| idc = 115051;
| |
| x = "(5 * 1/6) * safezoneW";
| |
| y = "(1 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_5_2 : RscText {
| |
| idc = 115052;
| |
| x = "(5 * 1/6) * safezoneW";
| |
| y = "(2 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_5_3 : RscText {
| |
| idc = 115053;
| |
| x = "(5 * 1/6) * safezoneW";
| |
| y = "(3 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_5_4 : RscText {
| |
| idc = 115054;
| |
| x = "(5 * 1/6) * safezoneW";
| |
| y = "(4 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_5_5 : RscText {
| |
| idc = 115055;
| |
| x = "(5 * 1/6) * safezoneW";
| |
| y = "(5 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
| };
| |
| };
| |
| };
| |
|
| |
| class controls
| |
| {
| |
| //populate with whatever other controls you are using in the actual dialog.
| |
| };
| |
| };</nowiki></code></spoiler>
| |
| <br/>
| |
| You would then execute the dialog the normal way:
| |
| <code>[[createDialog]] "rscTileExample";</code>
| |
| </dd>
| |
| </dl>
| |
| <!-- DISCONTINUE Notes -->
| |
|
| |
|
| | |x1 = <code>myRope = [[ropeCreate]] <nowiki>[</nowiki>[[vehicle]] [[player]], "slingload0", myCargo, [0, 0, 0], 10];</code> |= Example 1 |
| | |x2 = <code>myRope = [[ropeCreate]] <nowiki>[</nowiki>[[vehicle]] [[player]], "fastrope0", 10, 10, [[true]]<nowiki>]</nowiki>;</code> |= Example 2 |
| | |x3 = <code>myRope = [[ropeCreate]] [veh1, [0,0,-2], veh2, [0,0,0], 10]//A3 1.33</code> |= Example 3 |
|
| |
|
| | | [[ropeDestroy]], [[ropeDetach]], [[ropeSetCargoMass]] |= See also |
|
| |
|
| | }} |
|
| |
|
| | <h3 style="display:none">Notes</h3> |
| | <dl class="command_description"> |
| | <!-- Note Section BEGIN --> |
|
| |
|
| | <!-- Note Section END --> |
| | </dl> |
|
| |
|
| | | <h3 style="display:none">Bottom Section</h3> |
| | | [[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] |
| | | [[Category:Take_On_Helicopters:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]] |
| =2=
| |
| <spoiler text="Click to view code"><code><nowiki>//base classes | |
| class RscControlsGroup
| |
| {
| |
| class VScrollbar
| |
| {
| |
| color[] = {1,1,1,1};
| |
| width = 0.021;
| |
| autoScrollEnabled = 1;
| |
|
| |
| colorActive[] = {1, 1, 1, 1};
| |
| colorDisabled[] = {1, 1, 1, 0.3};
| |
| thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
| |
| arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
| |
| arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
| |
| border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
| |
| };
| |
|
| |
| class HScrollbar : VScrollbar
| |
| {
| |
| color[] = {1,1,1,1};
| |
| height = 0.028;
| |
| };
| |
|
| |
| class Controls {};
| |
|
| |
| type = 15;
| |
| idc = -1;
| |
| x = 0;
| |
| y = 0;
| |
| w = 1;
| |
| h = 1;
| |
| shadow = 0;
| |
| style = 16;
| |
| };
| |
| | |
| class RscControlsGroupNoScrollbars : RscControlsGroup {
| |
| class VScrollbar : VScrollbar {
| |
| width = 0;
| |
| };
| |
|
| |
| class HScrollbar : HScrollbar {
| |
| height = 0;
| |
| };
| |
| };
| |
| | |
| class RscFrame
| |
| {
| |
| type = 0;
| |
| idc = -1;
| |
| style = 64;
| |
| shadow = 2;
| |
| colorBackground[] = {0,0,0,0};
| |
| colorText[] = {1,1,1,1};
| |
| font = "PuristaMedium";
| |
| sizeEx = 0.02;
| |
| text = "";
| |
| }; | |
| | |
| class rscText
| |
| {
| |
| access = 0;
| |
| type = 0;
| |
| idc = -1;
| |
| colorBackground[] = {0,0,0,0};
| |
| colorText[] = {1,1,1,1};
| |
| text = "";
| |
| fixedWidth = 0;
| |
| x = 0;
| |
| y = 0;
| |
| h = 0.037;
| |
| w = 0.3;
| |
| style = 0;
| |
| shadow = 1;
| |
| colorShadow[] = {0,0,0,0.5};
| |
| font = "PuristaMedium";
| |
| SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
| |
| linespacing = 1;
| |
| tooltipColorText[] = {1,1,1,1};
| |
| tooltipColorBox[] = {1,1,1,1};
| |
| tooltipColorShade[] = {0,0,0,0.65};
| |
| };
| |
| | |
| ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
| |
| | |
| //actual dialog
| |
| | |
| class rscTileExample
| |
| {
| |
| idd = 2345;
| |
| onLoad = "[_this select 0] call [[BIS_fnc_guiEffectTiles]] ";
| |
| onUnload = "";
| |
|
| |
| class ControlsBackground
| |
| {
| |
| class TileGroup : RscControlsGroupNoScrollbars
| |
| {
| |
| idc = 115099;
| |
| x = "safezoneX";
| |
| y = "safezoneY";
| |
| w = "safezoneW";
| |
| h = "safezoneH";
| |
| disableCustomColors = 1;
| |
|
| |
| class Controls {
| |
| class TileFrame : RscFrame {
| |
| idc = 114999;
| |
| x = 0;
| |
| y = 0;
| |
| w = "safezoneW";
| |
| h = "safezoneH";
| |
| colortext[] = {0, 0, 0, 1};
| |
| };
| |
|
| |
| class Tile_0_0 : RscText {
| |
| idc = 115000;
| |
| x = "(0 * 1/6) * safezoneW";
| |
| y = "(0 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_0_1 : RscText {
| |
| idc = 115001;
| |
| x = "(0 * 1/6) * safezoneW";
| |
| y = "(1 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_0_2 : RscText {
| |
| idc = 115002;
| |
| x = "(0 * 1/6) * safezoneW";
| |
| y = "(2 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_0_3 : RscText {
| |
| idc = 115003;
| |
| x = "(0 * 1/6) * safezoneW";
| |
| y = "(3 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_0_4 : RscText {
| |
| idc = 115004;
| |
| x = "(0 * 1/6) * safezoneW";
| |
| y = "(4 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_0_5 : RscText {
| |
| idc = 115005;
| |
| x = "(0 * 1/6) * safezoneW";
| |
| y = "(5 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_1_0 : RscText {
| |
| idc = 115010;
| |
| x = "(1 * 1/6) * safezoneW";
| |
| y = "(0 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_1_1 : RscText {
| |
| idc = 115011;
| |
| x = "(1 * 1/6) * safezoneW";
| |
| y = "(1 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_1_2 : RscText {
| |
| idc = 115012;
| |
| x = "(1 * 1/6) * safezoneW";
| |
| y = "(2 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_1_3 : RscText {
| |
| idc = 115013;
| |
| x = "(1 * 1/6) * safezoneW";
| |
| y = "(3 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_1_4 : RscText {
| |
| idc = 115014;
| |
| x = "(1 * 1/6) * safezoneW";
| |
| y = "(4 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_1_5 : RscText {
| |
| idc = 115015;
| |
| x = "(1 * 1/6) * safezoneW";
| |
| y = "(5 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_2_0 : RscText {
| |
| idc = 115020;
| |
| x = "(2 * 1/6) * safezoneW";
| |
| y = "(0 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_2_1 : RscText {
| |
| idc = 115021;
| |
| x = "(2 * 1/6) * safezoneW";
| |
| y = "(1 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_2_2 : RscText {
| |
| idc = 115022;
| |
| x = "(2 * 1/6) * safezoneW";
| |
| y = "(2 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_2_3 : RscText {
| |
| idc = 115023;
| |
| x = "(2 * 1/6) * safezoneW";
| |
| y = "(3 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_2_4 : RscText {
| |
| idc = 115024;
| |
| x = "(2 * 1/6) * safezoneW";
| |
| y = "(4 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_2_5 : RscText {
| |
| idc = 115025;
| |
| x = "(2 * 1/6) * safezoneW";
| |
| y = "(5 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_3_0 : RscText {
| |
| idc = 115030;
| |
| x = "(3 * 1/6) * safezoneW";
| |
| y = "(0 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_3_1 : RscText {
| |
| idc = 115031;
| |
| x = "(3 * 1/6) * safezoneW";
| |
| y = "(1 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_3_2 : RscText {
| |
| idc = 115032;
| |
| x = "(3 * 1/6) * safezoneW";
| |
| y = "(2 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_3_3 : RscText {
| |
| idc = 115033;
| |
| x = "(3 * 1/6) * safezoneW";
| |
| y = "(3 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_3_4 : RscText {
| |
| idc = 115034;
| |
| x = "(3 * 1/6) * safezoneW";
| |
| y = "(4 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_3_5 : RscText {
| |
| idc = 115035;
| |
| x = "(3 * 1/6) * safezoneW";
| |
| y = "(5 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_4_0 : RscText {
| |
| idc = 115040;
| |
| x = "(4 * 1/6) * safezoneW";
| |
| y = "(0 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_4_1 : RscText {
| |
| idc = 115041;
| |
| x = "(4 * 1/6) * safezoneW";
| |
| y = "(1 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_4_2 : RscText {
| |
| idc = 115042;
| |
| x = "(4 * 1/6) * safezoneW";
| |
| y = "(2 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_4_3 : RscText {
| |
| idc = 115043;
| |
| x = "(4 * 1/6) * safezoneW";
| |
| y = "(3 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_4_4 : RscText {
| |
| idc = 115044;
| |
| x = "(4 * 1/6) * safezoneW";
| |
| y = "(4 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_4_5 : RscText {
| |
| idc = 115045;
| |
| x = "(4 * 1/6) * safezoneW";
| |
| y = "(5 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_5_0 : RscText {
| |
| idc = 115050;
| |
| x = "(5 * 1/6) * safezoneW";
| |
| y = "(0 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_5_1 : RscText {
| |
| idc = 115051;
| |
| x = "(5 * 1/6) * safezoneW";
| |
| y = "(1 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_5_2 : RscText {
| |
| idc = 115052;
| |
| x = "(5 * 1/6) * safezoneW";
| |
| y = "(2 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_5_3 : RscText {
| |
| idc = 115053;
| |
| x = "(5 * 1/6) * safezoneW";
| |
| y = "(3 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_5_4 : RscText {
| |
| idc = 115054;
| |
| x = "(5 * 1/6) * safezoneW";
| |
| y = "(4 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
|
| |
| class Tile_5_5 : RscText {
| |
| idc = 115055;
| |
| x = "(5 * 1/6) * safezoneW";
| |
| y = "(5 * 1/6) * safezoneH";
| |
| w = "1/6 * safezoneW";
| |
| h = "1/6 * safezoneH";
| |
| colorBackground[] = {0, 0, 0, 0.1};
| |
| };
| |
| };
| |
| };
| |
| };
| |
|
| |
| class controls
| |
| {
| |
| //populate with whatever other controls you are using in the actual dialog.
| |
| };
| |
| };</nowiki></code></spoiler>
| |
| | |
| =test=
| |
| | |
| =do not delete=
| |
| [[Category:Benargee]]
| |