Answered adding shader changer into AIO base

Discussion in 'Call of Duty: Black Ops 2 Answered Questions' started by UnsignedGlitch, Jan 25, 2018.

  1. UnsignedGlitch

    UnsignedGlitch #C? Donator

    127
    62
    303
    Credits:
    721
    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.
     
    Christien likes this.
  2. candy

    candy G59 Terrorist Donator

    1,268
    832
    398
    Credits:
    7,153
    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");
    [​IMG]
     
    DF_AUS and Christien like this.
  3. Christien

    Christien Well-Known Member

    113
    72
    228
    Credits:
    498
    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 likes this.
  4. UnsignedGlitch

    UnsignedGlitch #C? Donator

    127
    62
    303
    Credits:
    721
    Already got it lol
     
    Christien likes this.
  5. UnsignedGlitch

    UnsignedGlitch #C? Donator

    127
    62
    303
    Credits:
    721
    Message me bro ill show you what it looks like so far maybe get some opinions.
     
  6. candy

    candy G59 Terrorist Donator

    1,268
    832
    398
    Credits:
    7,153
    Why not show it publicly...
     
  7. DF_AUS

    DF_AUS Head Moderator Staff Member Head Staff Team Donator

    561
    843
    303
    Credits:
    5,511
    Question answered:
     
    UnsignedGlitch likes this.
  8. UnsignedGlitch

    UnsignedGlitch #C? Donator

    127
    62
    303
    Credits:
    721
    Not sure if anybody would care to see it
     
  9. UnsignedGlitch

    UnsignedGlitch #C? Donator

    127
    62
    303
    Credits:
    721
    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: Jan 27, 2018
  10. candy

    candy G59 Terrorist Donator

    1,268
    832
    398
    Credits:
    7,153
    Better to post publicily if you're wanting opinions rather than just one person's opinion.
     
    UnsignedGlitch likes this.

Share This Page