Guest User

UI Parallax Snippet

a guest
Jan 18th, 2020
34
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private _display = findDisplay 46 createDisplay "RscDisplayEmpty";
  2. private _group = _display ctrlCreate ['RscControlsGroupNoScrollbars',-1];
  3. _group ctrlSetPosition [0.1 * safezoneW + safezoneX, 0.1 * safezoneH + safezoneY, 0.4 * safezoneW, 0.4 * safezoneH];
  4. _group ctrlCommit 0;
  5. private _text = _display ctrlCreate ['RscText',-1,_group];
  6. _text ctrlSetPosition [0,0,ctrlPosition _group # 2,ctrlPosition _group # 3];
  7. _text ctrlSetBackgroundColor [0,0,0,0.5];
  8. _text ctrlCommit 0;
  9. private _camera = "camera" camcreate (getPosASLVisual player);
  10. showCinemaBorder false;
  11. _camera setPosASL (getPosASLVisual player);
  12. _camera cameraeffect ["internal", "back"];
  13. _camera campreparefocus [-1,-1];
  14. _camera campreparefov 0.35;
  15. _camera camcommitprepared 0;
  16. _camera setvectordirandup[vectordirvisual player, vectorupvisual player];
  17. _camera setPosASL(player modeltoworldvisualworld[0, -6, 1]);
  18. player setDir (getDir _camera + 180);
  19. [_group,_camera] call DT_fnc_UIParallax;
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×