Arma 3 v2.12.150330 (Profiling Branch)
Load a custom UI on the texture of an object with:
```sqf
cursorObject setObjectTexture [1, "#(rgb,1024,1024,1)ui('AE3_ArmaOS_Main_Dialog_test','AE3_UiOnTexture')"];
```
Object class used: Land_Laptop_03_sand_F
Example UI class definition I used:
```sqf
class AE3_ArmaOS_Main_Dialog_test
{
idd = 15984;
movingEnable = true; // allow moving window by dragging the element with: moving = true
enableSimulation = true;
class controls
{
class RscButton_1050: RscButton
{
// Battery Symbol
idc = 1050;
//text = "\a3\Data_f\Flags\flag_Altis_co.paa";
text = "\z\ae3\addons\armaos\images\AE3_battery_0_percent.paa";
x = 32 * GUI_GRID_W + GUI_GRID_X;
y = 0 * GUI_GRID_H + GUI_GRID_Y;
w = 2 * GUI_GRID_W;
h = 2 * GUI_GRID_H;
colorBackground[] = {0,0,0,0}; // transparent
colorBackgroundActive[] = {0,0,0,0.2}; // darken
colorText[] = {1,1,1,1}; // white; this could prohibit to change color to yellow and red on low battery levels, but is necessary for design changes
style = ST_PICTURE + ST_KEEP_ASPECT_RATIO;
action = "";
tooltip = "";
};
};
};
```
Updating the texture with this command works and shows the image:
```sqf
private _uiOnTextureDisplay = findDisplay "AE3_UiOnTexture";
displayUpdate _uiOnTextureDisplay;
```