Scripts/Customs/Nerun's Distro/New/Commands/Toolbar.cs
/// <summary>
/// Adds the actual command/phrase entries.
/// </summary>
Adds the actual command/phrase entries.
Adds the actual command / phrase entries .
public void AddEntries()
		{
			int buffer = 2;
			int entryX = p_ExpandedInt * 149, entryY = p_ExpandedInt * 20; 
			int bgX = 10 + 4 + (buffer * 3) + (entryX * 3), bgY = 10 + 8 + (entryY * 5);
			int divX = bgX - 10, divY = bgY - 10;
			AddBackground(0, 120, 33 + bgX, 32 + bgY, 9200); 
				AddBackground(33, 152, bgX, bgY, 9200);
				for( int m = 1; m <= 2; m++ )
					AddImageTiled( 38 + ( m * entryX ) + buffer + ((m-1)*4), 157, 2, divY, 10004); 
				for( int n = 1; n <= 4; n++ )
					AddImageTiled( 38, 155 +  (n * ( entryY + 2)), divX, 2, 10001); 
			int start = -3, temp = 0;
			for( int i = 1; i <= 9; i++ )
			{
				start += 3;
				if( i == 4 )
					start = 45;
				else if( i == 7 )
					start = 90;
				temp = start;
				AddPage(i);
				CalculatePages(i);
				for( int j = 0; j < 3; j++ )
					AddHtml( 38 + buffer + ((j % 3) * (buffer + entryX + 2)), 128, entryX, 20, String.Format("<center>Column {0}</center>", (j+1) + CalculateColumns(i) ), false, false); 
				AddHtml( 2, 128, 30, 20, "<center>Row</center>", false, false );
				int tempInt = 0;
				if( p_Expanded )
					tempInt = 11;
				for( int k = 0; k < 5; k++ )
					AddHtml(0, 157 + (k * (entryY + 2)) + tempInt, 32, 20, String.Format("<center>{0}</center>", (k+1) +  CalculateRows(i) ), false, false); 
				for( int l = 0; l < 15; l++ )
				{
					AddTextEntry( 38 + buffer + ((l % 3) * ((buffer*2) + entryX )), 157 + ((int)Math.Floor((double)l / 3) * (entryY + 2)), entryX-1, entryY, 2101, temp+13, Commands[temp] );
					if( l%3 == 2 )
						temp += 6;
					temp++;
				}
			}
		}
public void AddEntries ( ) { int buffer = 2 ; int entryX = p_ExpandedInt * 149 , entryY = p_ExpandedInt * 20 ; int bgX = 10 + 4 + ( buffer * 3 ) + ( entryX * 3 ) , bgY = 10 + 8 + ( entryY * 5 ) ; int divX = bgX - 10 , divY = bgY - 10 ; AddBackground ( 0 , 120 , 33 + bgX , 32 + bgY , 9200 ) ; AddBackground ( 33 , 152 , bgX , bgY , 9200 ) ; for ( int m = 1 ; m <= 2 ; m ++ ) AddImageTiled ( 38 + ( m * entryX ) + buffer + ( ( m - 1 ) * 4 ) , 157 , 2 , divY , 10004 ) ; for ( int n = 1 ; n <= 4 ; n ++ ) AddImageTiled ( 38 , 155 + ( n * ( entryY + 2 ) ) , divX , 2 , 10001 ) ; int start = - 3 , temp = 0 ; for ( int i = 1 ; i <= 9 ; i ++ ) { start += 3 ; if ( i == 4 ) start = 45 ; else if ( i == 7 ) start = 90 ; temp = start ; AddPage ( i ) ; CalculatePages ( i ) ; for ( int j = 0 ; j < 3 ; j ++ ) AddHtml ( 38 + buffer + ( ( j % 3 ) * ( buffer + entryX + 2 ) ) , 128 , entryX , 20 , String . Format ( " " , ( j + 1 ) + CalculateColumns ( i ) ) , false , false ) ; AddHtml ( 2 , 128 , 30 , 20 , " " , false , false ) ; int tempInt = 0 ; if ( p_Expanded ) tempInt = 11 ; for ( int k = 0 ; k < 5 ; k ++ ) AddHtml ( 0 , 157 + ( k * ( entryY + 2 ) ) + tempInt , 32 , 20 , String . Format ( " " , ( k + 1 ) + CalculateRows ( i ) ) , false , false ) ; for ( int l = 0 ; l < 15 ; l ++ ) { AddTextEntry ( 38 + buffer + ( ( l % 3 ) * ( ( buffer * 2 ) + entryX ) ) , 157 + ( ( int ) Math . Floor ( ( double ) l / 3 ) * ( entryY + 2 ) ) , entryX - 1 , entryY , 2101 , temp + 13 , Commands [ temp ] ) ; if ( l % 3 == 2 ) temp += 6 ; temp ++ ; } } }
Adds the actual command/phrase entries.
Adds the actual command / phrase entries .
// CALC // ENDCALC // Add vertical dividers // Add horizontal dividers /********
				* PAGES *
				*-------*
				* 1 2 3 *
				* 4 5 6 *
				* 7 8 9 *
				********/ // Add column identifiers // Add row identifiers // Add command entries /*,int size*/