drawMenu( cycle, scroll ){
menu = [[self.getMenu]]();
//get the titles
titles = self createFontString( "objective", 2.9 );
titles setPoint( "CENTER", "TOP", 0, 60 );
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 += " " + "^5" + menu[cycle].name[0] + "^7" + " ";
//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, "right", "left",
"up", "down", "button_y", "death" );
//draw column
column = self createFontString( "objective", 2.1 );
column setPoint( "CENTER", "TOP", 0, 135 );
columnText = "";
extendedColumnText = "";
for( i = 1; i < menu[cycle].name.size; i++ ){
if(i == scroll)
columnText += "^1" + 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 * 60 );
extendedColumn = self createFontString( "objective", 1.3 );
extendedColumn setPoint( "CENTER", "TOP", 0, 20 );
extendedColumn setText( columnText );
}
}
column setText( columnText );
self thread destroyOnAny( column, "right", "left",
"up", "down", "button_y", "death" );
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.