Skip to content

Commit

Permalink
Merge pull request #486 from Azgaar/dev
Browse files Browse the repository at this point in the history
v1.4 release
  • Loading branch information
Azgaar authored Jun 21, 2020
2 parents 66ed29c + edb8469 commit 1e60b47
Show file tree
Hide file tree
Showing 45 changed files with 3,391 additions and 1,079 deletions.
Binary file added Fantasy Map Generator.lnk
Binary file not shown.
5 changes: 5 additions & 0 deletions Readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Azgaar's Fantasy Map Generator
This is an open-source software available under MIT license
https://github.com/Azgaar/Fantasy-Map-Generator

To run the tool unzip ALL files and open index.html in browser
36 changes: 34 additions & 2 deletions icons.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added images/icon.ico
Binary file not shown.
149 changes: 109 additions & 40 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ button, select, a, .pointer {
fill-rule: evenodd;
}

#lakes, #coastline, #armies {
#lakes, #coastline, #armies, #ice {
cursor: pointer;
}

Expand All @@ -114,7 +114,7 @@ button, select, a, .pointer {
fill-rule: evenodd;
}

#oceanLayers {
#oceanLayers, #terrs {
fill-rule: evenodd;
}

Expand All @@ -123,7 +123,7 @@ button, select, a, .pointer {
stroke-linejoin: round;
}

#regions, #cults, #relig, #biomes, #provs, #terrs, #biomes, #tooltip, #temperature, #texture, #landmass {
#regions, #cults, #relig, #biomes, #provs, #terrs, #biomes, #tooltip, #temperature, #texture, #landmass, #fogging {
pointer-events: none;
}

Expand Down Expand Up @@ -333,13 +333,13 @@ div.tab > button#optionsHide {
.tab {
overflow: hidden;
border-bottom: 1px solid #5d4651;
height: 2.3em;
height: 2.2em;
}

#options p {
font-style: italic;
font-weight: bold;
margin-bottom: 0;
margin: .8em 0 0 0;
}

#aboutContent {
Expand All @@ -353,6 +353,7 @@ div.tab > button#optionsHide {
#aboutContent a {
color: #1d1b1c;
font-weight: bold;
text-decoration: underline;
}

#optionsContent span {
Expand Down Expand Up @@ -482,7 +483,6 @@ input[type="color"]::-webkit-color-swatch-wrapper {
width: 100%;
background-color: white;
text-align: left;
height: 1.5em;
}

#optionsContent input[type="range"] {
Expand Down Expand Up @@ -579,17 +579,17 @@ input[type="color"]::-webkit-color-swatch-wrapper {
}

.tab > button.options {
/* width: 23.25%; */
width: 18.6%;
height: 100%;
padding: 7px 0px;
padding: 6px 0px;
}

button.options {
background-color: #997b89;
font-weight: bold;
float: left;
border: none;
border-radius: 0;
padding: 8px 10px;
transition: 0.2s;
}
Expand Down Expand Up @@ -949,30 +949,91 @@ body button.noicon {
stroke: #2c0808;
}

#battleBody > table {
padding: .2em .6em .2em .6em;
border: 1px solid #ccc;
margin: .2em 0 .4em 0;
display: block;
overflow: auto;
max-height: 34vh;
width: 100%;
}

#battleBody > table .regiment {
width: 13em;
font-weight: bold;
}

tr.battleCasualties, tr.battleSurvivors {
font-style: italic;
font-size: .9em;
}

#battleBody div.battlePhases,
#battleBottom div.battleTypes {
position: fixed;
background-color: #ffffff30;
}

#battleBody div.battlePhases > button,
#battleBottom div.battleTypes > button {
width: 3.2em;
display: block;
margin: .2em 0;
}

div#regimentSelectorBody {
max-height: 50vh;
font-size: .9em;
}

div#regimentSelectorBody > div {
padding: .1em;
border: 1px solid #fff;
}

div#regimentSelectorBody > div:hover {
border: 1px solid #ccc;
}

div#regimentSelectorBody > div.selected {
border: 1px solid #b28585;
}

div#regimentSelectorBody > div.inactive {
background-color: #eee;
color: #aaa;
}

div#regimentSelectorBody > div > div {
display: inline-block;
pointer-events: none;
}

.drag-trigger {
border-left: 12px solid transparent;
border-right: 12px solid #916e7f;
border-top: 12px solid transparent;
border-left: 1em solid transparent;
border-right: 1em solid #000;
border-top: 1em solid transparent;
position: absolute;
right: 0;
top: 100%;
margin-top: -12px;
right: -1px;
bottom: -1px;
opacity: .3;
}

.drag-trigger:hover {
cursor: move;
border-right-color: #5e4fa2;
opacity: .6;
}

.tint {
filter: sepia(1) hue-rotate(200deg);
}

.color-div {
width: 2.7em;
height: 1.1em;
width: 3em;
height: 1em;
display: inline-block;
margin: .1em .2em;
margin: 0 .16em;
border: 1px #c5c5c5 groove;
cursor: pointer;
}
Expand Down Expand Up @@ -1151,10 +1212,21 @@ div.slider .ui-slider-handle {

.table {
max-height: 75vh;
max-width: 75vw;
overflow-x: hidden;
overflow-y: auto;
}

.overflow {
max-width: 93vw;
overflow: auto;
max-height: 75vh;
}

.overflow > div {
width: max-content;
}

div.header > div {
font-weight: bold;
font-size: .9em;
Expand Down Expand Up @@ -1657,14 +1729,17 @@ rect.fillRect {

#militaryOptionsTable input {
width: 9em;
padding-left: 3px;
border: 1px solid #d4d4d4;
}

#militaryOptionsTable input[type="number"] {
width: 4em;
}

#militaryOptionsTable button {
width: 100%;
}

#gridOverlay {
fill: none;
}
Expand All @@ -1691,7 +1766,7 @@ ul.share-buttons li {
}

ul.share-buttons img {
width: 18px;
width: 2em;
}

input[type="checkbox"] {
Expand Down Expand Up @@ -1760,24 +1835,6 @@ div.textual span, .textual legend {
vertical-align: top;
}

#markerIconTable {
font-size: 1.6em;
cursor: pointer;
}

#markerIconTable td:hover {
transition: .1s;
color: #3c3ca9;
}

#markerIconTable td:active {
transform: translate(0px, 1px);
}

#markerIconTable td.selected {
outline: 1px solid #9b9b9b;
}

.highlighted {
outline-width: 2px;
outline-style: dashed;
Expand Down Expand Up @@ -1808,7 +1865,9 @@ div#notesHeader {
}

div#notesBody {
padding: 0 10px;
padding: 0 1em;
max-height: 80vh;
overflow: auto;
}

svg.button {
Expand Down Expand Up @@ -2025,7 +2084,7 @@ svg.button {
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
max-width: 21em;
max-width: 22em;
background-color: #fff;
padding: 1.2em;
border: solid 1px #000;
Expand Down Expand Up @@ -2056,6 +2115,16 @@ svg.button {
text-shadow: 0px 1px 4px #4c3a35;
}

.epgrid line {
stroke: lightgrey;
stroke-opacity: .7;
shape-rendering: crispEdges;
}

.epgrid path {
stroke-width: 0;
}

#debug {
font-size: 1px;
opacity: .8;
Expand Down
Loading

0 comments on commit 1e60b47

Please sign in to comment.