// ShowOptionTab(): bool FreeKeyInterface::ShowOptionTab() { UNGHOST_CON( opt_fractional_frames ); UNGHOST_CON( opt_undo_levels ); UNGHOST_CON( opt_draw_style ); UNGHOST_CON( opt_use_opengl_item_list ); UNGHOST_CON( opt_use_opengl_legacy ); return true; }
// ShowGroupTab(): bool FreeKeyInterface::ShowGroupTab() { UNGHOST_CON( group_name ); UNGHOST_CON( group_delete ); UNGHOST_CON( group_edit_mode ); UNGHOST_CON( group_edit_apply ); REDRAW_CON( group_name ); return true; }
// HandleMatchToggle(): void HandleMatchToggle( LWControl *con, void *data ) { int state; GET_INT( rint->match_toggle, state ); if( state == 0 ) { GHOST_CON( rint->match_string ); } else { UNGHOST_CON( rint->match_string ); } }
// HandleList(): void HandleList( LWControl *con, void *data ) { int index, column, other; GET_IVEC( rint->list, index, column, other ); if( index >= (int)rint->swaps.NumElements() ) { index = ((int)rint->swaps.NumElements()) - 1; SET_IVEC( rint->list, index, 1, 0 ); } else { if( index != -1 ) { int x = CON_MOUSEX( con ); int y = CON_MOUSEY( con ); if( x < list_column_widths[0] + 8 ) rint->swaps[ index ]->SetUse( !rint->swaps[ index ]->GetUse() ); } } if( index == -1 ) { SET_STR( rint->path, "", 0 ); SET_FLOAT( rint->weight, 1.0 ); SET_INT( rint->enable, 1 ); GHOST_CON( rint->path ); GHOST_CON( rint->weight ); GHOST_CON( rint->enable ); } else { char * string = (char *)rint->swaps[ index ]->GetFullPath(); if( string == NULL ) { SET_STR( rint->path, "", 0 ); } else { SET_STR( rint->path, string, strlen( string ) ); } SET_FLOAT( rint->weight, rint->swaps[ index ]->GetWeight() ); SET_INT( rint->enable, rint->swaps[ index ]->GetUse() ); UNGHOST_CON( rint->path ); UNGHOST_CON( rint->weight ); UNGHOST_CON( rint->enable ); } }
// ShowItemSelectionTab(): bool FreeKeyInterface::ShowItemSelectionTab() { UNGHOST_CON( select_item_name ); UNGHOST_CON( select_name_mode ); UNGHOST_CON( apply_select_item_name ); UNGHOST_CON( select_toggle ); UNGHOST_CON( select_item_mode ); UNGHOST_CON( select_info_area ); UNGHOST_CON( fk_int->select_children_toggle ); REDRAW_CON( select_item_name ); // Decide if the And Children toggle should be ghosted int sel_opt, sel_mode; GET_INT( fk_int->select_item_mode, sel_mode ); GET_INT( fk_int->select_toggle, sel_opt ); if( (sel_opt == 2) && (sel_mode > 0) ) GHOST_CON( fk_int->select_children_toggle ); return true; }
// ShowKeySelectionTab(): bool FreeKeyInterface::ShowKeySelectionTab() { UNGHOST_CON( key_select_info_area ); return true; }