Jump to content

Open Other Panel With DX Button Rectangle


ThiagoyBlaCk

Recommended Posts

Hi, I'm new to script, and I need help, I wanted to know how I can open another dx panel, over the first, using a dx button

example

First Panel

 

function test()
        dxDrawLine(x*94 - 1, y*207 - 1, x*94 - 1, y*439, tocolor(255, 255, 255, alfa), 1, false)
        dxDrawLine(x*261, y*207 - 1, x*94 - 1, y*207 - 1, tocolor(255, 255, 255, alfa), 1, false)
        dxDrawLine(x*94 - 1, y*439, x*261, y*439, tocolor(255, 255, 255, alfa), 1, false)
        dxDrawLine(x*261, y*439, x*261, y*207 - 1, tocolor(255, 255, 255, alfa), 1, false)
        dxDrawRectangle(x*94, y*207, x*166, y*232, tocolor(0, 0, 0, alfa), false)    I wanted to click here, then it will open the second panel dx over the first one

end

Second Panel

function test2()
        dxDrawLine(x*94 - 1, y*207 - 1, x*94 - 1, y*439, tocolor(255, 255, 255, alfa), 1, false)
        dxDrawLine(x*261, y*207 - 1, x*94 - 1, y*207 - 1, tocolor(255, 255, 255, alfa), 1, false)
        dxDrawLine(x*94 - 1, y*439, x*261, y*439, tocolor(255, 255, 255, alfa), 1, false)
        dxDrawLine(x*261, y*439, x*261, y*207 - 1, tocolor(255, 255, 255, alfa), 1, false)
        dxDrawRectangle(x*94, y*207, x*166, y*232, tocolor(0, 0, 0, alfa), false) 

end

 

I'm Brazilian Sorry For The Language Errors

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...