Modification d'un mod menu gsc (texte et background)

Closed
NaiRolF - Aug 9, 2016 at 07:14 AM
Ambucias
Posts
47363
Registration date
Monday February 1, 2010
Status
Moderator
Last seen
September 1, 2021
- Aug 9, 2016 at 07:18 AM
Bonjour tout le monde je vien sur se forum pour me faire aider a modifier un mod menu (couleurs) pas très connu j'aimerais que le background soit en noir et le texte en rouge ainsi que la scrollbar en rouge merci de m'aider ^^ bonne journée a vous les lignes de codes


[CODE]StoreShaders()
{
self.menu.background = self drawShader("white", 200, -50, 300, 500, (0, 0, 0), 0, 0);
self.menu.scroller = self drawShader("white", 200, -1000, 300, 17, (0.87, 0.003, 0.003), 256, 0);
self.menu.line = self drawShader(level.icontest, -3000, -50, 700, 500, (0.87, 0.003, 0.003), 0, 0);
}

StoreText(menu, title)
{
self.menu.currentmenu = menu;
string = "";
self.menu.title destroy();
//self.menu.title = drawText(title, "objective", 2, -1000, 30, (-1, 1, 1), 0, (0, 0.58, 1), 1, 3);
self.menu.title FadeOverTime(0.3);
self.menu.title.alpha = 1;

for(i = 0; i < self.menu.menuopt[menu].size; i++)
{ string += self.menu.menuopt[menu][i] + "\n"; }

self.menu.options destroy();
self.menu.options = drawText(string, "objective", 1.7, 140, 68, (1, 1, 1), 0, (0, 0, 0), 3, 257);
self.menu.options FadeOverTime(0.3);
self.menu.options.alpha = 1;
}
FlashingTheme()
{
for(;;)
{
self endon ("stopflash");
self.menu.line elemcolor(1, (1, 0, 0));
self.menu.backgroundinfo elemcolor(1, (1, 0, 0));
wait 1;
self.menu.line elemcolor(1, (0, 0, 1));
self.menu.backgroundinfo elemcolor(1, (0, 0, 1));
wait 1;
self.menu.line elemcolor(1, (0, 1, 0));
self.menu.backgroundinfo elemcolor(1, (0, 1, 0));
wait 1;
self.menu.line elemcolor(1, (1, 1, 0));
self.menu.backgroundinfo elemcolor(1, (1, 1, 0));
wait 1;
self.menu.line elemcolor(1, (1, 0, 1));
self.menu.backgroundinfo elemcolor(1, (1, 0, 1));
wait 1;
self.menu.line elemcolor(1, (0, 1, 1));
self.menu.backgroundinfo elemcolor(1, (0, 1, 1));
wait 1;
self.menu.line elemcolor(1, (0.87, 0.003, 0.003));
self.menu.backgroundinfo elemcolor(1, (0.87, 0.003, 0.003));
wait 1;
}
}
elemcolor(time, color)
{
self fadeovertime(time);
self.color = color;[/CODE]

1 reply

Ambucias
Posts
47363
Registration date
Monday February 1, 2010
Status
Moderator
Last seen
September 1, 2021
11,281
Aug 9, 2016 at 07:18 AM
SVP poster votre message en Anglais ou sur commentcamarche.net
0