Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.54 KB | None | 0 0
  1. GUIEditor_Window = {}
  2. GUIEditor_TabPanel = {}
  3. GUIEditor_Tab = {}
  4. GUIEditor_Label = {}
  5.  
  6. function onShowUserPanel ( )
  7.  
  8. local playerName = getLocalPlayer ( )
  9. local points = getElementData ( playerName, "data.points" )
  10. local cash = getElementData ( playerName, "data.cash" )
  11. local wins = getElementData ( playerName, "data.wins" )
  12. local lost = getElementData ( playerName, "data.lost" )
  13. local rank = getElementData ( playerName, "data.rank" )
  14. GUIEditor_Window[1] = guiCreateWindow(241,280,598,497,"XG UserPanel v1.0",false)
  15. guiWindowSetSizable(GUIEditor_Window[1],false)
  16. GUIEditor_TabPanel[2] = guiCreateTabPanel(9,21,580,467,false,GUIEditor_Window[1])
  17. GUIEditor_Tab[2] = guiCreateTab("Stats",GUIEditor_TabPanel[2])
  18. GUIEditor_Label[1] = guiCreateLabel(237,52,339,40,playerName,false,GUIEditor_Tab[2])
  19. guiLabelSetColor(GUIEditor_Label[1],0, 252, 255)
  20. guiLabelSetVerticalAlign(GUIEditor_Label[1],"top")
  21. guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false)
  22. GUIEditor_Label[2] = guiCreateLabel(16,122,36,20,"Cash:",false,GUIEditor_Tab[2])
  23. guiLabelSetColor(GUIEditor_Label[2],0, 252, 255)
  24. guiLabelSetVerticalAlign(GUIEditor_Label[2],"top")
  25. guiLabelSetHorizontalAlign(GUIEditor_Label[2],"left",false)
  26. GUIEditor_Label[3] = guiCreateLabel(14,223,47,20,"Points:",false,GUIEditor_Tab[2])
  27. guiLabelSetColor(GUIEditor_Label[3],0, 252, 255)
  28. guiLabelSetVerticalAlign(GUIEditor_Label[3],"top")
  29. guiLabelSetHorizontalAlign(GUIEditor_Label[3],"left",false)
  30. GUIEditor_Label[4] = guiCreateLabel(15,315,46,21,"Rank:",false,GUIEditor_Tab[2])
  31. guiLabelSetColor(GUIEditor_Label[4],0, 252, 255)
  32. guiLabelSetVerticalAlign(GUIEditor_Label[4],"top")
  33. guiLabelSetHorizontalAlign(GUIEditor_Label[4],"left",false)
  34. GUIEditor_Label[5] = guiCreateLabel(83,123,96,18,tonumber( cash ) .. " $ ",false,GUIEditor_Tab[2])
  35. guiLabelSetColor(GUIEditor_Label[5],0, 252, 255)
  36. guiLabelSetVerticalAlign(GUIEditor_Label[5],"top")
  37. guiLabelSetHorizontalAlign(GUIEditor_Label[5],"left",false)
  38. GUIEditor_Label[6] = guiCreateLabel(84,223,117,18,tonumber( points ),false,GUIEditor_Tab[2])
  39. guiLabelSetColor(GUIEditor_Label[6],0, 252, 255)
  40. guiLabelSetVerticalAlign(GUIEditor_Label[6],"top")
  41. guiLabelSetHorizontalAlign(GUIEditor_Label[6],"left",false)
  42. GUIEditor_Label[7] = guiCreateLabel(77,316,165,23,tostring ( rank ),false,GUIEditor_Tab[2])
  43. guiLabelSetColor(GUIEditor_Label[7],0, 252, 255)
  44. guiLabelSetVerticalAlign(GUIEditor_Label[7],"top")
  45. guiLabelSetHorizontalAlign(GUIEditor_Label[7],"left",false)
  46. GUIEditor_Label[8] = guiCreateLabel(367,122,39,21,"Wins:",false,GUIEditor_Tab[2])
  47. guiLabelSetColor(GUIEditor_Label[8],0, 252, 255)
  48. guiLabelSetVerticalAlign(GUIEditor_Label[8],"top")
  49. guiLabelSetHorizontalAlign(GUIEditor_Label[8],"left",false)
  50. GUIEditor_Label[9] = guiCreateLabel(443,123,132,17,tonumber( wins ),false,GUIEditor_Tab[2])
  51. guiLabelSetColor(GUIEditor_Label[9],0, 252, 255)
  52. guiLabelSetVerticalAlign(GUIEditor_Label[9],"top")
  53. guiLabelSetHorizontalAlign(GUIEditor_Label[9],"left",false)
  54. GUIEditor_Label[10] = guiCreateLabel(366,225,31,16,"Lost:",false,GUIEditor_Tab[2])
  55. guiLabelSetColor(GUIEditor_Label[10],0, 252, 255)
  56. guiLabelSetVerticalAlign(GUIEditor_Label[10],"top")
  57. guiLabelSetHorizontalAlign(GUIEditor_Label[10],"left",false)
  58. GUIEditor_Label[11] = guiCreateLabel(444,226,129,15,tonumber( lost ),false,GUIEditor_Tab[2])
  59. guiLabelSetColor(GUIEditor_Label[11],0, 252, 255)
  60. guiLabelSetVerticalAlign(GUIEditor_Label[11],"top")
  61. guiLabelSetHorizontalAlign(GUIEditor_Label[11],"left",false)
  62. GUIEditor_Tab[3] = guiCreateTab("Help",GUIEditor_TabPanel[2])
  63.  
  64. end
  65. addCommandHandler ( "userpanel", onShowUserPanel )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement