Jump to content

GUI related question


Bilal135

Recommended Posts

Posted

Is it possible to set gui's alpha to 0 but to keep other things like button visible? I used guieditor and it will change everything's alpha to 0 if I set the window's alpha to 0.

Posted
Is it possible to set gui's alpha to 0 but to keep other things like button visible? I used guieditor and it will change everything's alpha to 0 if I set the window's alpha to 0.

Its not possible because gui element takes parent's alpha

Posted

Take a look at SAUR's login panel:

ONff5Xm.png

It uses gui elements like button and editbox etc, but there is no gui window. It means that it is possible but I dont know how to make it work.

Posted
Take a look at SAUR's login panel:

ONff5Xm.png

It uses gui elements like button and editbox etc, but there is no gui window. It means that it is possible but I dont know how to make it work.

habibi its not ,

he use dxDrawRectangle as background ,the button used as free elemnt without parent,

simple example :

addEventHandler("onClientRender",root,function() 
    dxDrawRectangle(0,0,300,300,tocolor(0,0,0,150),false) 
    guiCreateButton(70,70,100,100,"Look",false) 
end) 

Posted (edited)

It uses gui elements like button and editbox etc, but there is no gui window. It means that it is possible but I dont know how to make it work.

It's a dxGUI (dx rectangle) with normal edit box and buttons.

Edit sorry didn't see Oscar reply.

Edited by Guest
Posted
Take a look at SAUR's login panel:

ONff5Xm.png

It uses gui elements like button and editbox etc, but there is no gui window. It means that it is possible but I dont know how to make it work.

habibi its not ,

he use dxDrawRectangle as background ,the button used as free elemnt without parent,

simple example :

addEventHandler("onClientRender",root,function() 
    dxDrawRectangle(0,0,300,300,tocolor(0,0,0,150),false) 
    guiCreateButton(70,70,100,100,"Look",false) 
end) 

Dude, don't put guiCreateButton inside of onClientRender D:

Posted

Okay guys, another question.

mta-screen_2016-06-26_19-39-38.png

That gui ^^ is different than MTA's default ones. The question is, is that pure DX or some script that auto-converts / makes it like that?

Posted (edited)
Take a look at SAUR's login panel:

ONff5Xm.png

It uses gui elements like button and editbox etc, but there is no gui window. It means that it is possible but I dont know how to make it work.

habibi its not ,

he use dxDrawRectangle as background ,the button used as free elemnt without parent,

simple example :

addEventHandler("onClientRender",root,function() 
    dxDrawRectangle(0,0,300,300,tocolor(0,0,0,150),false) 
    guiCreateButton(70,70,100,100,"Look",false) 
end) 

Dude, don't put guiCreateButton inside of onClientRender D:

omg i forgot it because I had to go , xD

Edited by Guest
Posted (edited)
Okay guys, another question.

mta-screen_2016-06-26_19-39-38.png

That gui ^^ is different than MTA's default ones. The question is, is that pure DX or some script that auto-converts / makes it like that?

it's only theam of mta u can't convet the normal gui to this one for players they have to select this them from setting

Edited by Guest

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...