Commit graph

56 commits

Author SHA1 Message Date
Azgaar
77430e2dbe Merge branch 'master' of https://github.com/Azgaar/Fantasy-Map-Generator into shortcuts 2022-05-20 22:57:14 +03:00
Azgaar
2d8c5355bb load dynamically cultures editor 2022-05-19 00:19:24 +03:00
Azgaar
fc62143eae add functional shorthands 2022-05-17 22:34:14 +03:00
Azgaar
d488b68226 add listeners to sort by headers 2022-05-15 16:08:25 +03:00
Azgaar
4fcd62bb99 states-editor - dynamic module 2022-05-15 16:03:47 +03:00
Azgaar
aab27ca673 slightly optimize onZoom 2022-05-12 23:54:19 +03:00
Azgaar
02e0669282 Merge branch 'master' of https://github.com/Azgaar/Fantasy-Map-Generator 2022-05-08 19:22:19 +03:00
Azgaar
1573fad58d annotate template strings for syntax hightlight and format 2022-05-08 19:22:15 +03:00
Mészáros Gergely
f53d5810d5 FIX: avoid redirect at watabou 2022-05-07 18:43:47 +02:00
Gergely Mészáros, Ph.D
5703e62177
Dev submaps (#770)
* bioms shouldn't be masked or the style selection box is useless

* fix: misleading comment

* experimental submapping feature

* burg remapping

* Submap with options

* Fix: calculating absolute flux from precipitation normal-value.

* effective distanceScale

* updated resampler

* fix: missing cell

* Fix: River automatic rerender on regeneration.

* FIX: wrong culture migration

* fixed 0 index burg bug, more accurate coast detection for burgs

* FIX: wrong burg cell id

* fix invalid feature number at burg.ports, option to disable regenerations

* Relocate submap

* update height model and scale parameters

* new menu

* Dropbox OAuth implementation and Cloud framework

* add some space

* removing uneccesary logs, defer script load

* map position on planet, fix wrong riverbed generation

* fix:riverbed generation

* better cell sampler

* Auto-Smoothing,dist fix

* FIX: incorrect province copy and minor fix of rebels

* Cleanup

* FIX: water detection bug

* Recompute centers (states, cultures, provinces)

* activating forwardmap

* FIX: port burg relocation algo

* FIX: coast detection (for burgs)

* Fix: invalid html id

* add dot

* update for FMG 1.73

* Update submap gui

* refactored submap ui options

* Copy all visible military units from the old map.

* add info text

* Add Markers.deleteMarker API.

* Lock markers and lock burgs options

* better comment

* submapper gui updates, remove feature mapping on/off

* Fix typo (thx evolvedexperiment)

* fix ugly GUI (2 digit roundoff)

* resample dialog

* Town Promotion to largetown

* don't promote to capitals.

* Fix typo

* round style settings

* do not draw removed burgs

* Fix port cell search algo

* Fix: robust error handling, no error for 0.

* submap: projection moved to options, fix double burg error

* complete rewrite of burg relocation

* findcell by coordinates

* prepare to merge, add comments, remove fluff

* replacing lodash with deepCopy implementation

Co-authored-by: Mészáros Gergely <monk@geotronic.hu>
2022-04-15 12:45:02 +03:00
Gergely Mészáros, Ph.D
4b10b60c69
fix concurency issue at load (#762) 2022-03-30 21:14:51 +03:00
Ángel Montero Lamas
81f037004c
Color picker hatches 14-60 (#726)
* Color picker hatches 14-60

Added hatches to number 14 to 60.
Updated the code of the color picker to accept multiples rows of hatches.

Changed the size of fillRectPointer from 0.9 em to 1.5 em.

Added an Update code to upgrade maps to 1.72 to have a grid of 60 svg hatches. Without the update, loaded files appeared with the rectangles for hatches 14-60 empty.

* Hatches ordered

Reworked the code to put back rows of 14 hatches. Reordered the first 14 hatches to defaault.
Made 3 rows, so 42 hatches.

* Cleaned code and fixes

Cleaned </pattern> in index.html line 152.
Put back: width=".9em" height=".9em" style="margin-bottom:-1px"> for fill.

* mouseover hatches

Fixed some typos. Changed mousemove for mouseover and moved the calling of the function tip from the each function to the original place at 519.
The arrow function changed to one that tells the id.

* Copies hatching from defElements into map svg, and hatching removed from saved map files.

* Removed haching completely from map svg

* Hatching copy for clone is now done before unused pattern removal

* Added back code that removes the unused hatching group

Co-authored-by: Evolvedexperiment <evolvedexperiment@gmail.com>
Co-authored-by: Azgaar <maxganiev@yandex.ru>
2022-02-06 21:56:16 +03:00
Azgaar
207b564180 improve MFCG link generation 2022-01-16 14:54:30 +03:00
Azgaar
e06356aa57 allow to edit MFCG link 2022-01-13 00:43:57 +03:00
Azgaar
a55e8d96ff lock burg - values is boolean, not 1/0 2022-01-01 19:09:50 +03:00
Azgaar
165d8e48be add mfcg link to burg overrview csv export 2021-11-10 20:41:23 +03:00
Azgaar
83aef34d45 markers overview - focus on marker 2021-09-28 23:22:16 +03:00
Azgaar
2a9edd2458 markers - generate tool + lock tooltip 2021-09-23 21:07:03 +03:00
Azgaar
95f9d990d9 markers rework - editor functions 2021-09-20 02:29:50 +03:00
Azgaar
def32b7f74 markers rework - editor start, dragging 2021-09-19 16:02:22 +03:00
Azgaar
bedbb7cbff hotkeys to use key instead of a code 2021-09-12 01:20:53 +03:00
Azgaar
a1425bcb54 river editor rework - data checking 2021-07-25 01:37:48 +03:00
Legogizmo
f855de6fb8
Added a lock function to burgs (#612)
* Added a lock function to burgs that will prevent them from being regenerated

* Updated tooltips and fixed culture change from renaming locked burgs and group remove from deleting locked burgs
2021-03-30 00:05:49 +03:00
Azgaar
fbec08f982 v1.5.79 - river overview update 2021-03-01 01:51:31 +03:00
Azgaar
66bd7b7f6f v1.5.25 - smarter generation 2021-02-14 15:11:42 +03:00
Azgaar
a5b2f23cee v1.5.12 - emblems adding, save/load 2021-02-09 00:02:21 +03:00
Azgaar
24d2efe8b6 v1.5.05 - optimization, partial d3 removal 2021-02-04 15:56:28 +03:00
Azgaar
3aaddcf1a7 v1.5.04 - smarter coa generation, coa download 2021-02-04 15:56:28 +03:00
Azgaar
32c4566aa7 v1.5.04 - Emblems auto-hide and hightlighting 2021-02-04 15:56:28 +03:00
Azgaar
549eefe7ba v1.5.04 - Emblems layer and on map placement 2021-02-04 15:56:28 +03:00
Bryce Kabat
122c456588 Added Logging Options to Improve Performance (#529)
* Added Logging Options to Improve Performance

* Requested Changes

Co-authored-by: Onyx Azryn <brycekabat@onyxazryn.com>
2021-02-04 15:56:27 +03:00
evolvedexperiment
6a12f5c7a3 Fix for incorrect mapfile date (#510) 2021-02-04 15:56:26 +03:00
Phuntsok Drak-pa
a610a70e1c Saved files’ filename now holds local time (#505)
Correcting PR #504, which made saved files’ filenames follow the UTC.
This commit modifies the way the filename is generated and makes it
follow the user’s local time.
2021-02-04 15:56:26 +03:00
Azgaar
d65171c0ec v1.4.41 2021-02-04 15:56:26 +03:00
Lucien Cartier-Tilet
9c5baeede1 Change filename format of saved files
The following commit changes the default name of files saved by the
user. Originally, any saved file was named
`<map name> <capitalized three letter english month>D HH-mm.<ext>`
Now filenames follow more closely ISO 8601 and are named by default
`<map name> YYYY-MM-DD-HH-mm.<ext>`.

The function also became much smaller and easier to read.
2021-02-04 15:56:26 +03:00
mdirienzo
fb28576f7c Add the ability to regenerate cultures (#495)
* Add the ability to regenerate cultures

- Added a button to the tools menu for regeneration.
- Regeneration button will handle initial generation of cultures and expansion afterwards.
- Pressing regenerate will warn the user.
- Small cleanup of trailing whitespace.

* Refreshing cultures editor updates culture centers

* Regenerating cultures refreshes the culture editor

* Added a function to refresh all open editors

* Reset burg and state cultures after regeneration

* Address the problem of potential data loss

Any errors while iterating the states or burgs could potentially lose the index 0 metadata stored in the arrays. This will instead track the index and ignore the 0th result.

* Religions update cultures on culture regeneration

Updated function names to be more similar and more descriptive
2021-02-04 15:56:26 +03:00
Azgaar
2a67ee5d9f v1.4.14 2020-05-16 00:52:45 +03:00
Azgaar
617e8d4306 v1.4.09 2020-05-09 23:51:14 +03:00
Azgaar
beb2d0ad7c v1.4.06 2020-05-05 02:00:40 +03:00
Azgaar
72d124d95d v1.4.01 2020-04-23 19:44:32 +03:00
Azgaar
bdc8db2354 v1.3.43 2020-04-04 20:12:04 +03:00
Azgaar
29117db1cf v1.3.14a 2020-03-30 23:10:33 +03:00
Azgaar
f4a84fc6d6 v1.3a 2020-03-15 17:35:07 +03:00
Azgaar
5ffd30dee8 v 1.21 2019-10-28 00:18:17 +03:00
Azgaar
a3fa5443d6 v1.2.02 2019-10-24 22:27:41 +03:00
Azgaar
f7a3eafe1f 1.11.1 2019-10-18 23:18:02 +03:00
evolvedexperiment
0e308079aa 3d preview to Heightmap editor (#329) 2019-10-17 23:12:16 +03:00
Azgaar
9dab5f2a9d 1.1.19 2019-10-17 10:08:19 +03:00
Azgaar
aadae58072 1.1.14 2019-10-16 23:25:48 +03:00
Azgaar
c050353d70 v1.1.09 2019-10-02 22:20:01 +03:00