Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1.  
  2. _display = findDisplay 46 createDisplay "RscDisplayEmpty";
  3.  
  4. pwInput = _display ctrlCreate ["RscEditMulti", 607];
  5. pwInput ctrlSetPosition [0.25,0.35,0.5,0.25];
  6. pwInput ctrlSetBackgroundColor [0,0,0,0.7];
  7. pwInput ctrlCommit 0;
  8.  
  9.  
  10. _confirmBtn = _display ctrlCreate ["RscButton", 608];
  11. _confirmBtn ctrlSetPosition [0.25,0.6,0.5,0.05];
  12. _confirmBtn ctrlSetBackgroundColor [0,0,0,1];
  13. _confirmBtn ctrlSetText "Enter";
  14. _confirmBtn ctrlSetFont "PuristaMedium";
  15. _confirmBtn ctrlSetEventHandler ["MouseButtonUp",
  16. _confirmBtn ctrlCommit 0;
  17. '
  18. [ctrlText pwInput] spawn p_checkPassedArguments;
  19. '];
  20.  
  21.  
  22.  
  23. p_checkPassedArguments = {
  24. _input = _this select 0;
  25. if ( _input == "Test" ) then { player setdamage 1; } else {hint "fail";};
  26.  
  27. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement