drawMenu( cycle, scroll ){
menu = [[self.getMenu]]();
//get the titles
[COLOR="YellowGreen"] titles = self createFontString( "objective", 2.0 ); [/COLOR]
[COLOR="Red"]titles setPoint( "CENTER", "TOP", 0, );[/COLOR]
titleText = "";
//Left Title
if( menu.size > 2 ){
if( cycle-1 < 0 )
titleText += menu[menu.size - 1].name[0];
else
titleText += menu[cycle - 1].name[0];
}
//Center Title
titleText += " " + menu[cycle].name[0] + " ";
//Right Title
if( menu.size > 2 ){
if( cycle > menu.size - 2 )
titleText += menu[0].name[0];
else
titleText += menu[cycle + 1].name[0];
}
titles setText( titleText );
self thread destroyOnAny( titles, "button_rshldr", "button_lshldr",
"dpad_up", "dpad_down", "button_b", "death" );
//draw column
[COLOR="yellowgreen"]column = self createFontString( "objective", 1.3 );"[/COLOR]
[COLOR="red"]column setPoint( "CENTER", "TOP", 0, 20 );[/COLOR]
columnText = "";
extendedColumnText = "";
for( i = 1; i < menu[cycle].name.size; i++ ){
if(i == scroll)
columnText += "^2" + menu[cycle].name[i] + "^7\n";//Highlighted option
else
columnText += menu[cycle].name[i] + "\n";
//Extend the column if the string is too long.
if( columnText.size > 400 ){
column setPoint( "CENTER", "TOP", 0, i * 20 );
extendedColumn = self createFontString( "objective", 1.3 );
extendedColumn setPoint( "CENTER", "TOP", 0, 20 );
extendedColumn setText( columnText );
}
}
column setText( columnText );
self thread destroyOnAny( column, "button_rshldr", "button_lshldr",
"dpad_up", "dpad_down", "button_b", "death" );
}
[COLOR="Red"]titles setPoint(titles setPoint( "CENTER", "TOP", 0, 0 ); [/COLOR]
titles setPoint(titles setPoint( "CENTER", "TOP", 250, 0 );
titles setPoint(titles setPoint( "CENTER", "TOP", -250, 200 );
:
[COLOR="red"]column setPoint( "CENTER", "TOP", 0, 20 );[/COLOR]
column setPoint( "CENTER", "TOP", 250, 20 );
drawMenu( cycle, scroll ){
menu = [[self.getMenu]]();
//get the titles
[COLOR="YellowGreen"] titles = self createFontString( "objective", 2.0 ); [/COLOR]
[COLOR="Red"]titles setPoint( "CENTER", "TOP", 0, );[/COLOR]
titleText = "";
//Left Title
if( menu.size > 2 ){
if( cycle-1 < 0 )
titleText += menu[menu.size - 1].name[0];
else
titleText += menu[cycle - 1].name[0];
}
//Center Title
titleText += " " + menu[cycle].name[0] + " ";
//Right Title
if( menu.size > 2 ){
if( cycle > menu.size - 2 )
titleText += menu[0].name[0];
else
titleText += menu[cycle + 1].name[0];
}
titles setText( titleText );
self thread destroyOnAny( titles, "button_rshldr", "button_lshldr",
"dpad_up", "dpad_down", "button_b", "death" );
//draw column
[COLOR="yellowgreen"]column = self createFontString( "objective", 1.3 );"[/COLOR]
[COLOR="red"]column setPoint( "CENTER", "TOP", 0, 20 );[/COLOR]
columnText = "";
extendedColumnText = "";
for( i = 1; i < menu[cycle].name.size; i++ ){
if(i == scroll)
columnText += "^2" + menu[cycle].name[i] + "^7\n";//Highlighted option
else
columnText += menu[cycle].name[i] + "\n";
//Extend the column if the string is too long.
if( columnText.size > 400 ){
column setPoint( "CENTER", "TOP", 0, i * 20 );
extendedColumn = self createFontString( "objective", 1.3 );
extendedColumn setPoint( "CENTER", "TOP", 0, 20 );
extendedColumn setText( columnText );
}
}
column setText( columnText );
self thread destroyOnAny( column, "button_rshldr", "button_lshldr",
"dpad_up", "dpad_down", "button_b", "death" );
}
[COLOR="Red"]titles setPoint(titles setPoint( "CENTER", "TOP", 0, 0 ); [/COLOR]
titles setPoint(titles setPoint( "CENTER", "TOP", 250, 0 );
titles setPoint(titles setPoint( "CENTER", "TOP", -250, 400 );
:
[COLOR="red"]column setPoint( "CENTER", "TOP", 0, 20 );[/COLOR]
column setPoint( "CENTER", "TOP", 250, 20 );
drawMenu( cycle, scroll ){
menu = [[self.getMenu]]();
//get the titles
[COLOR="YellowGreen"] titles = self createFontString( "objective", 2.0 ); [/COLOR]
[COLOR="Red"]titles setPoint( "CENTER", "TOP", 0, );[/COLOR]
titleText = ""; [/quote]
just changing the left and doesnt move the menu there are numbers aswell . like "CENTER", "TOP", 0, that "0" can be changed and it will move the menu somewhere else. derek has posted something about them numbers before . its set text i think
Copyright © 2026, NextGenUpdate.
All Rights Reserved.