static void SelectLeftSliderWidth( struct Tracker_Windows *window, ReqType reqtype ){ char temp[100]; int newwidth; sprintf(temp,"New Width (now %d) >",window->leftslider.width); newwidth=GFX_GetInteger( window, reqtype, temp, 4, window->wblock->temponodearea.x2, true ); if(newwidth<4) return; window->leftslider.width=newwidth; UpdateAllWBlockCoordinates(window); window->blt.clear_do=false; window->must_redraw = true; SETTINGS_write_int("left_slider_width",newwidth); }
static void SelectBottomSliderHeight( struct Tracker_Windows *window, ReqType reqtype ){ char temp[100]; int newwidth; sprintf(temp,"New Height (Now: %d. Use 0 to set automatic value) >",window->bottomslider_height); newwidth=GFX_GetInteger( window, reqtype, temp, 0, window->height-(window->wblock->t.y1+(window->fontheight*6)), true ); if(newwidth<0) return; GFX_set_bottom_widget_height(newwidth < 2 ? g_default_slider_height - 2 : newwidth); UpdateAllWBlockCoordinates(window); window->blt.clear_do=false; window->must_redraw = true; SETTINGS_write_int("bottom_slider_height",newwidth); }
void SelectMinNodeSize( struct Tracker_Windows *window, ReqType reqtype ){ struct WBlocks *wblock=window->wblock; char temp[100]; int newwidth; sprintf(temp,"New Size (now %d) >",window->minnodesize); newwidth=GFX_GetInteger( window, reqtype, temp, 1, 40, true ); if(newwidth<1) return; window->minnodesize=newwidth; UpdateReallinesDependens(window,wblock); window->must_redraw = true; SETTINGS_write_int("minimum_node_size",newwidth); }
static void SetLineOpacity( struct Tracker_Windows *window, ReqType reqtype ){ char temp[1000]; int new_opacity; sprintf(temp,"New Line Opacity (0-1000) (now %d) >",line_opacity); new_opacity = GFX_GetInteger( window, reqtype, temp, 0, 1000, true ); if(new_opacity<0 || new_opacity>1000) return; line_opacity = new_opacity; SETTINGS_write_int("line_opacity", new_opacity); window->must_redraw = true; }
static void SetFirstBeatOpacity( struct Tracker_Windows *window, ReqType reqtype ){ char temp[1000]; int new_opacity; sprintf(temp,"New First Beat Opacity (0-1000) (now %d) >",first_beat_opacity); new_opacity = GFX_GetInteger( window, reqtype, temp, 0, 1000, true ); if(new_opacity<0 || new_opacity>1000) return; first_beat_opacity = new_opacity; window->wblock->block->is_dirty = true; SETTINGS_write_int("first_beat_opacity", new_opacity); }
void SelectBottomSliderHeight( struct Tracker_Windows *window, ReqType reqtype ){ char temp[100]; int newwidth; sprintf(temp,"New Height (now %d) >",window->bottomslider.width); newwidth=GFX_GetInteger( window, reqtype, temp, 2, window->height-(window->wblock->t.y1+(window->fontheight*6)) ); if(newwidth<2) return; window->bottomslider.width=newwidth; UpdateAllWBlockCoordinates(window); window->blt.clear_do=false; window->must_redraw = true; SETTINGS_write_int("bottom_slider_height",newwidth); }
void MIDI_set_use_0x90_for_note_off(bool doit){ SETTINGS_write_int("use_0x90_for_note_off",doit?1:0); useOx90ForNoteOff = doit; }