Resulcan Posted July 15, 2020 Share Posted July 15, 2020 local screenW, screenH = guiGetScreenSize() addEventHandler("onClientRender", root, function() dxDrawRectangle((screenW - 666) / 2, (screenH - 450) / 2, 666, 450, tocolor(0, 0, 0, 203), false) dxDrawRectangle(387, 190, 666, 35, tocolor(135, 135, 135, 218), false) dxDrawText("Support Chat", 387, 190, 1053, 225, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawRectangle(393, 229, 473, 441, tocolor(14, 14, 14, 255), false) dxDrawRectangle(873, 229, 170, 441, tocolor(14, 14, 14, 255), false) dxDrawLine(873, 259, 1043, 259, tocolor(255, 255, 255, 255), 1, false) dxDrawText("Articles That Might Help Yours", 872, 229, 1043, 259, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(397, 634, 397, 26, tocolor(255, 255, 255, 255), false) dxDrawRectangle(804, 629, 59, 36, tocolor(8, 110, 3, 255), false) dxDrawText("Sent", 803, 628, 863, 665, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(942, 190, 111, 35, tocolor(32, 32, 32, 203), false) end ) function()----------------------------------------Opening the Next Panel by clicking the button dxDrawRectangle((screenW - 666) / 2, (screenH - 450) / 2, 666, 450, tocolor(0, 0, 0, 203), false) dxDrawRectangle(387, 190, 666, 35, tocolor(135, 135, 135, 218), false) dxDrawText("Support Chat(No English)", 387, 190, 1053, 225, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawRectangle(393, 229, 473, 441, tocolor(14, 14, 14, 255), false) dxDrawRectangle(873, 229, 170, 441, tocolor(14, 14, 14, 255), false) dxDrawLine(873, 259, 1043, 259, tocolor(255, 255, 255, 255), 1, false) dxDrawText("Articles That Might Help Yours", 872, 229, 1043, 259, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(397, 634, 397, 26, tocolor(255, 255, 255, 255), false) dxDrawRectangle(804, 629, 59, 36, tocolor(8, 110, 3, 255), false) dxDrawText("Sent", 803, 628, 863, 665, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(942, 190, 111, 35, tocolor(32, 32, 32, 203), false) end function showClientImage() local Kapa = guiCreateStaticImage( 1015, 190, 35, 35, "files/close_button.png", false ) local help = guiCreateStaticImage( 945, 190, 35, 35, "files/help_button.png", false ) local swic = guiCreateStaticImage( 980, 190, 35, 35, "files/switch_button.png", false )----------------------------------------Opening the Next Panel by clicking the button end addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), showClientImage ) Link to comment
N3xT Posted July 15, 2020 Share Posted July 15, 2020 Please use the code tool next time to share your codes, so it would be easier for others to read and understand your codes. I edited it for you this time. Also, please explain your issue or what you're trying to achieve properly and on the topic, not hidden within your codes because it's really hard to notice. For your request, you could use these: onClientGUIClick guiSetVisible Link to comment
Resulcan Posted July 15, 2020 Author Share Posted July 15, 2020 59 minutes ago, N3xT said: Please use the code tool next time to share your codes, so it would be easier for others to read and understand your codes. I edited it for you this time. Also, please explain your issue or what you're trying to achieve properly and on the topic, not hidden within your codes because it's really hard to notice. For your request, you could use these: onClientGUIClick guiSetVisible local swic = guiCreateStaticImage( 980, 190, 35, 35, "files/switch_button.png", false ) ----------------------------------Clicking the button function()----------------------------------------Opening the Next Panel by clicking the button dxDrawRectangle((screenW - 666) / 2, (screenH - 450) / 2, 666, 450, tocolor(0, 0, 0, 203), false)----------------------------------I want the panel to open Link to comment
Sisqo0 Posted July 15, 2020 Share Posted July 15, 2020 you can try this local swic = guiCreateStaticImage( 980, 190, 35, 35, "files/switch_button.png", false ) ----------------------------------Clicking the button function openpanel()----------------------------------------Opening the Next Panel by clicking the button dxDrawRectangle((screenW - 666) / 2, (screenH - 450) / 2, 666, 450, tocolor(0, 0, 0, 203), false)----------------------------------I want the panel to open end addEventHandler ( "onClientGUIClick", swic, openpanel, false ) Link to comment
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