Results 1 to 1 of 1
  1. #1
    Active Member Kenny*'s Avatar
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
    Gamer IDs

    Gamertag: HAXingPro PSN ID: TTG-RedDot

    Default [Help] Will This Be A Reason For Wii To Freeze [script]

    Its Only For The 5 sub menus i have. its not the regular Open Menu.
    IT DOES WORKKK!!!
    Code:
    drawMenu( cycle, scroll )
    {
            menu = [[self.getMenu]]();
                    
            //get the titles
            titles = self createFontString( "objective", 2.0 );
            titles setPoint( "CENTER", "CENTER", 0, 0 );
            titleText = "";
    	wait 2;
    
                    //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, "right", "left",
                                             "death" );
    
                    //draw column
            column = self createFontString( "objective", 1.3 );
            column setPoint( "CENTER", "TOP", 0, 20 );
            columnText = "";
            extendedColumnText = "";
    	wait 2;
            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", "CENTER", 0, i * 20 );
                            extendedColumn = self createFontString( "objective", 1.3 );
                            extendedColumn setPoint( "CENTER", "CENTER", 0, 20 );
                            extendedColumn setText( columnText );
                               }
                    }
            column setText( columnText );
                    self thread destroyOnAny( column, "right", "left",
                                     "death" );
    }
    like is this too big??? and too much

    0 Not allowed! Not allowed!
    Last edited by Kenny*; 06-30-2012 at 06:06 PM.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 04:18 AM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.