Advertisement
Guest User

SIMPLE DEBUG ESCAPE MENU

a guest
Jan 19th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.88 KB | None | 0 0
  1. span class="re5"> sKAM_showDebug_a = TRUE;
  2.                         [] spawn {
  3.                             disableSerialization;
  4.                             while { sKAM_showDebug_a } do {
  5.                                 waitUntil { !isNull (findDisplay 49) };
  6.                                 input_text7 = "";
  7.                                 _debugBorderLeft = (findDisplay 49) ctrlCreate ["RscText",-1];
  8.                                 _debugBorderLeft ctrlSetPosition [0.0153125 * safezoneW + safezoneX,0.082 * safezoneH + safezoneY,0.0670312 * safezoneW,0.022 * safezoneH];
  9.                                 _debugBorderLeft ctrlSetBackgroundColor [-1,-1,-1,0.8];
  10.                                 _debugBorderLeft ctrlCommit 0;
  11.                                 _debugBorderRight = (findDisplay 49) ctrlCreate ["RscText",-1];
  12.                                 _debugBorderRight ctrlSetPosition [0.12875 * safezoneW + safezoneX,0.082 * safezoneH + safezoneY,0.0670312 * safezoneW,0.022 * safezoneH];
  13.                                 _debugBorderRight ctrlSetBackgroundColor [-1,-1,-1,0.8];
  14.                                 _debugBorderRight ctrlCommit 0;
  15.                                 _button = (findDisplay 49) ctrlCreate ["RscButtonMenu",-1];
  16.                                 _textbox = (findDisplay 49) ctrlCreate ["RscEdit",-1];
  17.                                 _button ctrlSetText "Execute";
  18.                                 _button ctrlSetPosition [0.0823437 * safezoneW + safezoneX,0.082 * safezoneH + safezoneY,0.0464063 * safezoneW,0.022 * safezoneH];
  19.                                 _textbox ctrlSetPosition [0.0153125 * safezoneW + safezoneX,0.016 * safezoneH + safezoneY,0.180469 * safezoneW,0.055 * safezoneH];
  20.                                 _button ctrlSetBackgroundColor [0.8,0.5,0,1];
  21.                                 _textbox ctrlSetBackgroundColor [-1,-1,-1,0.75];
  22.                                 _textbox ctrlSetTextColor [1,1,1,1];
  23.                                 _button ctrlSetTextColor [1,1,1,1];
  24.                                 _button buttonSetAction "
  25.                                     _code = compile input_text7;
  26.                                     [] call _code;";
  27.                                 _button ctrlCommit 0;
  28.                                 _textbox ctrlCommit 0;
  29.                                 while { !isNull (findDisplay 49) } do {
  30.                                     input_text7 = ctrlText _textbox;
  31.                                     waitUntil { input_text7 != (ctrlText _textbox) || isNull (findDisplay 49) };
  32.                                     if (isNull (findDisplay 49)) exitWith {};
  33.                                 };
  34.                             };
  35.                         };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement