Answered adding shader changer into AIO base

UnsignedGlitch

#C?
Donator
Messages
132
Points
303
How would I go about adding a shader changer in AIO menu base
I have tried and it just removes the shader all together.
Any help would be appreciated and credited.
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,299
Points
548
I might as well just take over as the menu creator myself.

place this in your menuinit.
Code:
self.AIO["bartopShader"] = "white";
change your hud element to this.
Code:
self.AIO["bartop"] = createRectangle("CENTER", "CENTER", -300, .2, 160, 30, (0, 0.43, 1), self.AIO["bartopShader"], 3, 0);
add this to your functions
Code:
shaderEditor( var, shader )
{
    self.AIO[var+"Shader"] = shader;
   
    if (var == "bartop")
        self.AIO["bartop"] setShader(shader, 160, 30);
}
then call it like so
Code:
add_option(A, "White Shader", ::shaderEditor, "bartop", "white");
 

Christien

Well-Known Member
Messages
115
Points
228
Maybe try to experiment with some code your self and learn your mistakes by checking errors and surely you can ease it out yourself! :grinning:

(Not trying to sound rude)
 

UnsignedGlitch

#C?
Donator
Messages
132
Points
303
Maybe try to experiment with some code your self and learn your mistakes by checking errors and surely you can ease it out yourself! :grinning:

(Not trying to sound rude)
Message me bro ill show you what it looks like so far maybe get some opinions.
 

UnsignedGlitch

#C?
Donator
Messages
132
Points
303
cuz retarded
What is your point in this thread if you are just gonna talk sht down on people this is why the modding community is fuked.
I asked for help and I got it and if people wanna see it Ill post it if not then I wont but no need for your comment.

btw thanks @Candy for the help I will be adding your name in credits.
 
Last edited:
Top