MRXBBC Posted June 13, 2020 Posted June 13, 2020 (edited) Gostaria de saber um meio para detectar se a window do dgs está fechada ou n, fiz um codigo mas n deu certo, alguem pode me dá uma luz? Edit1: To utilizando o botão que já vem nativo na window function tela( ) window = dgsCreateWindow(x*0.3,y*0.3,x*0.3,y*0.4,"Token - ServerName",true) editBox = dgsCreateEdit( x*0.35, y*0.4, x*0.3, y*0.05, "Digite Aqui", true, window ) qiw = dgsCreateComboBox(x*0.25, y*0.2, x*0.5, y*0.05, "Selecione seu atendimento" , true, window) button= dgsCreateButton( x*0.4, y*0.6, x*0.2, y*0.1, "Enviar", true,window ) dgsComboBoxAddItem(qiw, "Suporte") dgsComboBoxAddItem(qiw, "Denúncia") dgsComboBoxAddItem(qiw, "Bugs") dgsComboBoxAddItem(qiw, "Compras de Vip") dgsWindowSetSizable ( window, false ) end function abrir( ) state = dgsWindowGetCloseButtonEnabled(window) if state == true then showChat(false) showCursor(true) addEventHandler ( "onClientRender", root, tela ) else showChat(true) showCursor(false) removeEventHandler ( "onClientRender", root, tela ) end end addCommandHandler ( "denunciar", abrir) Edited June 13, 2020 by MRXBBC
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now