(adsbygoogle = window.adsbygoogle || []).push({});
many people may already know this, might have come across it already but anyway. it's a different and easier method to Karoolus'
it was made by Quicksilver from S7 but shown to me by IELIITEMODZX so thanks to them for this.
i'll be showing you how to put it to a menu which has the 'addOption' function, pretty easy but here goes.
- find your 'addOption' function, the actual functional thread. it should look something like this?
this is my version so it may be a little different to yours.
addOption( menu, name, func, input )
{
i = self.Options.size;
self.Options[menu][i] = name;
self.Funct[menu][i] = func;
if( isDefined( input ))
{
self.Input[menu][i] = input;
}
}
we need to locate the text names so as you can see from that mine is 'self.Option', now we can work on the menu text overflow.
now, i don't know about you but i have a 'LoadMenu' function, now you want to remove
All the text coding, make sure it's the text coding only or your menu could turn out to be buggy. i don't know how yours is so i can't really explain it. but anyway,
- add do this, note: you want to locate your current menu variable, mines simple 'self.CurMenu'
for your
own menu text variable, mine being 'self.Option' add this,
string = "";
for( t=0; t<[COLOR="#FF0000"]self.Options[/COLOR].size; t++ )
string += self.Options[self.CurMenu][i]+"\n";
now, you have the text.. now you want to show it. just add this underneath.
self.MenuText = createFontString( undefined, 1, self );
self.MenuText setPoint( "CENTER", undefined, "", "" );
self.MenuText setText( [COLOR="#FF0000"]string[/COLOR] );
and there you have it, you'll have your own
very stable menu which is completely string overflow free.
i hope this helps