Post: Changing background shader?
10-30-2015, 04:41 AM #1
KrazyKandy
I am error
(adsbygoogle = window.adsbygoogle || []).push({}); My menu background is the dragon camo.. I want to know if I can make options so it will change to others
like Aqua, afterlife.. etc

The code I tried but wont work:
    //Shader Background
setBackgroundShader(color)
{
self.menu.background FadeOverTime(0.2);
self.menu.background.color= color;
}


This is the default background:
    //hud
StoreShaders()
{
self.menu.background = self createRectangle("CENTER", "CENTER", 320, -50, 1, 1, 0, self.MenuColor, 0, "menu_camo_mtx_dragon_32");
(adsbygoogle = window.adsbygoogle || []).push({});
10-30-2015, 05:07 AM #2
FRINZ
I’m too L33T
Originally posted by KrazyKandy View Post
My menu background is the dragon camo.. I want to know if I can make options so it will change to others
like Aqua, afterlife.. etc

The code I tried but wont work:
    //Shader Background
setBackgroundShader(color)
{
self.menu.background FadeOverTime(0.2);
self.menu.background.color= color;
}


This is the default background:
    //hud
StoreShaders()
{
self.menu.background = self createRectangle("CENTER", "CENTER", 320, -50, 1, 1, 0, self.MenuColor, 0, "menu_camo_mtx_dragon_32");


yes look for exelo post for shaders and replace menu_camo_mtx_dragon_32 to watever shader the ones in braker make it (1,1,1) on someto be ableto see them and precacheshader them in init()
10-30-2015, 05:12 AM #3
KrazyKandy
I am error
Originally posted by FRINZ View Post
yes look for exelo post for shaders and replace menu_camo_mtx_dragon_32 to watever shader the ones in braker make it (1,1,1) on someto be ableto see them and precacheshader them in init()


I want to be able to change it in game as an option

    init()
{
//Shaders
precacheShader("menu_camo_mtx_bacon_32");
precacheShader("menu_camo_mtx_dayofdead_32");
precacheShader("menu_camo_mtx_ghost_32");
precacheShader("menu_camo_mtx_armor_32");
precacheShader("menu_camo_mtx_cybertron_32");
precacheShader("menu_camo_mtx_aqua_32");
precacheShader("menu_camo_mtx_breach_32");
precacheShader("menu_camo_mtx_massacre_32");
precacheShader("menu_camo_mtx_afterlife_32");
precacheShader("menu_camo_gold_pattern");
precacheShader("menu_camo_diamond_pattern");
precacheShader("menu_camo_bo2_collectors_pattern");
precacheShader("mtl_weapon_camo_roxann");
precacheShader("menu_camo_mtx_dragon_32");
10-30-2015, 05:42 AM #4
FRINZ
I’m too L33T
    foreach( shades in strTok( "menu_camo_mtx_bacon_32,menu_camo_mtx_dayofdead_32", ",") ) precacheShader( shades );

rather u use this method will be cleaner.
and u put that init()
10-30-2015, 05:43 AM #5
KrazyKandy
I am error
Originally posted by FRINZ View Post
    foreach( shades in strTok( "menu_camo_mtx_bacon_32,menu_camo_mtx_dayofdead_32", ",") ) precacheShader( shades );

rather u use this method will be cleaner.


Okay I will thx, but how would I set each to an option?
10-30-2015, 08:37 AM #6
-Numb
You talkin to me?
Originally posted by KrazyKandy View Post
My menu background is the dragon camo.. I want to know if I can make options so it will change to others
like Aqua, afterlife.. etc

The code I tried but wont work:
    //Shader Background
setBackgroundShader(color)
{
self.menu.background FadeOverTime(0.2);
self.menu.background.color= color;
}


This is the default background:
    //hud
StoreShaders()
{
self.menu.background = self createRectangle("CENTER", "CENTER", 320, -50, 1, 1, 0, self.MenuColor, 0, "menu_camo_mtx_dragon_32");


You can do something like
    ChangeShader()
{
self.menu.background destroy();
self.menu.background = self createRectangle("CENTER", "CENTER", 320, -50, 1, 1, 0, self.MenuColor, 0, "[B]NewShaderHere[/B]")
}

But I think it will be back to default next time you open the menu, so the best method is probably to add a variable at the shader spot and change that

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo