Advertisement
skotracker

ExileClient_gui_constructionMode_update

Apr 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 4.07 KB | None | 0 0
  1. /**
  2.  * ExileClient_construction_beginExistingObject
  3.  *
  4.  * Edited for Exile by _sinworks
  5.  *
  6.  * Exile Mod
  7.  * www.exilemod.com
  8.  * © 2015 Exile Mod Team
  9.  *
  10.  * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
  11.  * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
  12.  */
  13.  
  14. private["_display","_title","_titleControl","_description","_descriptionBackground"];
  15. disableSerialization;
  16. _display = uiNamespace getVariable "RscExileConstructionMode";
  17. if (!isNull _display) then
  18. {
  19.     _title = "";
  20.     switch (ExileClientConstructionMode) do
  21.     {
  22.         case 1: { _title = "FREE MODE"; };
  23.         case 2: { _title = "GRID MODE"; };
  24.         case 3: { _title = "SNAP MODE"; };
  25.     };
  26.     if (ExileClientConstructionModePhysx) then
  27.     {
  28.         _title = _title + " + PHYSICS";
  29.     };
  30.     if (ExileClientConstructionVectorMode ) then
  31.     {
  32.         _title = _title + " + VECTORS";
  33.     };
  34.     _titleControl = _display displayCtrl 1000;
  35.     _titleControl ctrlSetText _title;
  36.     _description = _display displayCtrl 1001;
  37.     _description ctrlShow ExileClientConstructionShowHint;
  38.     _descriptionBackground = _display displayCtrl 1002;
  39.     _descriptionBackground ctrlShow ExileClientConstructionShowHint;
  40.     if (!ExileClientConstructionVectorMode)then
  41.     {
  42.         _pos = ctrlPosition _descriptionBackground;
  43.         _descriptionBackground ctrlSetPosition [_pos select 0,_pos select 1,_pos select 2,370 * pixelH];
  44.         _descriptionBackground ctrlCommit 0;
  45.         _description ctrlSetStructuredText parseText Format["<t align='left'>Free Mode</t><t align='right' color='#3fd4fc'>1</t><br/><t align='left'>Grid Mode</t><t align='right' color='#3fd4fc'>2</t><br/><t align='left'>Snap Mode</t><t align='right' color='#3fd4fc'>3</t><br/><br/><t align='left'>Toggle Physics</t><t align='right' color='#3fd4fc'>4</t><br/><t align='left'>Toggle Assistant</t><t align='right' color='#3fd4fc'>5</t><br/><t align='left'>Freeze Object</t><t align='right' color='#3fd4fc'>6</t><br/><t align='left'>Toggle Vector Building</t><t align='right' color='#3fd4fc'>7</t><br/><br/><t align='left'>Rotation</t><t align='right' color='#3fd4fc'>Q/E</t><br/><t align='left'>Elevation</t><t align='right' color='#3fd4fc'>PAGE UP/DOWN</t><br/><t align='left'>Distance</t><t align='right' color='#3fd4fc'>HOME/END</t><br/><br/><t align='left'>Larger Steps</t><t align='right' color='#3fd4fc'>SHIFT</t><br/><t align='left'>Smaller Steps</t><t align='right' color='#3fd4fc'>CONTROL</t><br/><br/><t align='left'>Place</t><t align='right' color='#3fd4fc'>SPACE</t><br/><t align='left'>Abort</t><t align='right' color='#3fd4fc'>ESCAPE</t>"];
  46.     }
  47.     else
  48.     {
  49.         _pos = ctrlPosition _descriptionBackground;
  50.         _descriptionBackground ctrlSetPosition [_pos select 0,_pos select 1,_pos select 2,400 * pixelH];
  51.         _descriptionBackground ctrlCommit 0;
  52.         _description ctrlSetStructuredText parseText Format["<t align='left'>Free Mode</t><t align='right' color='#3fd4fc'>1</t><br/><t align='left'>Grid Mode</t><t align='right' color='#3fd4fc'>2</t><br/><t align='left'>Snap Mode</t><t align='right' color='#3fd4fc'>3</t><br/><br/><t align='left'>Toggle Physics</t><t align='right' color='#3fd4fc'>4</t><br/><t align='left'>Toggle Assistant</t><t align='right' color='#3fd4fc'>5</t><br/><t align='left'>Freeze Object</t><t align='right' color='#3fd4fc'>6</t><br/><t align='left'>Toggle Vector Building</t><t align='right' color='#3fd4fc'>7</t><br/><br/><t align='left'>Tilt Left</t><t align='right' color='#3fd4fc'>Q</t><br/><t align='left'>Tilt Right</t><t align='right' color='#3fd4fc'>E</t><br/><t align='left'>Pitch Forwards</t><t align='right' color='#3fd4fc'>PAGE UP</t><br/><t align='left'>Pitch Backwards</t><t align='right' color='#3fd4fc'>PAGE DOWN</t><br/><t align='left'>Distance</t><t align='right' color='#3fd4fc'>HOME/END</t><br/><br/><t align='left'>Larger Steps</t><t align='right' color='#3fd4fc'>SHIFT</t><br/><t align='left'>Smaller Steps</t><t align='right' color='#3fd4fc'>CONTROL</t><br/><br/><t align='left'>Place</t><t align='right' color='#3fd4fc'>SPACE</t><br/><t align='left'>Abort</t><t align='right' color='#3fd4fc'>ESCAPE</t>"];
  53.     };
  54. };
  55. true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement