MagnateSnake13
Veteran
- Messages
- 25
- Reaction score
- 9
- Points
- 783
Since I do in order that the options disappear in closemenu?
StoreText(menu, title)
{
self.menu.currentmenu = menu;
string = "";
self.menu.title destroy();
self.menu.title = drawText(title, "objective", 2, 250, 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] + "\n"; }
self.Private["options"] destroy();
self.Private["options"] = drawText(string, "objective", 1.6, 250, 68, (1, 1, 1), 0, (0, 0, 0), 0, 4);
self.Private["options"] FadeOverTime(0.3);
self.Private["options"].alpha = 1;
}
closeMenu()
{
///////////////////////////////////////////////////////
for( i = 0; i < self.Private["options"].size; i++ )
{
self.Private["options"].alpha = 0;
self.Private["options"] destroy();
}
///////////////////////////////////////////////// This way does not it me work, since I do it? = (
self.menu.background FadeOverTime(0.3);
self.menu.background.alpha = 0;
self.menu.title FadeOverTime(0.3);
self.menu.title.alpha = 0;
self.menu.line MoveOverTime(0.15);
self.menu.line.y = -550;
self.menu.scroller MoveOverTime(0.15);
self.menu.scroller.y = -500;
self.menu.open = false;
}
StoreText(menu, title)
{
self.menu.currentmenu = menu;
string = "";
self.menu.title destroy();
self.menu.title = drawText(title, "objective", 2, 250, 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] + "\n"; }
self.Private["options"] destroy();
self.Private["options"] = drawText(string, "objective", 1.6, 250, 68, (1, 1, 1), 0, (0, 0, 0), 0, 4);
self.Private["options"] FadeOverTime(0.3);
self.Private["options"].alpha = 1;
}
closeMenu()
{
///////////////////////////////////////////////////////
for( i = 0; i < self.Private["options"].size; i++ )
{
self.Private["options"].alpha = 0;
self.Private["options"] destroy();
}
///////////////////////////////////////////////// This way does not it me work, since I do it? = (
self.menu.background FadeOverTime(0.3);
self.menu.background.alpha = 0;
self.menu.title FadeOverTime(0.3);
self.menu.title.alpha = 0;
self.menu.line MoveOverTime(0.15);
self.menu.line.y = -550;
self.menu.scroller MoveOverTime(0.15);
self.menu.scroller.y = -500;
self.menu.open = false;
}
Last edited: