{"name":"BIS_fnc_guiEffectTiles","operator":null,"title":"BIS fnc guiEffectTiles","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_guiEffectTiles","revid":349401,"updated":"2023-11-08T16:27:25Z","groups":["GUI"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Used in dialogs to animate background UAV tiles. See notes for a full working example.","syntaxes":[{"syntax":"[display] call BIS_fnc_guiEffectTiles","since":null,"effect":null,"exec":null,"params":[{"name":"display","type":"Display","optional":false,"default":null,"description":"display to be animated","types":["Display"],"since":null,"text":"display: Display - display to be animated"}],"returns":{"type":"Boolean","types":["Boolean"],"description":null,"text":"Boolean"}}],"examples":[{"text":"```sqf\n[findDisplay 49] call BIS_fnc_guiEffectTiles // display 49 - pause menu\n```","code":["[findDisplay 49] call BIS_fnc_guiEffectTiles // display 49 - pause menu"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["createDialog","findDisplay","User Interface Event Handlers"],"notes":[{"user":"BrotherhoodOfHam","date":"2014-09-30T17:36:00Z","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.\n\nTo set up your own dialog for use with this function it is actually fairly simple. Use the below example as a framework:\n\n```cpp\n// base classes\nclass RscControlsGroup\n{\n    class VScrollbar\n    {\n        color[] = { 1, 1, 1, 1 };\n        width = 0.021;\n        autoScrollEnabled = 1;\n\n        colorActive[] = { 1, 1, 1, 1 };\n        colorDisabled[] = { 1, 1, 1, 0.3 };\n        thumb = \"\\A3\\ui_f\\data\\gui\\cfg\\scrollbar\\thumb_ca.paa\";\n        arrowFull = \"\\A3\\ui_f\\data\\gui\\cfg\\scrollbar\\arrowFull_ca.paa\";\n        arrowEmpty = \"\\A3\\ui_f\\data\\gui\\cfg\\scrollbar\\arrowEmpty_ca.paa\";\n        border = \"\\A3\\ui_f\\data\\gui\\cfg\\scrollbar\\border_ca.paa\";\n    };\n\n    class HScrollbar : VScrollbar\n    {\n        color[] = { 1, 1, 1, 1 };\n        height = 0.028;\n    };\n\n    class Controls {};\n\n    type = 15;\n    idc = -1;\n    x = 0;\n    y = 0;\n    w = 1;\n    h = 1;\n    shadow = 0;\n    style = 16;\n};\n\nclass RscControlsGroupNoScrollbars : RscControlsGroup\n{\n    class VScrollbar : VScrollbar\n    {\n        width = 0;\n    };\n\n    class HScrollbar : HScrollbar\n    {\n        height = 0;\n    };\n};\n\nclass RscFrame\n{\n    type = 0;\n    idc = -1;\n    style = 64;\n    shadow = 2;\n    colorBackground[] = { 0, 0, 0, 0 };\n    colorText[] = {1,1,1,1};\n    font = \"PuristaMedium\";\n    sizeEx = 0.02;\n    text = \"\";\n};\n\nclass rscText\n{\n    access = 0;\n    type = 0;\n    idc = -1;\n    colorBackground[] = { 0, 0, 0, 0 };\n    colorText[] = { 1, 1, 1, 1 };\n    text = \"\";\n    fixedWidth = 0;\n    x = 0;\n    y = 0;\n    h = 0.037;\n    w = 0.3;\n    style = 0;\n    shadow = 1;\n    colorShadow[] = { 0, 0, 0, 0.5 };\n    font = \"PuristaMedium\";\n    SizeEx = \"(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)\";\n    linespacing = 1;\n    tooltipColorText[] = { 1, 1, 1, 1 };\n    tooltipColorBox[] = { 1, 1, 1, 1 };\n    tooltipColorShade[] = { 0, 0, 0, 0.65 };\n};\n\n///////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// actual dialog\n///////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\nclass rscTileExample\n{\n    idd = 2345;\n    onLoad = \"[_this select 0] call BIS_fnc_guiEffectTiles\";\n    onUnload = \"\";\n\n    class ControlsBackground\n    {\n        class TileGroup : RscControlsGroupNoScrollbars\n        {\n            idc = 115099;\n            x = \"safezoneX\";\n            y = \"safezoneY\";\n            w = \"safezoneW\";\n            h = \"safezoneH\";\n            disableCustomColors = 1;\n\n            class Controls\n            {\n                class TileFrame : RscFrame\n                {\n                    idc = 114999;\n                    x = 0;\n                    y = 0;\n                    w = \"safezoneW\";\n                    h = \"safezoneH\";\n                    colortext[] = { 0, 0, 0, 1 };\n                };\n\n                class Tile_0_0 : RscText\n                {\n                    idc = 115000;\n                    x = \"(0 * 1/6) * safezoneW\";\n                    y = \"(0 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_0_1 : RscText\n                {\n                    idc = 115001;\n                    x = \"(0 * 1/6) * safezoneW\";\n                    y = \"(1 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_0_2 : RscText\n                {\n                    idc = 115002;\n                    x = \"(0 * 1/6) * safezoneW\";\n                    y = \"(2 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_0_3 : RscText\n                {\n                    idc = 115003;\n                    x = \"(0 * 1/6) * safezoneW\";\n                    y = \"(3 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_0_4 : RscText\n                {\n                    idc = 115004;\n                    x = \"(0 * 1/6) * safezoneW\";\n                    y = \"(4 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_0_5 : RscText\n                {\n                    idc = 115005;\n                    x = \"(0 * 1/6) * safezoneW\";\n                    y = \"(5 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_1_0 : RscText\n                {\n                    idc = 115010;\n                    x = \"(1 * 1/6) * safezoneW\";\n                    y = \"(0 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_1_1 : RscText\n                {\n                    idc = 115011;\n                    x = \"(1 * 1/6) * safezoneW\";\n                    y = \"(1 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_1_2 : RscText\n                {\n                    idc = 115012;\n                    x = \"(1 * 1/6) * safezoneW\";\n                    y = \"(2 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_1_3 : RscText\n                {\n                    idc = 115013;\n                    x = \"(1 * 1/6) * safezoneW\";\n                    y = \"(3 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_1_4 : RscText\n                {\n                    idc = 115014;\n                    x = \"(1 * 1/6) * safezoneW\";\n                    y = \"(4 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_1_5 : RscText\n                {\n                    idc = 115015;\n                    x = \"(1 * 1/6) * safezoneW\";\n                    y = \"(5 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_2_0 : RscText\n                {\n                    idc = 115020;\n                    x = \"(2 * 1/6) * safezoneW\";\n                    y = \"(0 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_2_1 : RscText\n                {\n                    idc = 115021;\n                    x = \"(2 * 1/6) * safezoneW\";\n                    y = \"(1 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_2_2 : RscText\n                {\n                    idc = 115022;\n                    x = \"(2 * 1/6) * safezoneW\";\n                    y = \"(2 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_2_3 : RscText\n                {\n                    idc = 115023;\n                    x = \"(2 * 1/6) * safezoneW\";\n                    y = \"(3 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_2_4 : RscText\n                {\n                    idc = 115024;\n                    x = \"(2 * 1/6) * safezoneW\";\n                    y = \"(4 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_2_5 : RscText\n                {\n                    idc = 115025;\n                    x = \"(2 * 1/6) * safezoneW\";\n                    y = \"(5 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_3_0 : RscText\n                {\n                    idc = 115030;\n                    x = \"(3 * 1/6) * safezoneW\";\n                    y = \"(0 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_3_1 : RscText\n                {\n                    idc = 115031;\n                    x = \"(3 * 1/6) * safezoneW\";\n                    y = \"(1 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_3_2 : RscText\n                {\n                    idc = 115032;\n                    x = \"(3 * 1/6) * safezoneW\";\n                    y = \"(2 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_3_3 : RscText\n                {\n                    idc = 115033;\n                    x = \"(3 * 1/6) * safezoneW\";\n                    y = \"(3 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_3_4 : RscText\n                {\n                    idc = 115034;\n                    x = \"(3 * 1/6) * safezoneW\";\n                    y = \"(4 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_3_5 : RscText\n                {\n                    idc = 115035;\n                    x = \"(3 * 1/6) * safezoneW\";\n                    y = \"(5 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_4_0 : RscText\n                {\n                    idc = 115040;\n                    x = \"(4 * 1/6) * safezoneW\";\n                    y = \"(0 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_4_1 : RscText\n                {\n                    idc = 115041;\n                    x = \"(4 * 1/6) * safezoneW\";\n                    y = \"(1 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_4_2 : RscText\n                {\n                    idc = 115042;\n                    x = \"(4 * 1/6) * safezoneW\";\n                    y = \"(2 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_4_3 : RscText\n                {\n                    idc = 115043;\n                    x = \"(4 * 1/6) * safezoneW\";\n                    y = \"(3 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_4_4 : RscText\n                {\n                    idc = 115044;\n                    x = \"(4 * 1/6) * safezoneW\";\n                    y = \"(4 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_4_5 : RscText\n                {\n                    idc = 115045;\n                    x = \"(4 * 1/6) * safezoneW\";\n                    y = \"(5 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_5_0 : RscText\n                {\n                    idc = 115050;\n                    x = \"(5 * 1/6) * safezoneW\";\n                    y = \"(0 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_5_1 : RscText\n                {\n                    idc = 115051;\n                    x = \"(5 * 1/6) * safezoneW\";\n                    y = \"(1 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_5_2 : RscText\n                {\n                    idc = 115052;\n                    x = \"(5 * 1/6) * safezoneW\";\n                    y = \"(2 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_5_3 : RscText\n                {\n                    idc = 115053;\n                    x = \"(5 * 1/6) * safezoneW\";\n                    y = \"(3 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_5_4 : RscText\n                {\n                    idc = 115054;\n                    x = \"(5 * 1/6) * safezoneW\";\n                    y = \"(4 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n\n                class Tile_5_5 : RscText\n                {\n                    idc = 115055;\n                    x = \"(5 * 1/6) * safezoneW\";\n                    y = \"(5 * 1/6) * safezoneH\";\n                    w = \"1/6 * safezoneW\";\n                    h = \"1/6 * safezoneH\";\n                    colorBackground[] = { 0, 0, 0, 0.1 };\n                };\n            };\n        };\n    };\n\n    class controls\n    {\n        // populate with whatever other controls you are using in the actual dialog.\n    };\n};\n```\n\nYou would then execute the dialog the normal way:\n\n```sqf\ncreateDialog \"rscTileExample\";\n```"}],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: GUI","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}