Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function TDMPanel()
- --TDM Panel
- MainTDM_Window = guiCreateWindow(590, 329, 339, 184, "TDM Panel", false)
- guiWindowSetSizable(MainTDM_Window, false)
- guiSetVisible(MainTDM_Window, false)
- MainTDM_OpenButton = guiCreateButton(213, 26, 116, 31, "Open Window", false, MainTDM_Window)
- guiSetProperty(MainTDM_OpenButton, "NormalTextColour", "FFAAAAAA")
- MainTDM_CloseButton = guiCreateButton(213, 67, 116, 31, "Close", false, MainTDM_Window)
- guiSetProperty(MainTDM_CloseButton, "NormalTextColour", "FFAAAAAA")
- MainTDM_gridlist = guiCreateGridList(9, 26, 194, 148, false, MainTDM_Window)
- guiGridListAddColumn(MainTDM_gridlist, "Event Controls", 0.9)
- --Current Players Panel
- CurPlayers_Window = guiCreateWindow(590, 329, 339, 184, "Current Players", false)
- guiWindowSetSizable(CurPlayers_Window, false)
- guiSetVisible(CurPlayers_Window, false)
- CurPlayers_SetTeam = guiCreateButton(213, 26, 116, 31, "Set Team", false, CurPlayers_Window)
- guiSetProperty(CurPlayers_SetTeam, "NormalTextColour", "FFAAAAAA")
- CurPlayers_CloseButton = guiCreateButton(213, 67, 116, 31, "Close", false, CurPlayers_Window)
- guiSetProperty(CurPlayers_CloseButton, "NormalTextColour", "FFAAAAAA")
- CurPlayers_gridlist = guiCreateGridList(9, 26, 194, 148, false, CurPlayers_Window)
- guiGridListAddColumn(CurPlayers_gridlist, "Players", 0.9)
- --Current Rounds
- Round_Window = guiCreateWindow(558, 332, 223, 230, "Rounds Panel", false)
- guiWindowSetSizable(Round_Window, false)
- guiSetVisible(Round_Window, false)
- Round_CurrentRound = guiCreateLabel(14, 27, 199, 21, "Current Round: First Round", false, Round_Window)
- guiLabelSetHorizontalAlign(Round_CurrentRound, "center", false)
- guiLabelSetVerticalAlign(Round_CurrentRound, "center")
- Round_NextRound = guiCreateButton(10, 62, 89, 32, "Next Round", false, Round_Window)
- guiSetProperty(Round_NextRound, "NormalTextColour", "FFAAAAAA")
- Round_Close = guiCreateButton(126, 61, 87, 32, "Close", false, Round_Window)
- guiSetProperty(Round_Close, "NormalTextColour", "FFAAAAAA")
- Round_Team1 = guiCreateLabel(13, 104, 200, 16, "Team A: 0", false, Round_Window)
- Round_Team2 = guiCreateLabel(13, 130, 200, 16, "Team B: 0", false, Round_Window)
- Round_Requeriments = guiCreateLabel(13, 156, 200, 16, "Requeriments", false, Round_Window)
- Round_FinishDuel_Button = guiCreateButton(10, 182, 203, 32, "Finish the Duel", false, Round_Window)
- guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")
- -- Create Round
- CRound_Window = guiCreateWindow(487, 222, 292, 334, "Create a Round", false)
- guiWindowSetSizable(CRound_Window, false)
- guiSetVisible(CRound_Window, false)
- CRound_Label1 = guiCreateLabel(9, 24, 89, 24, "Time per Round", false, CRound_Window)
- guiLabelSetVerticalAlign(CRound_Label1, "center")
- CRound_edit_TpR = guiCreateEdit(218, 24, 56, 24, "", false, CRound_Window)
- CRound_Combox_TpR = guiCreateComboBox(108, 24, 100, 24, "", false, CRound_Window)
- guiComboBoxAddItem(CRound_Combox_TpR, "Miliseconds")
- guiComboBoxAddItem(CRound_Combox_TpR, "Seconds")
- guiComboBoxAddItem(CRound_Combox_TpR, "Minutes")
- guiComboBoxAddItem(CRound_Combox_TpR, "None")
- CRound_Label2 = guiCreateLabel(10, 58, 65, 22, "Set rounds", false, CRound_Window)
- guiLabelSetVerticalAlign(CRound_Label2, "center")
- CRound_edit_SR = guiCreateEdit(85, 58, 56, 24, "", false, CRound_Window)
- CRound_Label3 = guiCreateLabel(9, 90, 122, 22, "Time for start a round", false, CRound_Window)
- guiLabelSetVerticalAlign(CRound_Label3, "center")
- CRound_edit_TFSR = guiCreateEdit(234, 88, 40, 24, "", false, CRound_Window)
- CRound_combox_TFSR = guiCreateComboBox(134, 90, 90, 22, "", false, CRound_Window)
- guiComboBoxAddItem(CRound_combox_TFSR, "Miliseconds")
- guiComboBoxAddItem(CRound_combox_TFSR, "Seconds")
- guiComboBoxAddItem(CRound_combox_TFSR, "Minutes")
- guiComboBoxAddItem(CRound_combox_TFSR, "None")
- CRound_Label4 = guiCreateLabel(10, 184, 62, 22, "Respawn", false, CRound_Window)
- guiLabelSetVerticalAlign(CRound_Label4, "center")
- CRound_edit_Respawn = guiCreateEdit(85, 184, 71, 22, "", false, CRound_Window)
- Note = guiCreateLabel(166, 184, 107, 22, "0 = No respawn", false, CRound_Window)
- guiLabelSetVerticalAlign(Note, "center")
- CRound_RadioButton_LKP = guiCreateRadioButton(9, 122, 107, 24, "Limit kill Points", false, CRound_Window)
- guiRadioButtonSetSelected(CRound_RadioButton_LKP, true)
- CRound_edit_LKP = guiCreateEdit(151, 122, 56, 24, "", false, CRound_Window)
- CRound_RadioButton_LDP = guiCreateRadioButton(9, 150, 132, 24, "Limit Damage Points", false, CRound_Window)
- CRound_edit_LDP = guiCreateEdit(151, 150, 56, 24, "", false, CRound_Window)
- CRound_Label_NamePorT1 = guiCreateLabel(9, 225, 157, 21, "Player 1 or Team 1", false, CRound_Window)
- CRound_Button_PorT1 = guiCreateButton(174, 226, 99, 20, "Set", false, CRound_Window)
- guiSetProperty(CRound_Button_PorT1, "NormalTextColour", "FFAAAAAA")
- CRound_Label_NamePorT2 = guiCreateLabel(9, 256, 157, 21, "Player 2 or Team 2", false, CRound_Window)
- CRound_Button_PorT2 = guiCreateButton(174, 256, 99, 20, "Set", false, CRound_Window)
- guiSetProperty(CRound_Button_PorT2, "NormalTextColour", "FFAAAAAA")
- CRound_Button_CreateRound = guiCreateButton(13, 288, 82, 27, "Create Round", false, CRound_Window)
- guiSetProperty(CRound_Button_CreateRound, "NormalTextColour", "FFAAAAAA")
- CRound_Button_Close = guiCreateButton(191, 288, 82, 27, "Close", false, CRound_Window)
- guiSetProperty(CRound_Button_Close, "NormalTextColour", "FFAAAAAA")
- --Choose Player
- C_Window = guiCreateWindow(543, 300, 214, 286, "Choose Player or Team", false)
- guiWindowSetSizable(C_Window, false)
- guiSetVisible(C_Window, false)
- C_Gridlist = guiCreateGridList(9, 61, 196, 176, false, C_Window)
- C_Combox = guiCreateComboBox(10, 25, 195, 26, "", false, C_Window)
- guiComboBoxAddItem(C_Combox, "Player")
- guiComboBoxAddItem(C_Combox, "Team")
- C_Button_Select = guiCreateButton(9, 247, 83, 29, "Select", false, C_Window)
- guiSetProperty(C_Button_Select, "NormalTextColour", "FFAAAAAA")
- C_Button_Close = guiCreateButton(123, 247, 83, 29, "Close", false, C_Window)
- guiSetProperty(C_Button_Close, "NormalTextColour", "FFAAAAAA")
- --EventHandlers TDM Panel
- --EventHandlers Current Players Panel
- --EventHandlers Create Round
- --EventHandlers Current Rounds
- --EventHandlers Choose Player
- end
- addEventHandler("onClientResourceStart", resourceRoot, TDMPanel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement