Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.45 KB | None | 0 0
  1. function TDMPanel()
  2.     --TDM Panel
  3.     MainTDM_Window = guiCreateWindow(590, 329, 339, 184, "TDM Panel", false)
  4.     guiWindowSetSizable(MainTDM_Window, false)
  5.     guiSetVisible(MainTDM_Window, false)
  6.    
  7.     MainTDM_OpenButton = guiCreateButton(213, 26, 116, 31, "Open Window", false, MainTDM_Window)
  8.     guiSetProperty(MainTDM_OpenButton, "NormalTextColour", "FFAAAAAA")
  9.     MainTDM_CloseButton = guiCreateButton(213, 67, 116, 31, "Close", false, MainTDM_Window)
  10.     guiSetProperty(MainTDM_CloseButton, "NormalTextColour", "FFAAAAAA")
  11.     MainTDM_gridlist = guiCreateGridList(9, 26, 194, 148, false, MainTDM_Window)
  12.     guiGridListAddColumn(MainTDM_gridlist, "Event Controls", 0.9)    
  13.    
  14.     --Current Players Panel
  15.    
  16.     CurPlayers_Window = guiCreateWindow(590, 329, 339, 184, "Current Players", false)
  17.     guiWindowSetSizable(CurPlayers_Window, false)
  18.     guiSetVisible(CurPlayers_Window, false)
  19.    
  20.     CurPlayers_SetTeam = guiCreateButton(213, 26, 116, 31, "Set Team", false, CurPlayers_Window)
  21.     guiSetProperty(CurPlayers_SetTeam, "NormalTextColour", "FFAAAAAA")
  22.     CurPlayers_CloseButton = guiCreateButton(213, 67, 116, 31, "Close", false, CurPlayers_Window)
  23.     guiSetProperty(CurPlayers_CloseButton, "NormalTextColour", "FFAAAAAA")
  24.     CurPlayers_gridlist = guiCreateGridList(9, 26, 194, 148, false, CurPlayers_Window)
  25.     guiGridListAddColumn(CurPlayers_gridlist, "Players", 0.9)
  26.    
  27.     --Current Rounds
  28.        
  29.     Round_Window = guiCreateWindow(558, 332, 223, 230, "Rounds Panel", false)
  30.     guiWindowSetSizable(Round_Window, false)
  31.     guiSetVisible(Round_Window, false)
  32.  
  33.     Round_CurrentRound = guiCreateLabel(14, 27, 199, 21, "Current Round: First Round", false, Round_Window)
  34.     guiLabelSetHorizontalAlign(Round_CurrentRound, "center", false)
  35.     guiLabelSetVerticalAlign(Round_CurrentRound, "center")
  36.     Round_NextRound = guiCreateButton(10, 62, 89, 32, "Next Round", false, Round_Window)
  37.     guiSetProperty(Round_NextRound, "NormalTextColour", "FFAAAAAA")
  38.     Round_Close = guiCreateButton(126, 61, 87, 32, "Close", false, Round_Window)
  39.     guiSetProperty(Round_Close, "NormalTextColour", "FFAAAAAA")
  40.     Round_Team1 = guiCreateLabel(13, 104, 200, 16, "Team A: 0", false, Round_Window)
  41.     Round_Team2 = guiCreateLabel(13, 130, 200, 16, "Team B: 0", false, Round_Window)
  42.     Round_Requeriments = guiCreateLabel(13, 156, 200, 16, "Requeriments", false, Round_Window)
  43.     Round_FinishDuel_Button = guiCreateButton(10, 182, 203, 32, "Finish the Duel", false, Round_Window)
  44.     guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")
  45.  
  46.     -- Create Round
  47.    
  48.     CRound_Window = guiCreateWindow(487, 222, 292, 334, "Create a Round", false)
  49.     guiWindowSetSizable(CRound_Window, false)
  50.     guiSetVisible(CRound_Window, false)
  51.  
  52.     CRound_Label1 = guiCreateLabel(9, 24, 89, 24, "Time per Round", false, CRound_Window)
  53.     guiLabelSetVerticalAlign(CRound_Label1, "center")
  54.     CRound_edit_TpR = guiCreateEdit(218, 24, 56, 24, "", false, CRound_Window)
  55.     CRound_Combox_TpR = guiCreateComboBox(108, 24, 100, 24, "", false, CRound_Window)
  56.     guiComboBoxAddItem(CRound_Combox_TpR, "Miliseconds")
  57.     guiComboBoxAddItem(CRound_Combox_TpR, "Seconds")
  58.     guiComboBoxAddItem(CRound_Combox_TpR, "Minutes")
  59.     guiComboBoxAddItem(CRound_Combox_TpR, "None")
  60.    
  61.     CRound_Label2 = guiCreateLabel(10, 58, 65, 22, "Set rounds", false, CRound_Window)
  62.     guiLabelSetVerticalAlign(CRound_Label2, "center")
  63.     CRound_edit_SR = guiCreateEdit(85, 58, 56, 24, "", false, CRound_Window)
  64.    
  65.     CRound_Label3 = guiCreateLabel(9, 90, 122, 22, "Time for start a round", false, CRound_Window)
  66.     guiLabelSetVerticalAlign(CRound_Label3, "center")
  67.     CRound_edit_TFSR = guiCreateEdit(234, 88, 40, 24, "", false, CRound_Window)
  68.     CRound_combox_TFSR = guiCreateComboBox(134, 90, 90, 22, "", false, CRound_Window)
  69.     guiComboBoxAddItem(CRound_combox_TFSR, "Miliseconds")
  70.     guiComboBoxAddItem(CRound_combox_TFSR, "Seconds")
  71.     guiComboBoxAddItem(CRound_combox_TFSR, "Minutes")
  72.     guiComboBoxAddItem(CRound_combox_TFSR, "None")
  73.    
  74.     CRound_Label4 = guiCreateLabel(10, 184, 62, 22, "Respawn", false, CRound_Window)
  75.     guiLabelSetVerticalAlign(CRound_Label4, "center")
  76.     CRound_edit_Respawn = guiCreateEdit(85, 184, 71, 22, "", false, CRound_Window)
  77.     Note = guiCreateLabel(166, 184, 107, 22, "0 = No respawn", false, CRound_Window)
  78.     guiLabelSetVerticalAlign(Note, "center")
  79.    
  80.     CRound_RadioButton_LKP = guiCreateRadioButton(9, 122, 107, 24, "Limit kill Points", false, CRound_Window)
  81.     guiRadioButtonSetSelected(CRound_RadioButton_LKP, true)
  82.     CRound_edit_LKP = guiCreateEdit(151, 122, 56, 24, "", false, CRound_Window)
  83.    
  84.     CRound_RadioButton_LDP = guiCreateRadioButton(9, 150, 132, 24, "Limit Damage Points", false, CRound_Window)
  85.     CRound_edit_LDP = guiCreateEdit(151, 150, 56, 24, "", false, CRound_Window)
  86.    
  87.     CRound_Label_NamePorT1 = guiCreateLabel(9, 225, 157, 21, "Player 1 or Team 1", false, CRound_Window)
  88.     CRound_Button_PorT1 = guiCreateButton(174, 226, 99, 20, "Set", false, CRound_Window)
  89.     guiSetProperty(CRound_Button_PorT1, "NormalTextColour", "FFAAAAAA")
  90.    
  91.     CRound_Label_NamePorT2 = guiCreateLabel(9, 256, 157, 21, "Player 2 or Team 2", false, CRound_Window)
  92.     CRound_Button_PorT2 = guiCreateButton(174, 256, 99, 20, "Set", false, CRound_Window)
  93.     guiSetProperty(CRound_Button_PorT2, "NormalTextColour", "FFAAAAAA")
  94.    
  95.     CRound_Button_CreateRound = guiCreateButton(13, 288, 82, 27, "Create Round", false, CRound_Window)
  96.     guiSetProperty(CRound_Button_CreateRound, "NormalTextColour", "FFAAAAAA")
  97.     CRound_Button_Close = guiCreateButton(191, 288, 82, 27, "Close", false, CRound_Window)
  98.     guiSetProperty(CRound_Button_Close, "NormalTextColour", "FFAAAAAA")
  99.    
  100.     --Choose Player
  101.    
  102.     C_Window = guiCreateWindow(543, 300, 214, 286, "Choose Player or Team", false)
  103.     guiWindowSetSizable(C_Window, false)
  104.     guiSetVisible(C_Window, false)
  105.  
  106.     C_Gridlist = guiCreateGridList(9, 61, 196, 176, false, C_Window)
  107.    
  108.     C_Combox = guiCreateComboBox(10, 25, 195, 26, "", false, C_Window)
  109.     guiComboBoxAddItem(C_Combox, "Player")
  110.     guiComboBoxAddItem(C_Combox, "Team")
  111.    
  112.     C_Button_Select = guiCreateButton(9, 247, 83, 29, "Select", false, C_Window)
  113.     guiSetProperty(C_Button_Select, "NormalTextColour", "FFAAAAAA")
  114.     C_Button_Close = guiCreateButton(123, 247, 83, 29, "Close", false, C_Window)
  115.     guiSetProperty(C_Button_Close, "NormalTextColour", "FFAAAAAA")
  116.  
  117.    
  118.     --EventHandlers TDM Panel
  119.    
  120.     --EventHandlers Current Players Panel
  121.    
  122.     --EventHandlers Create Round
  123.    
  124.     --EventHandlers Current Rounds
  125.    
  126.     --EventHandlers Choose Player
  127.    
  128. end
  129. addEventHandler("onClientResourceStart", resourceRoot, TDMPanel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement