1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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? Premium Member Donator

    121
    61
    303
    Credits:
    642
    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,006
    686
    398
    Credits:
    5,525
    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 Trial Moderator Staff Member

    101
    67
    128
    Credits:
    418
    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? Premium Member Donator

    121
    61
    303
    Credits:
    642
    Already got it lol
     
    Christien likes this.
  5. UnsignedGlitch

    UnsignedGlitch #C? Premium Member Donator

    121
    61
    303
    Credits:
    642
    Message me bro ill show you what it looks like so far maybe get some opinions.
     
  6. Candy

    Candy G59 Terrorist Donator

    1,006
    686
    398
    Credits:
    5,525
    Why not show it publicly...
     
  7. DF_AUS

    DF_AUS Head Moderator Staff Member Head Staff Team Donator

    498
    807
    303
    Credits:
    4,953
    Question answered:
     
    UnsignedGlitch likes this.
  8. UnsignedGlitch

    UnsignedGlitch #C? Premium Member Donator

    121
    61
    303
    Credits:
    642
    Not sure if anybody would care to see it
     
  9. UnsignedGlitch

    UnsignedGlitch #C? Premium Member Donator

    121
    61
    303
    Credits:
    642
    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,006
    686
    398
    Credits:
    5,525
    Better to post publicily if you're wanting opinions rather than just one person's opinion.
     
    UnsignedGlitch likes this.

Share This Page