@@ -242,8 +242,10 @@ private void BuildTabBar(ImGui gui) {
242242 gui . ShowDropDown ( gui . lastRect , SettingsDropdown , new Padding ( 0f , 0f , 0f , 0.5f ) ) ;
243243 }
244244
245- if ( gui . BuildButton ( Icon . Plus ) ) {
246- gui . ShowDropDown ( gui . lastRect , CreatePageDropdown , new Padding ( 0f , 0f , 0f , 0.5f ) ) ;
245+ if ( gui . BuildButton ( Icon . Plus ) . WithTooltip ( gui , "Create production sheet (Ctrl+" +
246+ ImGuiUtils . ScanToString ( SDL . SDL_Scancode . SDL_SCANCODE_T ) + ")" ) ) {
247+
248+ ProductionTableView . CreateProductionSheet ( ) ;
247249 }
248250
249251 gui . allocator = RectAllocator . RightRow ;
@@ -312,19 +314,6 @@ public ProjectPage AddProjectPage(string name, FactorioObject? icon, Type conten
312314 return page ;
313315 }
314316
315- private void CreatePageDropdown ( ImGui gui ) {
316- foreach ( var ( type , view ) in registeredPageViews ) {
317- view . CreateModelDropdown ( gui , type , project ) ;
318- }
319-
320- if ( SDL . SDL_HasClipboardText ( ) == SDL . SDL_bool . SDL_TRUE ) {
321- gui . AllocateSpacing ( ) ;
322- if ( gui . BuildContextMenuButton ( "Import page from clipboard" ) && gui . CloseDropdown ( ) ) {
323- ProjectPageSettingsPanel . LoadProjectPageFromClipboard ( ) ;
324- }
325- }
326- }
327-
328317 public void BuildSubHeader ( ImGui gui , string text ) {
329318 using ( gui . EnterGroup ( ObjectTooltip . contentPadding ) ) {
330319 gui . BuildText ( text , Font . subheader ) ;
@@ -409,6 +398,10 @@ private void SettingsDropdown(ImGui gui) {
409398 ShowSummaryTab ( ) ;
410399 }
411400
401+ if ( gui . BuildContextMenuButton ( "Summary (Legacy)" ) && gui . CloseDropdown ( ) ) {
402+ ProjectPageSettingsPanel . Show ( null , ( name , icon ) => Instance . AddProjectPage ( name , icon , typeof ( ProductionSummary ) , true , true ) ) ;
403+ }
404+
412405 if ( gui . BuildContextMenuButton ( "Never Enough Items Explorer" , "Ctrl+" + ImGuiUtils . ScanToString ( SDL . SDL_Scancode . SDL_SCANCODE_N ) ) && gui . CloseDropdown ( ) ) {
413406 ShowNeie ( ) ;
414407 }
@@ -417,6 +410,10 @@ private void SettingsDropdown(ImGui gui) {
417410 SelectSingleObjectPanel . Select ( Database . objects . explorable , "Open Dependency Explorer" , DependencyExplorer . Show ) ;
418411 }
419412
413+ if ( gui . BuildContextMenuButton ( "Import page from clipboard" , disabled : ! ImGuiUtils . HasClipboardText ( ) ) && gui . CloseDropdown ( ) ) {
414+ ProjectPageSettingsPanel . LoadProjectPageFromClipboard ( ) ;
415+ }
416+
420417 BuildSubHeader ( gui , "Extra" ) ;
421418
422419 if ( gui . BuildContextMenuButton ( "Run Factorio" ) ) {
0 commit comments