Answered adding shader changer into AIO base

UnsignedGlitch

#C?
Donator
Messages
137
Reaction score
62
Points
878
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,327
Reaction score
763
Points
973
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");

7a22498fbd1663733551cc37d753ecfc.gif
 

Christien

Insane-Known Member
Messages
113
Reaction score
70
Points
378
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
137
Reaction score
62
Points
878
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
137
Reaction score
62
Points
878
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