modules/ui/general.js
// show info about the generator in a popup
show info about the generator in a popup
show info about the generator in a popup
function showInfo() {
  const Discord = link("https://discordapp.com/invite/X7E84HU", "Discord");
  const Reddit = link("https://www.reddit.com/r/FantasyMapGenerator", "Reddit")
  const Patreon = link("https://www.patreon.com/azgaar", "Patreon");
  const Trello = link("https://trello.com/b/7x832DG4/fantasy-map-generator", "Trello");
  const QuickStart = link("https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Quick-Start-Tutorial", "Quick start tutorial");
  const QAA = link("https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Q&A", "Q&A page");
  alertMessage.innerHTML = `
    <b>Fantasy Map Generator</b> (FMG) is an open-source application, it means the code is published an anyone can use it. 
    In case of FMG is also means that you own all created maps and can use them as you wish, you can even sell them.
    <p>The development is supported by community, you can donate on ${Patreon}.
    You can also help creating overviews, tutorials and spreding the word about the Generator.</p>
    <p>The best way to get help is to contact the community on ${Discord} and ${Reddit}. 
    Before asking questions, please check out the ${QuickStart} and the ${QAA}.</p>
    <p>You can track the development process on ${Trello}.</p>
    Links:
    <ul style="columns:2">
      <li>${link("https://github.com/Azgaar/Fantasy-Map-Generator", "GitHub repository")}</li>
      <li>${link("https://github.com/Azgaar/Fantasy-Map-Generator/blob/master/LICENSE", "License")}</li>
      <li>${link("https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Changelog", "Changelog")}</li>
      <li>${link("https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Hotkeys", "Hotkeys")}</li>
    </ul>`;
  $("#alert").dialog({resizable: false, title: document.title, width: "28em",
    buttons: {OK: function() {$(this).dialog("close");}},
    position: {my: "center", at: "center", of: "svg"}
  });
}
function showInfo ( ) { const Discord = link ( "https://discordapp.com/invite/X7E84HU" , "Discord" ) ; const Reddit = link ( "https://www.reddit.com/r/FantasyMapGenerator" , "Reddit" ) const Patreon = link ( "https://www.patreon.com/azgaar" , "Patreon" ) ; const Trello = link ( "https://trello.com/b/7x832DG4/fantasy-map-generator" , "Trello" ) ; const QuickStart = link ( "https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Quick-Start-Tutorial" , "Quick start tutorial" ) ; const QAA = link ( "https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Q&A" , "Q&A page" ) ; alertMessage . innerHTML = ` ${ Patreon } ${ Discord } ${ Reddit } ${ QuickStart } ${ QAA } ${ Trello } ${ link ( "https://github.com/Azgaar/Fantasy-Map-Generator" , "GitHub repository" ) } ${ link ( "https://github.com/Azgaar/Fantasy-Map-Generator/blob/master/LICENSE" , "License" ) } ${ link ( "https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Changelog" , "Changelog" ) } ${ link ( "https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Hotkeys" , "Hotkeys" ) } ` ; $ ( "#alert" ) . dialog ( { resizable : false , title : document . title , width : "28em" , buttons : { OK : function ( ) { $ ( this ) . dialog ( "close" ) ; } } , position : { my : "center" , at : "center" , of : "svg" } } ) ; }
show info about the generator in a popup
show info about the generator in a popup