1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | // Added this function function View_ID open_right_panel(Application_Links *app, View_ID view){ View_ID special_view = open_view(app, view, ViewSplit_Right); new_view_settings(app, special_view); Buffer_ID buffer = view_get_buffer(app, special_view, Access_Always); Face_ID face_id = get_face_id(app, buffer); Face_Metrics metrics = get_face_metrics(app, face_id); view_set_split_pixel_size(app, special_view, (i32)(metrics.line_height*14.f)); view_set_passive(app, special_view, true); return(special_view); } function View_ID open_build_footer_panel(Application_Links *app){ if (!view_exists(app, build_footer_panel_view_id)){ View_ID view = get_active_view(app, Access_Always); build_footer_panel_view_id = open_right_panel(app, view); // Changed this line view_set_active(app, view); } return(build_footer_panel_view_id); } |