// ------------------------------------------------------ // Display an automation data void Display_Midi_Automation(int Idx) { Gui_Draw_Arrows_Number_Box(Pos_Midi_Automation[Idx].x, Cur_Height - Pos_Midi_Automation[Idx].y, Midi_Dispatch_Table[Idx].CC, BUTTON_NORMAL | BUTTON_TEXT_CENTERED | BUTTON_RIGHT_MOUSE); Gui_Draw_Button_Box(Pos_Midi_Automation[Idx].x + GAP_X_MIDI, (Cur_Height - Pos_Midi_Automation[Idx].y), 16, 16, "\03", BUTTON_NORMAL | BUTTON_TEXT_CENTERED | BUTTON_RIGHT_MOUSE); Gui_Draw_Button_Box(Pos_Midi_Automation[Idx].x + GAP_X_MIDI + 18, (Cur_Height - Pos_Midi_Automation[Idx].y), 108, 16, Str_Midi_Commands[Midi_Dispatch_Table[Idx].Automation].Name, BUTTON_NORMAL | BUTTON_DISABLED | BUTTON_TEXT_CENTERED | BUTTON_SMALL_FONT); Gui_Draw_Button_Box(Pos_Midi_Automation[Idx].x + GAP_X_MIDI + (18 + 110), (Cur_Height - Pos_Midi_Automation[Idx].y), 16, 16, "\04", BUTTON_NORMAL | BUTTON_TEXT_CENTERED | BUTTON_RIGHT_MOUSE); }
// ------------------------------------------------------ // Display a track gadget with it's number void Display_1_Track_To_Render(int nbr) { if(Tracks_To_Render[nbr]) { if(nbr < Songtracks) { Gui_Draw_Button_Box(Tracks_Position[nbr].x, (Cur_Height - 112) + Tracks_Position[nbr].y, 16, 16, Tracks_Labels[nbr], BUTTON_NORMAL | BUTTON_TEXT_CENTERED | BUTTON_RIGHT_MOUSE); } else { Gui_Draw_Button_Box(Tracks_Position[nbr].x, (Cur_Height - 112) + Tracks_Position[nbr].y, 16, 16, Tracks_Labels[nbr], BUTTON_NORMAL | BUTTON_DISABLED | BUTTON_TEXT_CENTERED); } } else { if(nbr < Songtracks) { Gui_Draw_Button_Box(Tracks_Position[nbr].x, (Cur_Height - 112) + Tracks_Position[nbr].y, 16, 16, Tracks_Labels[nbr], BUTTON_PUSHED | BUTTON_TEXT_CENTERED | BUTTON_RIGHT_MOUSE); } else { Gui_Draw_Button_Box(Tracks_Position[nbr].x, (Cur_Height - 112) + Tracks_Position[nbr].y, 16, 16, Tracks_Labels[nbr], BUTTON_NORMAL | BUTTON_DISABLED | BUTTON_TEXT_CENTERED); } } }
// ------------------------------------------------------ // Draw the slider beside the list void Draw_Lists_Slider(int idx) { SetColor(COL_BLACK); bjbox(Cur_Width - 18, 42, 18, 136); SetColor(COL_SLIDER_LO); bjbox(Cur_Width - 18, 59 - 1, 15 + 2, 103 + 2); SetColor(COL_SLIDER_HI); bjbox(Cur_Width - 17, 59, 15 + 1, 103 + 1); SetColor(COL_SLIDER_MED); bjbox(Cur_Width - 17, 59, 15, 103); Gui_Draw_Button_Box(MAX_PATT_SCREEN_X + 2, 58 + idx + 1, 16 - 2, 32, "", BUTTON_NORMAL); Gui_Draw_Button_Box(MAX_PATT_SCREEN_X + 1, 42, 16, 14, "\01", BUTTON_NORMAL | BUTTON_TEXT_CENTERED | BUTTON_RIGHT_MOUSE); Gui_Draw_Button_Box(MAX_PATT_SCREEN_X + 1, 164, 16, 14, "\02", BUTTON_NORMAL | BUTTON_TEXT_CENTERED | BUTTON_RIGHT_MOUSE); }
// ------------------------------------------------------ // Display compressor sliders void Display_Track_Compressor(void) { char string[64]; Gui_Draw_Button_Box(544, (Cur_Height - 103), 56, 16, "Threshold", BUTTON_NORMAL | BUTTON_DISABLED); Realslider_Size(601, (Cur_Height - 103), 50, (int) (mas_comp_threshold_Track[Track_Under_Caret] * 0.5f), Compress_Track[Track_Under_Caret] ? TRUE : FALSE); sprintf(string, "%d%%", (int) (mas_comp_threshold_Track[Track_Under_Caret])); Print_String(string, 601, (Cur_Height - 101), 67, BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(544, (Cur_Height - 85), 56, 16, "Ratio", BUTTON_NORMAL | BUTTON_DISABLED); Realslider_Size(601, (Cur_Height - 85), 50, (int) (mas_comp_ratio_Track[Track_Under_Caret] * 0.5f), Compress_Track[Track_Under_Caret] ? TRUE : FALSE); sprintf(string, "%d%%", (int) (mas_comp_ratio_Track[Track_Under_Caret])); Print_String(string, 601, (Cur_Height - 83), 67, BUTTON_TEXT_CENTERED); }
void Display_Cur_copy_Buffer(void) { #ifndef __LITE__ int highlight[4] = { BUTTON_NORMAL, BUTTON_NORMAL, BUTTON_NORMAL, BUTTON_NORMAL }; highlight[Current_copy_buffer] = BUTTON_PUSHED; Gui_Draw_Button_Box(600, (Cur_Height - 42), 15, 16, "1", highlight[0] | BUTTON_TEXT_CENTERED | (tb303_pattern_buffer_full[0] ? 0 : BUTTON_LOW_FONT)); Gui_Draw_Button_Box(616, (Cur_Height - 42), 15, 16, "2", highlight[1] | BUTTON_TEXT_CENTERED | (tb303_pattern_buffer_full[1] ? 0 : BUTTON_LOW_FONT)); Gui_Draw_Button_Box(633, (Cur_Height - 42), 15, 16, "3", highlight[2] | BUTTON_TEXT_CENTERED | (tb303_pattern_buffer_full[2] ? 0 : BUTTON_LOW_FONT)); Gui_Draw_Button_Box(649, (Cur_Height - 42), 15, 16, "4", highlight[3] | BUTTON_TEXT_CENTERED | (tb303_pattern_buffer_full[3] ? 0 : BUTTON_LOW_FONT)); #else int highlight[4] = { BUTTON_NORMAL | BUTTON_DISABLED, BUTTON_NORMAL | BUTTON_DISABLED, BUTTON_NORMAL | BUTTON_DISABLED, BUTTON_NORMAL | BUTTON_DISABLED }; highlight[Current_copy_buffer] = BUTTON_PUSHED; Gui_Draw_Button_Box(600, (Cur_Height - 42), 15, 16, "1", highlight[0] | BUTTON_TEXT_CENTERED | (tb303_pattern_buffer_full[0] ? 0 : BUTTON_LOW_FONT)); Gui_Draw_Button_Box(616, (Cur_Height - 42), 15, 16, "2", highlight[1] | BUTTON_TEXT_CENTERED | (tb303_pattern_buffer_full[1] ? 0 : BUTTON_LOW_FONT)); Gui_Draw_Button_Box(633, (Cur_Height - 42), 15, 16, "3", highlight[2] | BUTTON_TEXT_CENTERED | (tb303_pattern_buffer_full[2] ? 0 : BUTTON_LOW_FONT)); Gui_Draw_Button_Box(649, (Cur_Height - 42), 15, 16, "4", highlight[3] | BUTTON_TEXT_CENTERED | (tb303_pattern_buffer_full[3] ? 0 : BUTTON_LOW_FONT)); #endif }
// ------------------------------------------------------ // Display volume slider void Display_Track_Volume(void) { char string[64]; Gui_Draw_Button_Box(544, (Cur_Height - 51), 56, 16, "Volume", BUTTON_NORMAL | BUTTON_DISABLED); Realslider_Size(601, (Cur_Height - 51), 50, (int) (Track_Volume[Track_Under_Caret] * 50.0f), TRUE); sprintf(string, "%d%%", (int) (Track_Volume[Track_Under_Caret] * 100.0f)); Print_String(string, 601, (Cur_Height - 49), 67, BUTTON_TEXT_CENTERED); }
void Display_Song_Length(void) { char ms[64]; if(userscreen == USER_SCREEN_DISKIO_EDIT) { sprintf(ms, "%.2d:%.2d:%.2d", song_Hours, song_Minutes, song_Seconds); Gui_Draw_Button_Box(254, (Cur_Height - 58), 80, 16, "", BUTTON_NORMAL | BUTTON_DISABLED); PrintString(274, (Cur_Height - 56), USE_FONT, ms); } }
void Draw_Midi_Ed(void) { char middev[80]; Draw_Editors_Bar(USER_SCREEN_SETUP_MIDI); Gui_Draw_Button_Box(0, (Cur_Height - 153), fsize, 130, "", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Flat_Box("Midi Setup"); #if defined(__NO_MIDI__) sprintf(middev, "In (%d)", 0); #else sprintf(middev, "In (%d)", n_midiindevices); #endif Gui_Draw_Button_Box(12, (Cur_Height - 135), 56, 16, middev, BUTTON_NORMAL | BUTTON_DISABLED); #if defined(__NO_MIDI__) sprintf(middev, "Out (%d)", 0); #else sprintf(middev, "Out (%d)", n_midioutdevices); #endif Gui_Draw_Button_Box(12, (Cur_Height - 117), 56, 16, middev, BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Button_Box(12, (Cur_Height - 99), 82, 16, "Track Notes Off", BUTTON_NORMAL | BUTTON_TEXT_CENTERED #if defined(__NO_MIDI__) | BUTTON_DISABLED #endif ); Gui_Draw_Button_Box(12, (Cur_Height - 81), 82, 16, "Song Notes Off", BUTTON_NORMAL | BUTTON_TEXT_CENTERED #if defined(__NO_MIDI__) | BUTTON_DISABLED #endif ); Gui_Draw_Button_Box(749, (Cur_Height - 142), 34, 16, "Save", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); }
void Actualize_Midi_Ed(char gode) { if(userscreen == USER_SCREEN_SETUP_MIDI) { if(gode == UPDATE_MIDI_ED_ALL || gode == UPDATE_MIDI_ED_CC0) { Display_Midi_Automation(0); } if(gode == UPDATE_MIDI_ED_ALL || gode == UPDATE_MIDI_ED_CC1) { Display_Midi_Automation(1); } if(gode == UPDATE_MIDI_ED_ALL || gode == UPDATE_MIDI_ED_CC2) { Display_Midi_Automation(2); } if(gode == UPDATE_MIDI_ED_ALL || gode == UPDATE_MIDI_ED_CC3) { Display_Midi_Automation(3); } if(gode == UPDATE_MIDI_ED_ALL || gode == UPDATE_MIDI_ED_CC4) { Display_Midi_Automation(4); } if(gode == UPDATE_MIDI_ED_ALL || gode == UPDATE_MIDI_ED_CC5) { Display_Midi_Automation(5); } if(gode == UPDATE_MIDI_ED_ALL || gode == UPDATE_MIDI_ED_CC6) { Display_Midi_Automation(6); } if(gode == UPDATE_MIDI_ED_ALL || gode == UPDATE_MIDI_ED_CC7) { Display_Midi_Automation(7); } if(gode == UPDATE_MIDI_ED_ALL || gode == UPDATE_MIDI_ED_CC8) { Display_Midi_Automation(8); } if(gode == UPDATE_MIDI_ED_ALL || gode == UPDATE_MIDI_ED_CC9) { Display_Midi_Automation(9); } if(gode == UPDATE_MIDI_ED_ALL || gode == UPDATE_MIDI_ED_CC10) { Display_Midi_Automation(10); } if(gode == UPDATE_MIDI_ED_ALL || gode == UPDATE_MIDI_ED_CC11) { Display_Midi_Automation(11); } if(gode == UPDATE_MIDI_ED_ALL || gode == UPDATE_MIDI_ED_CC12) { Display_Midi_Automation(12); } if(gode == UPDATE_MIDI_ED_ALL || gode == UPDATE_MIDI_ED_CC13) { Display_Midi_Automation(13); } if(gode == UPDATE_MIDI_ED_ALL || gode == UPDATE_MIDI_ED_CC14) { Display_Midi_Automation(14); } if(gode == UPDATE_MIDI_ED_ALL || gode == UPDATE_MIDI_ED_CHANGE_NAME) { char tcp[30]; sprintf(tcp, "%s_", Midi_Name); if(snamesel == INPUT_MIDI_NAME) { Gui_Draw_Button_Box(583, (Cur_Height - 142), 164, 16, tcp, BUTTON_PUSHED | BUTTON_INPUT); } else { Gui_Draw_Button_Box(583, (Cur_Height - 142), 164, 16, Midi_Name, BUTTON_NORMAL | BUTTON_INPUT); } } // ----------- #if !defined(__NO_MIDI__) Midi_InitIn(); Midi_InitOut(); #endif // Select midi in device if(gode == UPDATE_MIDI_ED_ALL || gode == UPDATE_MIDI_ED_SEL_IN) { #if defined(__NO_MIDI__) value_box(70, (Cur_Height - 134), 0, BUTTON_NORMAL | BUTTON_TEXT_CENTERED | BUTTON_DISABLED); #else value_box(70, (Cur_Height - 134), c_midiin + 1, BUTTON_NORMAL | BUTTON_TEXT_CENTERED); #endif #if !defined(__NO_MIDI__) if(c_midiin != -1) { Gui_Draw_Button_Box(132, (Cur_Height - 134), 182, 16, Midi_GetInName(), BUTTON_NORMAL | BUTTON_DISABLED); } else { #endif Gui_Draw_Button_Box(132, (Cur_Height - 134), 182, 16, "None", BUTTON_NORMAL | BUTTON_DISABLED); #if !defined(__NO_MIDI__) } #endif } // Select midi out device if(gode == UPDATE_MIDI_ED_ALL || gode == UPDATE_MIDI_ED_SEL_OUT) { #if defined(__NO_MIDI__) value_box(70, (Cur_Height - 117), 0, BUTTON_NORMAL | BUTTON_TEXT_CENTERED | BUTTON_DISABLED); #else value_box(70, (Cur_Height - 117), c_midiout + 1, BUTTON_NORMAL | BUTTON_TEXT_CENTERED); #endif #if !defined(__NO_MIDI__) if(c_midiout != -1) { Gui_Draw_Button_Box(132, (Cur_Height - 117), 182, 16, Midi_GetOutName(), BUTTON_NORMAL | BUTTON_DISABLED); } else { #endif Gui_Draw_Button_Box(132, (Cur_Height - 117), 182, 16, "None", BUTTON_NORMAL | BUTTON_DISABLED); #if !defined(__NO_MIDI__) } #endif } } }
void Actualize_Track_Fx_Ed(char gode) { if(userscreen == USER_SCREEN_TRACK_FX_EDIT) { if(gode == 0 || gode == 1 || gode == 11) { if(FLANGER_AMOUNT[Track_Under_Caret] > 1.0f) FLANGER_AMOUNT[Track_Under_Caret] = 1.0f; if(FLANGER_AMOUNT[Track_Under_Caret] < -1.0f) FLANGER_AMOUNT[Track_Under_Caret] = -1.0f; Realslider(308, (Cur_Height - 121), 64 + (int) (FLANGER_AMOUNT[Track_Under_Caret] * 64.0f), FLANGER_ON[Track_Under_Caret]); outlong(458, (Cur_Height - 121), long(FLANGER_AMOUNT[Track_Under_Caret] * 100.0f), 1); } if(gode == 0 || gode == 7 || gode == 11) { if(FLANGER_FEEDBACK[Track_Under_Caret] > 0.9f) FLANGER_FEEDBACK[Track_Under_Caret] = 0.9f; if(FLANGER_FEEDBACK[Track_Under_Caret] < -1.0f) FLANGER_FEEDBACK[Track_Under_Caret] = -1.0f; Realslider(308, (Cur_Height - 67), 64 + (int) (FLANGER_FEEDBACK[Track_Under_Caret] * 64.0f), FLANGER_ON[Track_Under_Caret]); outlong(458, (Cur_Height - 67), long(FLANGER_FEEDBACK[Track_Under_Caret] * 100.0f), 1); } if(gode == 0 || gode == 4 || gode == 11) { if(FLANGER_DEPHASE[Track_Under_Caret] > PIf) FLANGER_DEPHASE[Track_Under_Caret] = PIf; if(FLANGER_DEPHASE[Track_Under_Caret] < 0.0f) FLANGER_DEPHASE[Track_Under_Caret] = 0.0f; Realslider2(74, (Cur_Height - 49), (int) (FLANGER_DEPHASE[Track_Under_Caret] * 20.371833f), FLANGER_ON[Track_Under_Caret]); outlong(159, (Cur_Height - 49), (int) (FLANGER_DEPHASE[Track_Under_Caret] * 57.29578f), 6); } if(gode == 0 || gode == 5 || gode == 11) { if(FLANGER_RATE[Track_Under_Caret] < 0.000001f) FLANGER_RATE[Track_Under_Caret] = 0.000001f; if(FLANGER_RATE[Track_Under_Caret] > 0.0001363f) FLANGER_RATE[Track_Under_Caret] = 0.0001363f; Realslider(308, (Cur_Height - 103), (int) (FLANGER_RATE[Track_Under_Caret] * 939104.92f), FLANGER_ON[Track_Under_Caret]); outlong(458, (Cur_Height - 103), long(0.1424758f / FLANGER_RATE[Track_Under_Caret]), 2); } if(gode == 0 || gode == 6 || gode == 11) { if(FLANGER_AMPL[Track_Under_Caret] > 0.01f) FLANGER_AMPL[Track_Under_Caret] = 0.01f; if(FLANGER_AMPL[Track_Under_Caret] < 0.0f) FLANGER_AMPL[Track_Under_Caret] = 0.0f; Realslider(308, (Cur_Height - 85), (int) (FLANGER_AMPL[Track_Under_Caret] * 12800.0f), FLANGER_ON[Track_Under_Caret]); outlong(458, (Cur_Height - 85), (int) (FLANGER_AMPL[Track_Under_Caret] * 10000.0f), 1); } if(gode == 0 || gode == 2 || gode == 11) { if(LFO_RATE[Track_Under_Caret] < 0.0001f) LFO_RATE[Track_Under_Caret] = 0.0001f; if(LFO_RATE[Track_Under_Caret] > 0.0078125f) LFO_RATE[Track_Under_Caret] = 0.0078125f; Realslider(74, (Cur_Height - 110), (int) (LFO_RATE[Track_Under_Caret] * 16384.0f), LFO_ON[Track_Under_Caret]); float tmprate = (8.1632653f / LFO_RATE[Track_Under_Caret]); outlong(76, (Cur_Height - 74), (long) tmprate, 2); tmprate = 1000.0f / tmprate; outfloat(138, (Cur_Height - 74), tmprate, 3); } if(gode == 0 || gode == 3 || gode == 11) { if(LFO_AMPL[Track_Under_Caret] < 0) LFO_AMPL[Track_Under_Caret] = 0; if(LFO_AMPL[Track_Under_Caret] > 128) LFO_AMPL[Track_Under_Caret] = 128; Realslider(74, (Cur_Height - 92), (int) (LFO_AMPL[Track_Under_Caret]), LFO_ON[Track_Under_Caret]); } if(gode == 0 || gode == 9 || gode == 11) { if(LFO_ON[Track_Under_Caret] == 1) { Gui_Draw_Button_Box(74, (Cur_Height - 128), 20, 16, "On", BUTTON_PUSHED); Gui_Draw_Button_Box(96, (Cur_Height - 128), 20, 16, "Off", BUTTON_NORMAL); } else { Gui_Draw_Button_Box(74, (Cur_Height - 128), 20, 16, "On", BUTTON_NORMAL); Gui_Draw_Button_Box(96, (Cur_Height - 128), 20, 16, "Off", BUTTON_PUSHED); } } if(gode == 0 || gode == 10 || gode == 11) { if(FLANGER_ON[Track_Under_Caret]) { Gui_Draw_Button_Box(184, (Cur_Height - 128), 20, 16, "On", BUTTON_PUSHED); Gui_Draw_Button_Box(206, (Cur_Height - 128), 20, 16, "Off", BUTTON_NORMAL); } else { Gui_Draw_Button_Box(184, (Cur_Height - 128), 20, 16, "On", BUTTON_NORMAL); Gui_Draw_Button_Box(206, (Cur_Height - 128), 20, 16, "Off", BUTTON_PUSHED); } } if(gode == 0 || gode == 8 || gode == 11) { if(FLANGER_DELAY[Track_Under_Caret] > 4096) FLANGER_DELAY[Track_Under_Caret] = 4096; if(FLANGER_DELAY[Track_Under_Caret] < 0) FLANGER_DELAY[Track_Under_Caret] = 0; if(fld_chan == TRUE) { FLANGER_OFFSET[Track_Under_Caret] = 8192; FLANGER_OFFSET2[Track_Under_Caret] = float(FLANGER_OFFSET[Track_Under_Caret] - FLANGER_DELAY[Track_Under_Caret]); FLANGER_OFFSET1[Track_Under_Caret] = float(FLANGER_OFFSET[Track_Under_Caret] - FLANGER_DELAY[Track_Under_Caret]); fld_chan = FALSE; } Realslider(308, (Cur_Height - 49), FLANGER_DELAY[Track_Under_Caret] / 32, FLANGER_ON[Track_Under_Caret]); outlong(458, (Cur_Height - 49), long(FLANGER_DELAY[Track_Under_Caret] / 44.1f), 2); } if(gode == 0 || gode == 12) { if(Compress_Track[Track_Under_Caret]) { Gui_Draw_Button_Box(602, (Cur_Height - 121), 20, 16, "On", BUTTON_PUSHED); Gui_Draw_Button_Box(624, (Cur_Height - 121), 20, 16, "Off", BUTTON_NORMAL); } else { Gui_Draw_Button_Box(602, (Cur_Height - 121), 20, 16, "On", BUTTON_NORMAL); Gui_Draw_Button_Box(624, (Cur_Height - 121), 20, 16, "Off", BUTTON_PUSHED); } } if(gode == 0 || gode == 12) { Display_Track_Compressor(); } if(gode == 0 || gode == 13) { Display_Track_Volume(); } if(gode == 0 || gode == 14) { Realslider_Vert(710, (Cur_Height - 120), (int) ((2.0f - EqDat[Track_Under_Caret].lg) * 50.0f), 16, 100 + 16, 64, TRUE); Realslider_Vert(710 + (22 * 1), (Cur_Height - 120), (int) ((2.0f - EqDat[Track_Under_Caret].mg) * 50.0f), 16, 100 + 16, 64, TRUE); Realslider_Vert(710 + (22 * 2), (Cur_Height - 120), (int) ((2.0f - EqDat[Track_Under_Caret].hg) * 50.0f), 16, 100 + 16, 64, TRUE); } }//User gui screen match }
void Refresh_303_Unit(int Unit, int gode) { char tcp[40]; if(userscreen == USER_SCREEN_TB303_EDIT) { if(gode == 0 || gode == 1) { number303(tb303[Unit].patternlength[tb303[Unit].selectedpattern], 118, (Cur_Height - 44)); } // Selected bassline if(gode == 0) { if(Unit) { Skincopy(577, (Cur_Height - 58), 138, 119, 3, 3); Skincopy(558, (Cur_Height - 58), 143, 119, 3, 3); Gui_Draw_Button_Box(668, (Cur_Height - 78), 64, 16, "Tune to 1", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); } else { Skincopy(558, (Cur_Height - 58), 138, 119, 3, 3); Skincopy(577, (Cur_Height - 58), 143, 119, 3, 3); Gui_Draw_Button_Box(668, (Cur_Height - 78), 64, 16, "Tune to 2", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); } // Make sure we display the right boundaries if(editsteps[Unit][tb303[Unit].selectedpattern] > tb303[Unit].patternlength[tb303[Unit].selectedpattern] - 1) { editsteps[Unit][tb303[Unit].selectedpattern] = tb303[Unit].patternlength[tb303[Unit].selectedpattern] - 1; } number303(editsteps[Unit][tb303[Unit].selectedpattern] + 1, 486, (Cur_Height - 114)); // Displaying pattern selection leds // Bank [A-D] int tbank303 = tb303[Unit].selectedpattern / 8; tbank303 *= 15; // Restoring background Skincopy(86, (Cur_Height - 74), 6, 66, 59, 14); // Light the bank Skincopy(86 + tbank303, (Cur_Height - 74), 15 + tbank303, 117, 14, 14); // Displaying pattern selection leds // Pattern [1-8] int tpat303 = tb303[Unit].selectedpattern - (tb303[Unit].selectedpattern / 8) * 8; // Restoring background Skincopy(86, (Cur_Height - 116), 6, 24, 59, 30); // Light the bank if(tpat303 < 4) { Skincopy(86 + tpat303 * 15, (Cur_Height - 116), 75 + tpat303 * 15, 117, 14, 14); } else { tpat303 -= 4; Skincopy(86 + tpat303 * 15, (Cur_Height - 101), 75 + tpat303 * 15, 132, 14, 14); } } // Displaying waveform switch if(gode == 0 || gode == 2) { if(tb303[Unit].waveform) Skincopy(180, (Cur_Height - 128), 137, 135, 13, 8); else Skincopy(180, (Cur_Height - 128), 137, 125, 13, 8); } // Draw 303 Knobs if(gode == 0 || gode == 3) knob(229, (Cur_Height - 124), tb303[Unit].tune / 2); if(gode == 0 || gode == 4) knob(262, (Cur_Height - 124), tb303[Unit].cutoff / 2); if(gode == 0 || gode == 5) knob(295, (Cur_Height - 124), tb303[Unit].resonance / 2); if(gode == 0 || gode == 6) knob(328, (Cur_Height - 124), tb303[Unit].envmod / 2); if(gode == 0 || gode == 7) knob(361, (Cur_Height - 124), tb303[Unit].decay / 2); if(gode == 0 || gode == 8) knob(394, (Cur_Height - 124), tb303[Unit].accent / 2); // Restoring notes background if(gode == 0 || gode == 9) { // Restore it Skincopy(88 + 80, 66 + (Cur_Height - 140), 88, 66, 195, 40); // Light a note switch(tb303[Unit].tone[tb303[Unit].selectedpattern][editsteps[Unit][tb303[Unit].selectedpattern]]) { case 0: Skincopy(88 + 80, 91 + (Cur_Height - 140), 301, 119, 13, 13); break; case 1: Skincopy(101 + 80, 66 + (Cur_Height - 140), 301, 119, 13, 13); break; case 2: Skincopy(114 + 80, 91 + (Cur_Height - 140), 301, 119, 13, 13); break; case 3: Skincopy(127 + 80, 66 + (Cur_Height - 140), 301, 119, 13, 13); break; case 4: Skincopy(140 + 80, 91 + (Cur_Height - 140), 301, 119, 13, 13); break; case 5: Skincopy(166 + 80, 91 + (Cur_Height - 140), 301, 119, 13, 13); break; case 6: Skincopy(179 + 80, 66 + (Cur_Height - 140), 301, 119, 13, 13); break; case 7: Skincopy(191 + 80, 91 + (Cur_Height - 140), 301, 119, 13, 13); break; case 8: Skincopy(204 + 80, 66 + (Cur_Height - 140), 301, 119, 13, 13); break; case 9: Skincopy(217 + 80, 91 + (Cur_Height - 140), 301, 119, 13, 13); break; case 10: Skincopy(230 + 80, 66 + (Cur_Height - 140), 301, 119, 13, 13); break; case 11: Skincopy(243 + 80, 91 + (Cur_Height - 140), 301, 119, 13, 13); break; case 12: Skincopy(269 + 80, 91 + (Cur_Height - 140), 301, 119, 13, 13); break; } } // Light pause/note led if(gode == 0 || gode == 10) { if(tb303[Unit].flag[tb303[Unit].selectedpattern][editsteps[Unit][tb303[Unit].selectedpattern]].pause) { Skincopy(402, (Cur_Height - 79), 138, 119, 3, 3); Skincopy(439, (Cur_Height - 79), 143, 119, 3, 3); } else { Skincopy(402, (Cur_Height - 79), 143, 119, 3, 3); Skincopy(439, (Cur_Height - 79), 138, 119, 3, 3); } } // Light slide/off led if(gode == 0 || gode == 11) { if(tb303[Unit].flag[tb303[Unit].selectedpattern][editsteps[Unit][tb303[Unit].selectedpattern]].slide_flag) { Skincopy(456, (Cur_Height - 57), 138, 119, 3, 3); } else { Skincopy(456, (Cur_Height - 57), 143, 119, 3, 3); } } // Light accent/off led if(gode == 0 || gode == 12) { if(tb303[Unit].flag[tb303[Unit].selectedpattern][editsteps[Unit][tb303[Unit].selectedpattern]].accent_flag) { Skincopy(431, (Cur_Height - 57), 138, 119, 3, 3); } else { Skincopy(431, (Cur_Height - 57), 143, 119, 3, 3); } } // Transpose up flag if(gode == 0 || gode == 13) { if(tb303[Unit].flag[tb303[Unit].selectedpattern][editsteps[Unit][tb303[Unit].selectedpattern]].transposeup_flag) { Skincopy(406, (Cur_Height - 57), 138, 119, 3, 3); } else { Skincopy(406, (Cur_Height - 57), 143, 119, 3, 3); } } // Transpose down flag if(gode == 0 || gode == 14) { if(tb303[Unit].flag[tb303[Unit].selectedpattern][editsteps[Unit][tb303[Unit].selectedpattern]].transposedown_flag) { Skincopy(381, (Cur_Height - 57), 138, 119, 3, 3); } else { Skincopy(381, (Cur_Height - 57), 143, 119, 3, 3); } } // Volume if(gode == 0 || gode == 15) { // volume background Skincopy(529, (Cur_Height - 115), 449, 25, 19, 88); int tb303v = (int) (tb303engine[Unit].tbVolume * 72.0f); // Volume slider Skincopy(531, (Cur_Height - 42) - tb303v, 0, 116, 13, 11); } if(gode == 0 || gode == 18) { sprintf(tcp, "%s_", tb303[Unit].pattern_name[tb303[Unit].selectedpattern]); if(snamesel == INPUT_303_PATTERN) { Gui_Draw_Button_Box(600, (Cur_Height - 120), 164, 16, tcp, BUTTON_PUSHED | BUTTON_INPUT); } else { Gui_Draw_Button_Box(600, (Cur_Height - 120), 164, 16, tb303[Unit].pattern_name[tb303[Unit].selectedpattern], BUTTON_NORMAL | BUTTON_INPUT); } } if(gode == 0 || gode == 19) { Gui_Draw_Arrows_Number_Box2(670, (Cur_Height - 42), tb303[Unit].scale, BUTTON_NORMAL | BUTTON_RIGHT_MOUSE | BUTTON_TEXT_CENTERED); } } }
void Draw_303_Ed(void) { Draw_Editors_Bar(USER_SCREEN_TB303_EDIT); Gui_Draw_Button_Box(0, (Cur_Height - 153), fsize, 130, "", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Flat_Box("303 Units"); Gui_Draw_Button_Box(8, (Cur_Height - 134), 64, 16, "Reset Patt.", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(8, (Cur_Height - 116), 64, 16, "Clear Patt.", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(8, (Cur_Height - 98), 64, 16, "Rnd.NoteOn", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(8, (Cur_Height - 80), 64, 16, "Rand.Tones", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(8, (Cur_Height - 62), 64, 16, "Rand.Flags", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(600, (Cur_Height - 98), 64, 16, "All Notes Up", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(668, (Cur_Height - 98), 64, 16, "All Notes Dn", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(600, (Cur_Height - 78), 64, 16, "Copy Patt.", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(600, (Cur_Height - 60), 64, 16, "Paste Patt.", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(600, (Cur_Height - 138), 56, 16, "Patt. Name", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Button_Box(658, (Cur_Height - 138), 34, 16, "Save", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Skincopy(80, (Cur_Height - 140), 0, 0, 510, 114); Gui_Draw_Button_Box(668, (Cur_Height - 60), 64, 16, "Scale", BUTTON_NORMAL | BUTTON_DISABLED | BUTTON_NO_BORDER | BUTTON_TEXT_CENTERED); Actualize_303_Ed(0); }
// ------------------------------------------------------ // Check if a requester has been initialized and display it int Check_Requester(LPREQUESTER Requester) { int Pressed = 0; if(Current_Requester == Requester) { int i; if(Req_Picture) { SetColor(COL_BLACK); /*Fillrect(Pos_X + BEVEL_SIZE, Pos_Y + BEVEL_SIZE, Pos_X + BEVEL_SIZE + Size_X - (BEVEL_SIZE * 2) + 1, Pos_Y + BEVEL_SIZE + Size_Y - (BEVEL_SIZE * 2) + 1);*/ // Display the picture Copy(Req_Picture, Pos_X + BEVEL_SIZE + 1, Pos_Y + BEVEL_SIZE + 1, 0, 0, Req_Picture->w, Req_Picture->h - 2); } else { Gui_Draw_Button_Box(Pos_X, Pos_Y, Size_X, Size_Y, "", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Button_Box(Pos_X + BEVEL_SIZE - 1, Pos_Y + BEVEL_SIZE - 1, Size_X - ((BEVEL_SIZE - 1) * 2), Size_Y - ((BEVEL_SIZE - 1) * 2), "", BUTTON_PUSHED | BUTTON_DISABLED); // Or the intern box Gui_Draw_Button_Box(Pos_X + (BEVEL_SIZE + 1), Pos_Y + (BEVEL_SIZE + 1), Size_X - ((BEVEL_SIZE + 1) * 2), Size_Y - ((BEVEL_SIZE + 1) * 2), "", BUTTON_NORMAL | BUTTON_DISABLED); } for(i = 0; i < Nbr_Lines; i++) { PrintString(Pos_X + Req_Txt_Pos_X[i], Pos_Y + ((i + 1) * Font_Height) + (Font_Height / 2), USE_FONT, Req_Txt_Lines[i]); } for(i = 0; i < Nbr_Buttons; i++) { Gui_Draw_Button_Box(Pos_X + Buttons_Pos[i] - 1, Pos_Y + (Size_Y - Font_Height) - 16 - 1, Buttons_Size[i] + 2, 16 + 2, "", BUTTON_PUSHED | BUTTON_DISABLED); if(Req_Default_Button == i + 1) { // Add a box around the default button Gui_Draw_Button_Box(Pos_X + Buttons_Pos[i] - 2, Pos_Y + (Size_Y - Font_Height) - 16 - 2, Buttons_Size[i] + 4, 16 + 4, "", BUTTON_PUSHED | BUTTON_DISABLED); } Gui_Draw_Button_Box(Pos_X + Buttons_Pos[i], Pos_Y + (Size_Y - Font_Height) - 16, Buttons_Size[i], 16, Buttons_Text[i], BUTTON_NORMAL | BUTTON_TEXT_CENTERED); } if(Req_Pressed_Button) { Kill_Requester(); Pressed = Req_Pressed_Button; Req_Pressed_Button = 0; gui_action = Requester_Action; Requester_Action = GUI_CMD_NOP; } } // Return the clicked button return(Pressed); }
// ------------------------------------------------------ // Display the files list on screen void Dump_Files_List(int xr, int yr) { int y = lt_index[Scopish]; FILE *File; char Size_String[64]; int space = Font_Height + 1; switch(Scopish) { case SCOPE_ZONE_MOD_DIR: case SCOPE_ZONE_INSTR_DIR: case SCOPE_ZONE_PRESET_DIR: case SCOPE_ZONE_REVERB_DIR: case SCOPE_ZONE_PATTERN_DIR: case SCOPE_ZONE_MIDICFG_DIR: case SCOPE_ZONE_SAMPLE_DIR: SetColor(COL_BACKGROUND); bjbox(xr - 1, yr + 1, Cur_Width - 412, 137); // Current dir background Gui_Draw_Button_Box(394, 24, Cur_Width - 522, 16, "", BUTTON_NORMAL | BUTTON_DISABLED); switch(Scopish) { case SCOPE_ZONE_MOD_DIR: PrintString(398, 26, USE_FONT, Dir_Mods, (Cur_Width - 522)); break; case SCOPE_ZONE_INSTR_DIR: PrintString(398, 26, USE_FONT, Dir_Instrs, (Cur_Width - 522)); break; case SCOPE_ZONE_PRESET_DIR: PrintString(398, 26, USE_FONT, Dir_Presets, (Cur_Width - 522)); break; case SCOPE_ZONE_REVERB_DIR: PrintString(398, 26, USE_FONT, Dir_Reverbs, (Cur_Width - 522)); break; case SCOPE_ZONE_MIDICFG_DIR: PrintString(398, 26, USE_FONT, Dir_MidiCfg, (Cur_Width - 522)); break; case SCOPE_ZONE_PATTERN_DIR: PrintString(398, 26, USE_FONT, Dir_Patterns, (Cur_Width - 522)); break; case SCOPE_ZONE_SAMPLE_DIR: PrintString(398, 26, USE_FONT, Dir_Samples, (Cur_Width - 522)); break; } if(lt_items[Scopish]) { for(int counter = 0; counter < NBR_ITEMS; counter++) { int rel_val = y + counter; if(y + counter < lt_items[Scopish]) { // Highlight bar in files requester. if(y + counter == lt_curr[Scopish]) { SetColor(COL_PUSHED_MED); bjbox(xr - 1, yr + (counter * space) + 2, (Cur_Width - 413), space); } switch(Get_FileType(rel_val)) { case _A_SUBDIR: PrintString(xr, yr + (counter * space), USE_FONT_LOW, Get_FileName(rel_val), Cur_Width - 504); PrintString(xr + (Cur_Width - 436), yr + (counter * space) + 1, USE_FONT_LOW, "<Dir>"); break; case _A_FILE: PrintString(xr, yr + (counter * space) + 1, USE_FONT, Get_FileName(rel_val), Cur_Width - 504); File = fopen(Get_FileName(rel_val), "rb"); if(File) { int Size = Get_File_Size(File); if(Size == 0) { sprintf(Size_String, "0"); } else sprintf(Size_String, "%9.d", Size); int pos = (xr + (Cur_Width - 415)) - Get_Size_Text(Size_String); PrintString(pos, yr + (counter * space) + 1, USE_FONT, Size_String); fclose(File); } else { PrintString(xr + (Cur_Width - 460), yr + (counter * space) + 1, USE_FONT_LOW, "<Locked>"); } break; case _A_SEP: SetColor(COL_PUSHED_HI); bjbox(xr - 1, yr + (counter * space) + (space / 2) + 1, Cur_Width - 413, 1); break; } } } } else { PrintString(xr, yr, USE_FONT_LOW, Get_FileName(0)); } break; } }
void Draw_DiskIO_Ed(void) { Draw_Editors_Bar(USER_SCREEN_DISKIO_EDIT); Gui_Draw_Button_Box(0, (Cur_Height - 153), fsize, 130, "", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Flat_Box("Disk Operations / Module Credits"); Gui_Draw_Button_Box(254, (Cur_Height - 112), 80, 16, "Calc .ptp Size", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); outlong(254, (Cur_Height - 94), Final_Mod_Length, 7); Gui_Draw_Button_Box(254, (Cur_Height - 76), 80, 16, "Calc Length", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Display_Song_Length(); Gui_Draw_Button_Box(8, (Cur_Height - 94), 80, 16, "Title", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Button_Box(8, (Cur_Height - 76), 80, 16, "Produced By", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Button_Box(8, (Cur_Height - 58), 80, 16, "Message", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Button_Box(8, (Cur_Height - 130), 80, 16, "Zzaapp", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(90, (Cur_Height - 112), 80, 16, "WAV Render", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(90, (Cur_Height - 130), 80, 16, "Show Info", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(342, (Cur_Height - 130), 404, 102, "", BUTTON_NORMAL | BUTTON_DISABLED); PrintString(350, (Cur_Height - 128), USE_FONT, "Tracks To Render :"); Display_Tracks_To_Render(); PrintString(654, (Cur_Height - 124), USE_FONT, "Render To :"); Gui_Draw_Button_Box(350, (Cur_Height - 68), 106, 16, "Output Bits Quality", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Button_Box(350, (Cur_Height - 49), 106, 16, "One file per track", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Button_Box(532, (Cur_Height - 86), 60, 26, "From", BUTTON_NORMAL | BUTTON_DISABLED | BUTTON_NO_BORDER | BUTTON_TEXT_VTOP); Gui_Draw_Button_Box(532, (Cur_Height - 66), 60, 26, "To", BUTTON_NORMAL | BUTTON_DISABLED | BUTTON_NO_BORDER | BUTTON_TEXT_VTOP); }
void Draw_Track_Fx_Ed(void) { Draw_Editors_Bar(USER_SCREEN_TRACK_FX_EDIT); Gui_Draw_Button_Box(0, (Cur_Height - 153), fsize, 130, "", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Flat_Box("Track: Properties, Flanger & Compressor"); Gui_Draw_Button_Box(4, (Cur_Height - 138), 228, 110, "", BUTTON_NORMAL | BUTTON_DISABLED | BUTTON_TEXT_VTOP); Gui_Draw_Button_Box(8, (Cur_Height - 128), 64, 16, "Filter LFO", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Button_Box(118, (Cur_Height - 128), 64, 16, "Flanger", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Button_Box(8, (Cur_Height - 110), 64, 16, "Frequency", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Button_Box(8, (Cur_Height - 92), 64, 16, "Amplitude", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Button_Box(8, (Cur_Height - 74), 64, 16, "LFO Status", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Button_Box(8, (Cur_Height - 49), 64, 16, "Flanger 3D", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Button_Box(240, (Cur_Height - 138), 288, 110, "Flanger Settings", BUTTON_NORMAL | BUTTON_DISABLED | BUTTON_TEXT_VTOP); Gui_Draw_Button_Box(248, (Cur_Height - 121), 56, 16, "Amount", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Button_Box(248, (Cur_Height - 103), 56, 16, "Period", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Button_Box(248, (Cur_Height - 85), 56, 16, "Amplitude", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Button_Box(248, (Cur_Height - 67), 56, 16, "Feedback", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Button_Box(248, (Cur_Height - 49), 56, 16, "Delay", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Button_Box(536, (Cur_Height - 138), 144, 76, "Compressor", BUTTON_NORMAL | BUTTON_DISABLED | BUTTON_TEXT_VTOP); Gui_Draw_Button_Box(544, (Cur_Height - 121), 56, 16, "Active", BUTTON_NORMAL | BUTTON_DISABLED); Gui_Draw_Button_Box(536, (Cur_Height - 58), 144, 30, "", BUTTON_NORMAL | BUTTON_DISABLED | BUTTON_TEXT_VTOP); Gui_Draw_Button_Box(690, (Cur_Height - 138), 100, 110, "Equalizer", BUTTON_NORMAL | BUTTON_DISABLED | BUTTON_TEXT_VTOP); Gui_Draw_Button_Box(710, (Cur_Height - 55), 16, 16, "C", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(710 + (22 * 1), (Cur_Height - 55), 16, 16, "C", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(710 + (22 * 2), (Cur_Height - 55), 16, 16, "C", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(710, (Cur_Height - 40), 16, 16, L_ O_, BUTTON_NORMAL | BUTTON_NO_BORDER | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(710 + (22 * 1), (Cur_Height - 40), 16, 16, M_ E_ D_, BUTTON_NORMAL | BUTTON_NO_BORDER | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(710 + (22 * 2), (Cur_Height - 40), 16, 16, H_ I_, BUTTON_NORMAL | BUTTON_NO_BORDER | BUTTON_TEXT_CENTERED); }
// ------------------------------------------------------ // Refresh function void Actualize_DiskIO_Ed(int gode) { if(userscreen == USER_SCREEN_DISKIO_EDIT) { char tname[32]; if(gode == 0 || gode == 5) { switch(rawrender_target) { case RENDER_TO_FILE: Gui_Draw_Button_Box(654, (Cur_Height - 106), 80, 16, "Wav File", BUTTON_PUSHED | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(654, (Cur_Height - 88), 80, 16, "Mono Sample", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(654, (Cur_Height - 70), 80, 16, "Stereo Sample", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Allow_32bit = 0; Allow_Single_Render = 0; break; case RENDER_TO_MONO: Gui_Draw_Button_Box(654, (Cur_Height - 106), 80, 16, "Wav File", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(654, (Cur_Height - 88), 80, 16, "Mono Sample", BUTTON_PUSHED | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(654, (Cur_Height - 70), 80, 16, "Stereo Sample", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Allow_32bit = BUTTON_DISABLED; Allow_Single_Render = BUTTON_DISABLED; break; case RENDER_TO_STEREO: Gui_Draw_Button_Box(654, (Cur_Height - 106), 80, 16, "Wav File", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(654, (Cur_Height - 88), 80, 16, "Mono Sample", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(654, (Cur_Height - 70), 80, 16, "Stereo Sample", BUTTON_PUSHED | BUTTON_TEXT_CENTERED); Allow_32bit = BUTTON_DISABLED; Allow_Single_Render = BUTTON_DISABLED; break; } } if(gode == 0 || gode == 1) { if(rawrender_32float) { Gui_Draw_Button_Box(458, (Cur_Height - 68), 29, 16, "32", Allow_32bit | BUTTON_PUSHED | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(458 + 31, (Cur_Height - 68), 29, 16, "16", Allow_32bit | BUTTON_NORMAL | BUTTON_TEXT_CENTERED); } else { Gui_Draw_Button_Box(458, (Cur_Height - 68), 29, 16, "32", Allow_32bit | BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(458 + 31, (Cur_Height - 68), 29, 16, "16", Allow_32bit | BUTTON_PUSHED | BUTTON_TEXT_CENTERED); } } if(gode == 0 || gode == 2) { if(!rawrender_range) { Gui_Draw_Button_Box(534, (Cur_Height - 112), 40, 16, "Whole", BUTTON_PUSHED | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(534 + 42, (Cur_Height - 112), 40, 16, "Range", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); } else { Gui_Draw_Button_Box(534, (Cur_Height - 112), 40, 16, "Whole", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(534 + 42, (Cur_Height - 112), 40, 16, "Range", BUTTON_PUSHED | BUTTON_TEXT_CENTERED); } } // From position if(gode == 0 || gode == 3) { if(rawrender_from < 0) rawrender_from = 0; if(rawrender_from > (Song_Length - 1)) rawrender_from = (Song_Length - 1); if(rawrender_from > rawrender_to) { rawrender_to = rawrender_from; Gui_Draw_Arrows_Number_Box(572, (Cur_Height - 66), rawrender_to, BUTTON_NORMAL | (rawrender_range ? 0 : BUTTON_DISABLED) | BUTTON_RIGHT_MOUSE | BUTTON_TEXT_CENTERED); } Gui_Draw_Arrows_Number_Box(572, (Cur_Height - 86), rawrender_from, BUTTON_NORMAL | (rawrender_range ? 0 : BUTTON_DISABLED) | BUTTON_RIGHT_MOUSE | BUTTON_TEXT_CENTERED); } // To position if(gode == 0 || gode == 4) { if(rawrender_to < 0) rawrender_to = 0; if(rawrender_to > (Song_Length - 1)) rawrender_to = (Song_Length - 1); if(rawrender_to < rawrender_from) { rawrender_from = rawrender_to; Gui_Draw_Arrows_Number_Box(572, (Cur_Height - 86), rawrender_from, BUTTON_NORMAL | (rawrender_range ? 0 : BUTTON_DISABLED) | BUTTON_RIGHT_MOUSE | BUTTON_TEXT_CENTERED); } Gui_Draw_Arrows_Number_Box(572, (Cur_Height - 66), rawrender_to, BUTTON_NORMAL | (rawrender_range ? 0 : BUTTON_DISABLED) | BUTTON_RIGHT_MOUSE | BUTTON_TEXT_CENTERED); } if(allow_save) { Gui_Draw_Button_Box(8, (Cur_Height - 112), 80, 16, "Save Module", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(254, (Cur_Height - 130), 80, 16, "Save .ptp", BUTTON_NORMAL | BUTTON_TEXT_CENTERED); } else { Gui_Draw_Button_Box(8, (Cur_Height - 112), 80, 16, "Save Module", BUTTON_NORMAL | BUTTON_DISABLED | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(254, (Cur_Height - 130), 80, 16, "Save .ptp", BUTTON_NORMAL | BUTTON_DISABLED | BUTTON_TEXT_CENTERED); } if(gode == 0 || gode == 5) { if(rawrender_multi) { Gui_Draw_Button_Box(458, (Cur_Height - 49), 29, 16, "On", Allow_Single_Render | BUTTON_PUSHED | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(458 + 31, (Cur_Height - 49), 29, 16, "Off", Allow_Single_Render | BUTTON_NORMAL | BUTTON_TEXT_CENTERED); } else { Gui_Draw_Button_Box(458, (Cur_Height - 49), 29, 16, "On", Allow_Single_Render | BUTTON_NORMAL | BUTTON_TEXT_CENTERED); Gui_Draw_Button_Box(458 + 31, (Cur_Height - 49), 29, 16, "Off", Allow_Single_Render | BUTTON_PUSHED | BUTTON_TEXT_CENTERED); } } if(snamesel == INPUT_MODULE_NAME) { sprintf(tname, "%s_", name); Gui_Draw_Button_Box(90, (Cur_Height - 94), 162, 16, tname, BUTTON_PUSHED | BUTTON_INPUT); } else { sprintf(tname, "%s", name); Gui_Draw_Button_Box(90, (Cur_Height - 94), 162, 16, tname, BUTTON_NORMAL | BUTTON_INPUT); } if(snamesel == INPUT_MODULE_ARTIST) { sprintf(tname, "%s_", artist); Gui_Draw_Button_Box(90, (Cur_Height - 76), 162, 16, tname, BUTTON_PUSHED | BUTTON_INPUT); } else { sprintf(tname, "%s", artist); Gui_Draw_Button_Box(90, (Cur_Height - 76), 162, 16, tname, BUTTON_NORMAL | BUTTON_INPUT); } if(snamesel == INPUT_MODULE_STYLE) { sprintf(tname, "%s_", style); Gui_Draw_Button_Box(90, (Cur_Height - 58), 162, 16, tname, BUTTON_PUSHED | BUTTON_INPUT); } else { sprintf(tname, "%s", style); Gui_Draw_Button_Box(90, (Cur_Height - 58), 162, 16, tname, BUTTON_NORMAL | BUTTON_INPUT); } } }