Guest User

Untitled

a guest
Jan 22nd, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.52 KB | None | 0 0
  1. local GUItest = {};
  2.  
  3. // Main window
  4. GUItest.window <- GUIWindow();
  5. GUItest.window.setParent(logging_image.getName()); // this you don't know.
  6. GUItest.window.setPosition(screen[0]/2-230, screen[1]/2-85, false);
  7. GUItest.window.setSize(460.0, 170.0, false);
  8. GUItest.window.setText("Login");
  9. GUItest.window.setVisible(false);
  10. GUItest.windowshown <- false;
  11.  
  12. // Main text
  13. GUItest.text <- GUIText();
  14. GUItest.text.setParent(GUItest.window.getName());
  15. GUItest.text.setPosition(20.0, 10.0, false);
  16. GUItest.text.setText("Welcome to Broken RolePlay, please login to your account!");
  17.  
  18. // Username text
  19. GUItest.usernamedesc <- GUIText();
  20. GUItest.usernamedesc.setParent(GUItest.window.getName());
  21. GUItest.usernamedesc.setPosition(20.0, 42.0, false);
  22. GUItest.usernamedesc.setSize(10.0, 10.0, false);
  23. GUItest.usernamedesc.setText("Username:");
  24. //GUItest.usernamedesc.setProperty("Font", "calibrib#5#1");
  25.  
  26. // Username edit box
  27. GUItest.username <- GUIEditBox();
  28. GUItest.username.setParent(GUItest.window.getName());
  29. GUItest.username.setPosition(95.0, 40.0, false);
  30. GUItest.username.setSize(350.0, 20.0, false);
  31. //GUItest.username.setText(getPlayerName(getLocalPlayer()));  
  32. //GUItest.username.setProperty("ReadOnly", "true");
  33. //GUItest.username.setProperty("Disabled", "true");
  34. //GUItest.username.setProperty("ReadOnlyBGColour", "C4C4C4FF");
  35. //GUItest.username.setProperty("Font", "calibri");
  36. //GUItest.username.setProperty("SelectedTextColour", "FF0000FF");
  37.  
  38. // Password text
  39. GUItest.passworddesc <- GUIText();
  40. GUItest.passworddesc.setParent(GUItest.window.getName());
  41. GUItest.passworddesc.setPosition(20.0, 72.0, false);
  42. GUItest.passworddesc.setText("Password:");
  43. //GUItest.passworddesc.setProperty("Font", "calibrib#5#1");
  44.  
  45. // Password edit box
  46. GUItest.password <- GUIEditBox();
  47. GUItest.password.setParent(GUItest.window.getName());
  48. GUItest.password.setPosition(95.0, 70.0, false);
  49. GUItest.password.setSize(350.0, 20.0, false);
  50. GUItest.password.setProperty("MaskText", "true");
  51. GUItest.password.setProperty("BlinkCaret", "true");
  52. GUItest.password.setProperty("BlinkCaretTimeout", "1.0");
  53. //GUItest.password.setProperty("Font", "calibri");
  54. GUItest.password.setProperty("SelectedTextColour", "FF0000FF");
  55.  
  56. // Login button
  57. GUItest.button <- GUIButton();
  58. GUItest.button.setParent(GUItest.window.getName());
  59. GUItest.button.setPosition(145.0, 110.0, false);
  60. GUItest.button.setSize(170.0, 30.0, false);
  61. GUItest.button.setText("Login");
  62. GUItest.button.setProperty("NormalTextColour", "FFFFFFFF");
  63. local button_login = GUItest.button.getName();
Add Comment
Please, Sign In to add comment