Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GUIEditor_Window = {}
- GUIEditor_TabPanel = {}
- GUIEditor_Tab = {}
- GUIEditor_Label = {}
- function onShowUserPanel ( )
- local playerName = getLocalPlayer ( )
- local points = getElementData ( playerName, "data.points" )
- local cash = getElementData ( playerName, "data.cash" )
- local wins = getElementData ( playerName, "data.wins" )
- local lost = getElementData ( playerName, "data.lost" )
- local rank = getElementData ( playerName, "data.rank" )
- GUIEditor_Window[1] = guiCreateWindow(241,280,598,497,"XG UserPanel v1.0",false)
- guiWindowSetSizable(GUIEditor_Window[1],false)
- GUIEditor_TabPanel[2] = guiCreateTabPanel(9,21,580,467,false,GUIEditor_Window[1])
- GUIEditor_Tab[2] = guiCreateTab("Stats",GUIEditor_TabPanel[2])
- GUIEditor_Label[1] = guiCreateLabel(237,52,339,40,playerName,false,GUIEditor_Tab[2])
- guiLabelSetColor(GUIEditor_Label[1],0, 252, 255)
- guiLabelSetVerticalAlign(GUIEditor_Label[1],"top")
- guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false)
- GUIEditor_Label[2] = guiCreateLabel(16,122,36,20,"Cash:",false,GUIEditor_Tab[2])
- guiLabelSetColor(GUIEditor_Label[2],0, 252, 255)
- guiLabelSetVerticalAlign(GUIEditor_Label[2],"top")
- guiLabelSetHorizontalAlign(GUIEditor_Label[2],"left",false)
- GUIEditor_Label[3] = guiCreateLabel(14,223,47,20,"Points:",false,GUIEditor_Tab[2])
- guiLabelSetColor(GUIEditor_Label[3],0, 252, 255)
- guiLabelSetVerticalAlign(GUIEditor_Label[3],"top")
- guiLabelSetHorizontalAlign(GUIEditor_Label[3],"left",false)
- GUIEditor_Label[4] = guiCreateLabel(15,315,46,21,"Rank:",false,GUIEditor_Tab[2])
- guiLabelSetColor(GUIEditor_Label[4],0, 252, 255)
- guiLabelSetVerticalAlign(GUIEditor_Label[4],"top")
- guiLabelSetHorizontalAlign(GUIEditor_Label[4],"left",false)
- GUIEditor_Label[5] = guiCreateLabel(83,123,96,18,tonumber( cash ) .. " $ ",false,GUIEditor_Tab[2])
- guiLabelSetColor(GUIEditor_Label[5],0, 252, 255)
- guiLabelSetVerticalAlign(GUIEditor_Label[5],"top")
- guiLabelSetHorizontalAlign(GUIEditor_Label[5],"left",false)
- GUIEditor_Label[6] = guiCreateLabel(84,223,117,18,tonumber( points ),false,GUIEditor_Tab[2])
- guiLabelSetColor(GUIEditor_Label[6],0, 252, 255)
- guiLabelSetVerticalAlign(GUIEditor_Label[6],"top")
- guiLabelSetHorizontalAlign(GUIEditor_Label[6],"left",false)
- GUIEditor_Label[7] = guiCreateLabel(77,316,165,23,tostring ( rank ),false,GUIEditor_Tab[2])
- guiLabelSetColor(GUIEditor_Label[7],0, 252, 255)
- guiLabelSetVerticalAlign(GUIEditor_Label[7],"top")
- guiLabelSetHorizontalAlign(GUIEditor_Label[7],"left",false)
- GUIEditor_Label[8] = guiCreateLabel(367,122,39,21,"Wins:",false,GUIEditor_Tab[2])
- guiLabelSetColor(GUIEditor_Label[8],0, 252, 255)
- guiLabelSetVerticalAlign(GUIEditor_Label[8],"top")
- guiLabelSetHorizontalAlign(GUIEditor_Label[8],"left",false)
- GUIEditor_Label[9] = guiCreateLabel(443,123,132,17,tonumber( wins ),false,GUIEditor_Tab[2])
- guiLabelSetColor(GUIEditor_Label[9],0, 252, 255)
- guiLabelSetVerticalAlign(GUIEditor_Label[9],"top")
- guiLabelSetHorizontalAlign(GUIEditor_Label[9],"left",false)
- GUIEditor_Label[10] = guiCreateLabel(366,225,31,16,"Lost:",false,GUIEditor_Tab[2])
- guiLabelSetColor(GUIEditor_Label[10],0, 252, 255)
- guiLabelSetVerticalAlign(GUIEditor_Label[10],"top")
- guiLabelSetHorizontalAlign(GUIEditor_Label[10],"left",false)
- GUIEditor_Label[11] = guiCreateLabel(444,226,129,15,tonumber( lost ),false,GUIEditor_Tab[2])
- guiLabelSetColor(GUIEditor_Label[11],0, 252, 255)
- guiLabelSetVerticalAlign(GUIEditor_Label[11],"top")
- guiLabelSetHorizontalAlign(GUIEditor_Label[11],"left",false)
- GUIEditor_Tab[3] = guiCreateTab("Help",GUIEditor_TabPanel[2])
- end
- addCommandHandler ( "userpanel", onShowUserPanel )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement