@@ -379,20 +379,23 @@ public static Menu configuration() {
379379 "Export... >" , BOTTOM .at (1.0 , 0.5 )
380380 .displace (-BOTTOM_BAR_BUTTON_X , 0 ),
381381 Anchor .RIGHT_CENTRAL , style ::exportsASprite ,
382- () -> {
383- if (style .settings .hasPreExportStep ())
384- ProgramState .set (ProgramState .MENU , preExport ());
385- else {
386- style .settings .resetPreExport ();
387- ProgramState .set (ProgramState .MENU , export ());
388- }
389- });
382+ () -> ProgramState .set (ProgramState .MENU , noExportInDemo ()));
390383
391384 mb .addAll (toCustomButton , toExportButton );
392385
393386 return mb .build ();
394387 }
395388
389+ private static Menu noExportInDemo () {
390+ return openingMenu ("Buy full program to export" ,
391+ ResourceCodes .NO_EXPORT_IN_DEMO , Text .Orientation .CENTER , null ,
392+ new Pair <>("Buy on itch.io" ,
393+ () -> visitSite ("https://flinkerflitzer.itch.io/tdsm" )),
394+ new Pair <>("Main Menu" ,
395+ () -> ProgramState .to (mainMenu ())));
396+ }
397+
398+ @ SuppressWarnings ("unused" )
396399 private static Menu preExport () {
397400 final MenuBuilder mb = new MenuBuilder ();
398401 final Style style = Sprite .get ().getStyle ();
@@ -455,6 +458,8 @@ public static Menu mainMenu() {
455458 addMenuButtons (mb ,
456459 new Pair <>("Start editing" ,
457460 MenuAssembly ::loadCustomization ),
461+ new Pair <>("Buy on itch.io" ,
462+ () -> visitSite ("https://flinkerflitzer.itch.io/tdsm" )),
458463 new Pair <>("About" , () -> ProgramState .to (about ())),
459464 new Pair <>("Quit" , TDSM ::quitProgram ));
460465
@@ -468,10 +473,10 @@ public static Menu mainMenu() {
468473
469474 // Version and credits
470475 final StaticLabel programLabel = new StaticLabel (
471- canvasAt (0.5 , 0.98 ),
472- Anchor .CENTRAL_BOTTOM ,
473- Graphics . miniText ( Colors . darkSystem () )
474- .addText (ProgramInfo .formatVersion ()).addLineBreak ()
476+ canvasAt (0.02 , 0.98 ),
477+ Anchor .LEFT_BOTTOM ,
478+ ProgramFont . MINI . getBuilder ( Text . Orientation . LEFT )
479+ .addText (ProgramInfo .formatVersion () + " (demo build)" ).addLineBreak ()
475480 .addText (ParserUtils .readResourceText (ResourceCodes .COPYRIGHT ))
476481 .build ().draw ());
477482
0 commit comments