Skip to content

Instantly share code, notes, and snippets.

@commy2
Last active November 28, 2020 13:58
Show Gist options
  • Save commy2/bb70c307db046444a338af94497c50f2 to your computer and use it in GitHub Desktop.
Save commy2/bb70c307db046444a338af94497c50f2 to your computer and use it in GitHub Desktop.
params ["_display"];
private _background = _display ctrlCreate ["RscPicture", -1];
_background ctrlSetPosition [
safezoneXAbs,
safezoneY,
safezoneWAbs,
safezoneH
];
_background ctrlCommit 0;
_background ctrlSetText "#(rgb,8,8,3)color(0.2,0.2,0.2,1)";
private _size = 0.2;
private _width = _size * safezoneW;
private _height = _size * safezoneH * (getResolution#4);
private _picture = _display ctrlCreate ["RscPicture", -1];
_picture ctrlSetPosition [
0.5-_width/2,
0.5-_height/2,
_width, _height
];
_picture ctrlCommit 0;
_picture ctrlSetText "\x\cba\addons\main\logo_cba_ca.paa";
private _text = _display ctrlCreate ["RscLoadingText", -1];
_text ctrlSetPosition [
0.5-_width/2,
0.5,
_width, _height
];
_text ctrlCommit 0;
_text ctrlSetText "commy war hier";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment