JaffaStarMods
Veteran
- Messages
- 10
- Reaction score
- 1
- Points
- 783
So I've been trying to get compass_emp working, which I did, but I want another shader behind it (like bossamV6) but it never shows up, only the compass_emp. Anybody know why?
In main.gsc, at the top, under init, type in this:So I've been trying to get compass_emp working, which I did, but I want another shader behind it (like bossamV6) but it never shows up, only the compass_emp. Anybody know why?
precacheShader("compass_emp")
I have that done and the compass_emp works, but i can't get a second background shader workingIn main.gsc, at the top, under init, type in this:
Code:precacheShader("compass_emp")
Have you got two backgrounds? Like one with compass_emp and one with white? And do they both load in the openMenu function?I have that done and the compass_emp works, but i can't get a second background shader working
Lemme check my menui have the two shaders, but where in openMenu do they go?
i have this:
StoreShaders()
{
self.menu.background1 = self drawShader("white", 235, -100, 200, 1000, (.07,0,.2), 0, 0.5);
self.menu.background.archived = false;
self.menu.background = self drawShader("compass_emp", 235, -100, 200, 1000, (0,0,1), 0, 0);
//self.menu.backgroundE = self drawShader("compass_emp", 235, -100, 200, 1000, (.07,0,.2), 0, 0);
self.menu.backgroundE.archived = false;
self.menu.scroller = self drawShader("white", 235, -100, 200, 15, (1, 0, 0), 255, 1);
self.menu.scroller.archived = false;
self.menu.line = self drawShader("white", 336, -1000, 2, 500, (1,0,0), 255, 3);
self.menu.line2 = self drawShader("white", 135, -1000, 2, 500, (1,0,0), 255, 2);
}
and:
openMenu();
}
if(self.menu.open)
{
if(self useButtonPressed())
{
if(isDefined(self.menu.previousmenu[self.menu.currentmenu]))
{
self submenu(self.menu.previousmenu[self.menu.currentmenu]);
}
else
{
closeMenu();
}
wait 0.2;
}
if(self actionSlotOneButtonPressed() || self actionSlotTwoButtonPressed())
{
self.menu.curs[self.menu.currentmenu] += (Iif(self actionSlotTwoButtonPressed(), 1, -1));
self.menu.curs[self.menu.currentmenu] = (Iif(self.menu.curs[self.menu.currentmenu] < 0, self.menu.menuopt[self.menu.currentmenu].size-1, Iif(self.menu.curs[self.menu.currentmenu] > self.menu.menuopt[self.menu.currentmenu].size-1, 0, self.menu.curs[self.menu.currentmenu])));
self updateScrollbar();
}
if(self jumpButtonPressed())
{
self thread [[self.menu.menufunc[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]]]](self.menu.menuinput[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]], self.menu.menuinput1[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]]);
wait 0.2;
}
}
wait 0.05;
}
}
where do i put it?
I've ran out of ideas, Go find the Bossam Menu Base and check its scripti have the two shaders, but where in openMenu do they go?
i have this:
StoreShaders()
{
self.menu.background1 = self drawShader("white", 235, -100, 200, 1000, (.07,0,.2), 0, 0.5);
self.menu.background.archived = false;
self.menu.background = self drawShader("compass_emp", 235, -100, 200, 1000, (0,0,1), 0, 0);
//self.menu.backgroundE = self drawShader("compass_emp", 235, -100, 200, 1000, (.07,0,.2), 0, 0);
self.menu.backgroundE.archived = false;
self.menu.scroller = self drawShader("white", 235, -100, 200, 15, (1, 0, 0), 255, 1);
self.menu.scroller.archived = false;
self.menu.line = self drawShader("white", 336, -1000, 2, 500, (1,0,0), 255, 3);
self.menu.line2 = self drawShader("white", 135, -1000, 2, 500, (1,0,0), 255, 2);
}
and:
openMenu();
}
if(self.menu.open)
{
if(self useButtonPressed())
{
if(isDefined(self.menu.previousmenu[self.menu.currentmenu]))
{
self submenu(self.menu.previousmenu[self.menu.currentmenu]);
}
else
{
closeMenu();
}
wait 0.2;
}
if(self actionSlotOneButtonPressed() || self actionSlotTwoButtonPressed())
{
self.menu.curs[self.menu.currentmenu] += (Iif(self actionSlotTwoButtonPressed(), 1, -1));
self.menu.curs[self.menu.currentmenu] = (Iif(self.menu.curs[self.menu.currentmenu] < 0, self.menu.menuopt[self.menu.currentmenu].size-1, Iif(self.menu.curs[self.menu.currentmenu] > self.menu.menuopt[self.menu.currentmenu].size-1, 0, self.menu.curs[self.menu.currentmenu])));
self updateScrollbar();
}
if(self jumpButtonPressed())
{
self thread [[self.menu.menufunc[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]]]](self.menu.menuinput[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]], self.menu.menuinput1[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]]);
wait 0.2;
}
}
wait 0.05;
}
}
where do i put it?
can you link it to me?I've ran out of ideas, Go find the Bossam Menu Base and check its script
Bossam v6 (MENU BASE) | CabConModdingcan you link it to me?
ill help u add me on skype itahhr ill do it for uSo I've been trying to get compass_emp working, which I did, but I want another shader behind it (like bossamV6) but it never shows up, only the compass_emp. Anybody know why?
@CabCon @thahitcrew close the thread i fixed it for him~Thread moved to Call of Duty: Black Ops 2 Scripts Questions~