BIS fnc guiEffectTiles: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " it's" to " it is")
m (Text replacement - ">\[ +(.*) *\] +(call|spawn)" to ">[$1] $2")
 
(34 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.00


|1.00|Game version=
|gr1= GUI
____________________________________________________________________________________________


| Used in dialogs to animate background UAV tiles. See notes for a full working example. |DESCRIPTION=
|descr= Used in dialogs to animate background UAV tiles. See notes for a full working example.
____________________________________________________________________________________________


| [display] call [[BIS_fnc_guiEffectTiles]]; |SYNTAX=
|s1= [display] call [[BIS_fnc_guiEffectTiles]]


|p1= '''Display''': [[Display]] - Display to animate|PARAMETER1=
|p1= display: [[Display]] - display to be animated


| [[Boolean]] |RETURNVALUE=
|r1= [[Boolean]]
____________________________________________________________________________________________


|x1= <code>[ [[findDisplay]] 49] [[call]] [[BIS_fnc_guiEffectTiles]] //display 49 - pause menu</code> |=
|x1= <sqf>[findDisplay 49] call BIS_fnc_guiEffectTiles // display 49 - pause menu</sqf>
____________________________________________________________________________________________
 
| [[createDialog]], [[findDisplay]], [[User Interface Event Handlers]] |SEEALSO=


|seealso= [[createDialog]] [[findDisplay]] [[User Interface Event Handlers]]
}}
}}


<h3 style="display:none">Notes</h3>
{{Note
<!-- Note Section BEGIN -->
|user= BrotherhoodOfHam
<!-- CONTINUE Notes -->
|timestamp= 20140930173600
<dl class="command_description">
|text= 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>
<dd class="notedate">Posted on September 30, 2014 - 17:36 (UTC)</dd>
To set up your own dialog for use with this function it is actually fairly simple. Use the below example as a framework:
<dt class="note">[[User:BrotherhoodOfHam|BrotherhoodOfHam]]</dt>
<dd class="note"><br>
 
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>
<br>
To set up your own dialog for use with this function it is actually fairly simple. Use the below example as a framework:<br><br>
 


<spoiler text="Click to view code"><code><nowiki>//base classes
<spoiler text="Click to view code">
<syntaxhighlight lang="cpp">
// base classes
class RscControlsGroup
class RscControlsGroup
{
{
class VScrollbar
class VScrollbar
{
{
color[] = {1,1,1,1};
color[] = { 1, 1, 1, 1 };
width = 0.021;
width = 0.021;
autoScrollEnabled = 1;
autoScrollEnabled = 1;
 
colorActive[] = {1, 1, 1, 1};
colorActive[] = { 1, 1, 1, 1 };
colorDisabled[] = {1, 1, 1, 0.3};
colorDisabled[] = { 1, 1, 1, 0.3 };
thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
Line 53: Line 43:
border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
};
};
 
class HScrollbar : VScrollbar
class HScrollbar : VScrollbar
{
{
color[] = {1,1,1,1};
color[] = { 1, 1, 1, 1 };
height = 0.028;
height = 0.028;
};
};
 
class Controls {};
class Controls {};
 
type = 15;
type = 15;
idc = -1;
idc = -1;
Line 72: Line 62:
};
};


class RscControlsGroupNoScrollbars : RscControlsGroup {
class RscControlsGroupNoScrollbars : RscControlsGroup
class VScrollbar : VScrollbar {
{
class VScrollbar : VScrollbar
{
width = 0;
width = 0;
};
};
 
class HScrollbar : HScrollbar {
class HScrollbar : HScrollbar
{
height = 0;
height = 0;
};
};
Line 88: Line 81:
style = 64;
style = 64;
shadow = 2;
shadow = 2;
colorBackground[] = {0,0,0,0};
colorBackground[] = { 0, 0, 0, 0 };
colorText[] = {1,1,1,1};
colorText[] = {1,1,1,1};
font = "PuristaMedium";
font = "PuristaMedium";
Line 100: Line 93:
type = 0;
type = 0;
idc = -1;
idc = -1;
colorBackground[] = {0,0,0,0};
colorBackground[] = { 0, 0, 0, 0 };
colorText[] = {1,1,1,1};
colorText[] = { 1, 1, 1, 1 };
text = "";
text = "";
fixedWidth = 0;
fixedWidth = 0;
Line 110: Line 103:
style = 0;
style = 0;
shadow = 1;
shadow = 1;
colorShadow[] = {0,0,0,0.5};
colorShadow[] = { 0, 0, 0, 0.5 };
font = "PuristaMedium";
font = "PuristaMedium";
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
linespacing = 1;
linespacing = 1;
tooltipColorText[] = {1,1,1,1};
tooltipColorText[] = { 1, 1, 1, 1 };
tooltipColorBox[] = {1,1,1,1};
tooltipColorBox[] = { 1, 1, 1, 1 };
        tooltipColorShade[] = {0,0,0,0.65};
tooltipColorShade[] = { 0, 0, 0, 0.65 };
};
};


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
// actual dialog
//actual dialog
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////


class rscTileExample
class rscTileExample
Line 128: Line 121:
onLoad = "[_this select 0] call BIS_fnc_guiEffectTiles";
onLoad = "[_this select 0] call BIS_fnc_guiEffectTiles";
onUnload = "";
onUnload = "";
 
class ControlsBackground
class ControlsBackground
{
{
Line 139: Line 132:
h = "safezoneH";
h = "safezoneH";
disableCustomColors = 1;
disableCustomColors = 1;
 
class Controls {
class Controls
class TileFrame : RscFrame {
{
class TileFrame : RscFrame
{
idc = 114999;
idc = 114999;
x = 0;
x = 0;
Line 147: Line 142:
w = "safezoneW";
w = "safezoneW";
h = "safezoneH";
h = "safezoneH";
colortext[] = {0, 0, 0, 1};
colortext[] = { 0, 0, 0, 1 };
};
};
 
class Tile_0_0 : RscText {
class Tile_0_0 : RscText
{
idc = 115000;
idc = 115000;
x = "(0 * 1/6) * safezoneW";
x = "(0 * 1/6) * safezoneW";
Line 156: Line 152:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_0_1 : RscText {
class Tile_0_1 : RscText
{
idc = 115001;
idc = 115001;
x = "(0 * 1/6) * safezoneW";
x = "(0 * 1/6) * safezoneW";
Line 165: Line 162:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_0_2 : RscText {
class Tile_0_2 : RscText
{
idc = 115002;
idc = 115002;
x = "(0 * 1/6) * safezoneW";
x = "(0 * 1/6) * safezoneW";
Line 174: Line 172:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_0_3 : RscText {
class Tile_0_3 : RscText
{
idc = 115003;
idc = 115003;
x = "(0 * 1/6) * safezoneW";
x = "(0 * 1/6) * safezoneW";
Line 183: Line 182:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_0_4 : RscText {
class Tile_0_4 : RscText
{
idc = 115004;
idc = 115004;
x = "(0 * 1/6) * safezoneW";
x = "(0 * 1/6) * safezoneW";
Line 192: Line 192:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_0_5 : RscText {
class Tile_0_5 : RscText
{
idc = 115005;
idc = 115005;
x = "(0 * 1/6) * safezoneW";
x = "(0 * 1/6) * safezoneW";
Line 201: Line 202:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_1_0 : RscText {
class Tile_1_0 : RscText
{
idc = 115010;
idc = 115010;
x = "(1 * 1/6) * safezoneW";
x = "(1 * 1/6) * safezoneW";
Line 210: Line 212:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_1_1 : RscText {
class Tile_1_1 : RscText
{
idc = 115011;
idc = 115011;
x = "(1 * 1/6) * safezoneW";
x = "(1 * 1/6) * safezoneW";
Line 219: Line 222:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_1_2 : RscText {
class Tile_1_2 : RscText
{
idc = 115012;
idc = 115012;
x = "(1 * 1/6) * safezoneW";
x = "(1 * 1/6) * safezoneW";
Line 228: Line 232:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_1_3 : RscText {
class Tile_1_3 : RscText
{
idc = 115013;
idc = 115013;
x = "(1 * 1/6) * safezoneW";
x = "(1 * 1/6) * safezoneW";
Line 237: Line 242:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_1_4 : RscText {
class Tile_1_4 : RscText
{
idc = 115014;
idc = 115014;
x = "(1 * 1/6) * safezoneW";
x = "(1 * 1/6) * safezoneW";
Line 246: Line 252:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_1_5 : RscText {
class Tile_1_5 : RscText
{
idc = 115015;
idc = 115015;
x = "(1 * 1/6) * safezoneW";
x = "(1 * 1/6) * safezoneW";
Line 255: Line 262:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_2_0 : RscText {
class Tile_2_0 : RscText
{
idc = 115020;
idc = 115020;
x = "(2 * 1/6) * safezoneW";
x = "(2 * 1/6) * safezoneW";
Line 264: Line 272:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_2_1 : RscText {
class Tile_2_1 : RscText
{
idc = 115021;
idc = 115021;
x = "(2 * 1/6) * safezoneW";
x = "(2 * 1/6) * safezoneW";
Line 273: Line 282:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_2_2 : RscText {
class Tile_2_2 : RscText
{
idc = 115022;
idc = 115022;
x = "(2 * 1/6) * safezoneW";
x = "(2 * 1/6) * safezoneW";
Line 282: Line 292:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_2_3 : RscText {
class Tile_2_3 : RscText
{
idc = 115023;
idc = 115023;
x = "(2 * 1/6) * safezoneW";
x = "(2 * 1/6) * safezoneW";
Line 291: Line 302:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_2_4 : RscText {
class Tile_2_4 : RscText
{
idc = 115024;
idc = 115024;
x = "(2 * 1/6) * safezoneW";
x = "(2 * 1/6) * safezoneW";
Line 300: Line 312:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_2_5 : RscText {
class Tile_2_5 : RscText
{
idc = 115025;
idc = 115025;
x = "(2 * 1/6) * safezoneW";
x = "(2 * 1/6) * safezoneW";
Line 309: Line 322:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_3_0 : RscText {
class Tile_3_0 : RscText
{
idc = 115030;
idc = 115030;
x = "(3 * 1/6) * safezoneW";
x = "(3 * 1/6) * safezoneW";
Line 318: Line 332:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_3_1 : RscText {
class Tile_3_1 : RscText
{
idc = 115031;
idc = 115031;
x = "(3 * 1/6) * safezoneW";
x = "(3 * 1/6) * safezoneW";
Line 327: Line 342:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_3_2 : RscText {
class Tile_3_2 : RscText
{
idc = 115032;
idc = 115032;
x = "(3 * 1/6) * safezoneW";
x = "(3 * 1/6) * safezoneW";
Line 336: Line 352:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_3_3 : RscText {
class Tile_3_3 : RscText
{
idc = 115033;
idc = 115033;
x = "(3 * 1/6) * safezoneW";
x = "(3 * 1/6) * safezoneW";
Line 345: Line 362:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_3_4 : RscText {
class Tile_3_4 : RscText
{
idc = 115034;
idc = 115034;
x = "(3 * 1/6) * safezoneW";
x = "(3 * 1/6) * safezoneW";
Line 354: Line 372:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_3_5 : RscText {
class Tile_3_5 : RscText
{
idc = 115035;
idc = 115035;
x = "(3 * 1/6) * safezoneW";
x = "(3 * 1/6) * safezoneW";
Line 363: Line 382:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_4_0 : RscText {
class Tile_4_0 : RscText
{
idc = 115040;
idc = 115040;
x = "(4 * 1/6) * safezoneW";
x = "(4 * 1/6) * safezoneW";
Line 372: Line 392:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_4_1 : RscText {
class Tile_4_1 : RscText
{
idc = 115041;
idc = 115041;
x = "(4 * 1/6) * safezoneW";
x = "(4 * 1/6) * safezoneW";
Line 381: Line 402:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_4_2 : RscText {
class Tile_4_2 : RscText
{
idc = 115042;
idc = 115042;
x = "(4 * 1/6) * safezoneW";
x = "(4 * 1/6) * safezoneW";
Line 390: Line 412:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_4_3 : RscText {
class Tile_4_3 : RscText
{
idc = 115043;
idc = 115043;
x = "(4 * 1/6) * safezoneW";
x = "(4 * 1/6) * safezoneW";
Line 399: Line 422:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_4_4 : RscText {
class Tile_4_4 : RscText
{
idc = 115044;
idc = 115044;
x = "(4 * 1/6) * safezoneW";
x = "(4 * 1/6) * safezoneW";
Line 408: Line 432:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_4_5 : RscText {
class Tile_4_5 : RscText
{
idc = 115045;
idc = 115045;
x = "(4 * 1/6) * safezoneW";
x = "(4 * 1/6) * safezoneW";
Line 417: Line 442:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_5_0 : RscText {
class Tile_5_0 : RscText
{
idc = 115050;
idc = 115050;
x = "(5 * 1/6) * safezoneW";
x = "(5 * 1/6) * safezoneW";
Line 426: Line 452:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_5_1 : RscText {
class Tile_5_1 : RscText
{
idc = 115051;
idc = 115051;
x = "(5 * 1/6) * safezoneW";
x = "(5 * 1/6) * safezoneW";
Line 435: Line 462:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_5_2 : RscText {
class Tile_5_2 : RscText
{
idc = 115052;
idc = 115052;
x = "(5 * 1/6) * safezoneW";
x = "(5 * 1/6) * safezoneW";
Line 444: Line 472:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_5_3 : RscText {
class Tile_5_3 : RscText
{
idc = 115053;
idc = 115053;
x = "(5 * 1/6) * safezoneW";
x = "(5 * 1/6) * safezoneW";
Line 453: Line 482:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_5_4 : RscText {
class Tile_5_4 : RscText
{
idc = 115054;
idc = 115054;
x = "(5 * 1/6) * safezoneW";
x = "(5 * 1/6) * safezoneW";
Line 462: Line 492:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
 
class Tile_5_5 : RscText {
class Tile_5_5 : RscText
{
idc = 115055;
idc = 115055;
x = "(5 * 1/6) * safezoneW";
x = "(5 * 1/6) * safezoneW";
Line 471: Line 502:
w = "1/6 * safezoneW";
w = "1/6 * safezoneW";
h = "1/6 * safezoneH";
h = "1/6 * safezoneH";
colorBackground[] = {0, 0, 0, 0.1};
colorBackground[] = { 0, 0, 0, 0.1 };
};
};
};
};
};
};
};
};
 
class controls
class controls
{
{
//populate with whatever other controls you are using in the actual dialog.
// populate with whatever other controls you are using in the actual dialog.
};
};
};</nowiki></code></spoiler>
};
</syntaxhighlight>
</spoiler>
<br>
<br>
You would then execute the dialog the normal way:
You would then execute the dialog the normal way:
<code>[[createDialog]] "rscTileExample";</code>
<sqf>createDialog "rscTileExample";</sqf>
</dd>
}}
</dl>
<!-- DISCONTINUE Notes -->
<!-- Note Section END -->
 
 
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: GUI|{{uc:guiEffectTiles}}]]
[[Category:Functions|{{uc:guiEffectTiles}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:guiEffectTiles}}]]

Latest revision as of 17:27, 8 November 2023

Hover & click on the images for description

Description

Description:
Used in dialogs to animate background UAV tiles. See notes for a full working example.
Execution:
call
Groups:
GUI

Syntax

Syntax:
[display] call BIS_fnc_guiEffectTiles
Parameters:
display: Display - display to be animated
Return Value:
Boolean

Examples

Example 1:
[findDisplay 49] call BIS_fnc_guiEffectTiles // display 49 - pause menu

Additional Information

See also:
createDialog findDisplay User Interface Event Handlers

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
BrotherhoodOfHam - c
Posted on Sep 30, 2014 - 17:36 (UTC)
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.
To set up your own dialog for use with this function it is actually fairly simple. Use the below example as a framework:
// 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.
	};
};
↑ Back to spoiler's top

You would then execute the dialog the normal way:
createDialog "rscTileExample";