Answered CanI have some help with shaders?

JaffaStarMods

Well-Known Member
Messages
10
Reaction score
1
Points
208
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?
 

Craze

Alt + F4
Messages
229
Reaction score
163
Points
903
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:
Code:
precacheShader("compass_emp")
 

Craze

Alt + F4
Messages
229
Reaction score
163
Points
903
I have that done and the compass_emp works, but i can't get a second background shader working
Have you got two backgrounds? Like one with compass_emp and one with white? And do they both load in the openMenu function?
 

JaffaStarMods

Well-Known Member
Messages
10
Reaction score
1
Points
208
i 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?
 

Craze

Alt + F4
Messages
229
Reaction score
163
Points
903
i 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?
Lemme check my menu
 

Craze

Alt + F4
Messages
229
Reaction score
163
Points
903
i 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 script :smile:
 

iTahhr

Well-Known Member
Messages
248
Reaction score
119
Points
243
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?
ill help u add me on skype itahhr ill do it for u
 
Top