diff -ruN a/src/tools.js b/src/tools.js --- a/src/tools.js +++ b/src/tools.js @@ -1,9 +1,8 @@ -const APP_PAGE_URL = "https://terratactician-expandoria.codeberg.page/"; +// FredyGames: leaving the game used to go back to the project's page; here it just restarts the game. export function quit() { - history.back(); setTimeout(() => { - location.assign(APP_PAGE_URL); + location.reload(); }, 200); }; diff -ruN a/src/ui/help.rs b/src/ui/help.rs --- a/src/ui/help.rs +++ b/src/ui/help.rs @@ -13,10 +13,7 @@ impl Plugin for HelpAppPlugin { fn build(&self, app: &mut App) { app.register_asset_collection::(); - app.add_systems( - EguiPrimaryContextPass, - open_help_link.run_if(in_state(AppMenuState::MainMenu)), - ); + // FredyGames: the help button opened the project's web site; it is not part of this build. } } diff -ruN a/src/ui/in_game/pause.rs b/src/ui/in_game/pause.rs --- a/src/ui/in_game/pause.rs +++ b/src/ui/in_game/pause.rs @@ -224,26 +224,6 @@ } ui.add_space(window.y * SPACE_SIZE); - // show help - if ui - .add_sized( - (window * PRIMARY_BUTTON_SIZE).cast(), - egui::Button::new( - egui::RichText::new(localization.translate("show-help")) - .color(BUTTON_TEXT_COLOR), - ) - .fill(BUTTON_COLOR), - ) - .clicked() - { - ui.ctx().open_url(OpenUrl::new_tab(format!( - "{}/{}/book/", - WEBSITE_BASE, - settings.lang.get_book_id() - ))); - } - ui.add_space(window.y * SPACE_SIZE); - // return to main menu if ui .add_sized( diff -ruN a/src/ui/in_game/popup/mod.rs b/src/ui/in_game/popup/mod.rs --- a/src/ui/in_game/popup/mod.rs +++ b/src/ui/in_game/popup/mod.rs @@ -190,18 +190,6 @@ ui.label(localization.translate(sel_tile.get_availability().get_translation_id())); ui.end_row(); }); - ui.add( - Hyperlink::from_label_and_url( - localization.translate("tile-popup-more-information"), - format!( - "{}/{}/book/tiles/{}", - WEBSITE_BASE, - settings.lang.get_book_id(), - sel_tile.get_book_link_url() - ), - ) - .open_in_new_tab(true), - ); ui.label(format!( "{} {}×{}×{}", localization.translate("tile-popup-coordinates"),