Commit graph

72 commits

Author SHA1 Message Date
Azgaar
f19b891421
Urquhart routes (#1072)
* feat: routes generation

* feat: routes rendering

* feat: searoutes fix, changing reGraph

* feat: searoute - change pathfinding algo

* feat: routes - cleanup code

* feat: routes - change data format

* feat: routes - add routes to json export

* feat: edit routes - start

* feat: edit routes - main

* feat: edit routes - EP

* feat: edit routes - remove route

* feat: route - generate names

* feat: route - continue

* Refactor route merging logic for improved performance

* feat: routes - show name in tooltip

* feat: routes - create route dialog

* feat: update data on control point remove

* feat: routes editor - split route

* feat: add join route functionality to routes editor

* feat: Add join route functionality to routes editor

* feat: Update join route tooltip in routes editor

* feat: routes overview - sort by length

* feat: routes overview - fix distanceScale value

* feat: routes overview - create route

* Refactor getMiddlePoint function to getCloseToEdgePoint

* feat: routes - change data format, fix issues

* feat: routes - regenerateRoutes

* feat: routes - add route on burg creation

* chore - remove merge conflict markers

* chore - remove merge conflict markers

* feat: routes name - no unnamed burg names

* feat: routes - lock routes

* fix: routes - split routes

* feat: routes - tip correction

* feat: routes - auto-update part 1

* feat: routes - return old rePacj logic to not break auto-update

* feat: routes - auto-update - add connections

---------

Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
2024-08-15 15:46:55 +02:00
Azgaar
374c21b3d7
Ocean heightmap and Scale bar styling change [v1.96] (#1045)
* Scale bar styling (#1025)

* feat: style scale bar

* feat: style scale bar - style presets

---------

Co-authored-by: Azgaar <azgaar.fmg@yandex.com>

* Ocean heightmap to v1.96 (#1044)

* feat: allow to render ocean heightmap

* feat: allow to render ocean heightmap - test

* feat: allow to render ocean heightmap - fix issue

* feat: allow to render ocean heightmap - cleanup

---------

Co-authored-by: Azgaar <azgaar.fmg@yandex.com>

* fix: scale bar size

* fix: remove mask on terrs lavel

* fix: regenerate heigtmap preview to use current graph size

* Add the name of culture and namesbase in the name editor dialog (#1033)

* Add the name of culture and namesbase in the name editor dialog

Added the name of the culture and  namesbase in the dialog "name editor".
This tells information on the "click to generate a culture-specific name"
It tells you the culture before changing name.

* cultureName into cultureId + cultureName

And deleted the incomplete code of showing culture name on datatip

* refactor: leave culture name only

---------

Co-authored-by: Azgaar <azgaar.fmg@yandex.com>

* Added Burgs column to province editor (#1031)

* Added Burgs column to province editor

Added to province editor:
+ Burgs column
+ the number of Burgs, p.burgs.length
+ "icon-dot-circled" to go to overviewBurgs.
+ overviewBurgs Filtered by state id.
+ Fixed some typos.

* fixed code as Azgaar suggested

+ Corrected provincesHeader distance in em.
+ const stateId = pack.provinces[p].state;
- Deleted cell count.

* deleted HTML code for provincesFooter cells

- Deleted Total land cells number HTML from provincesFooter.

* deleting totalCells in the code, maybe i will add provinceCells in the future.

Deleted lines for const totalCells and for (+cells / totalCells) * 100 + "%";

* refactor: cleanup

* refactor: cleanup

---------

Co-authored-by: Azgaar <azgaar.fmg@yandex.com>

* fix: burgs overview - add MFCG link back

* feat: add more details to burgs export

* feat: don't show auto-update dialog

* feat: pump version

* fix: #1041

* feat: update style presets

---------

Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
Co-authored-by: Ángel Montero Lamas <angel.montero1@gmail.com>
2024-02-24 19:12:48 +04:00
Azgaar
24ecd1dbf7
Vignette layer (#1021)
* feat: vignette (non-editable yet)

* feat: vignette style control

* feat: vignette layer

* feat: vignette - save styles

* feat: vignette - style presets

* feat: vignette - style presets

* feat: vignette - style presets

---------

Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
2023-11-28 02:26:55 +04:00
Azgaar
ada39b47ad
Fix: rework texture data format (#1017)
* fix: rework texture save format

* refactor: move textures to a local folder

* fix: export texture

* fix: don't export empty texture

* chore: pump version

* fix: rescale water mask on screen size change

---------

Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
2023-11-19 14:43:56 +04:00
Azgaar
958a2c6ef8
Custom heightmap color scheme (#1013)
* feat: custom heightmap color scheme

* feat: custom heightmap color scheme - add shceme on load

---------

Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
2023-11-18 16:34:41 +04:00
Azgaar
8101e75f3d hotfix: define color scheme on heightmap edit 2023-11-06 00:04:53 +04:00
Azgaar
c72c998eaf bug: style to have texture info 2023-08-08 01:34:36 +04:00
evolvedexperiment
4000c954f1
Fix for State opacity (#853) 2022-08-03 11:47:29 -07:00
Mészáros Gergely
1e28e7c3a0 FIX: don't crash on wrong icon group name, just report it. 2022-05-12 23:38:54 +02:00
Azgaar
4251d0c0ea new fonts 2022-05-10 22:45:07 +03:00
Azgaar
1573fad58d annotate template strings for syntax hightlight and format 2022-05-08 19:22:15 +03: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
Azgaar
49a8a9f7c7 style - fetch local json files 2022-02-05 21:23:10 +03:00
Azgaar
79c1e2abd9 new style - styleCyberpunk 2022-02-05 19:19:49 +03:00
Azgaar
214bc7a40d allow more states via number input 2022-01-16 19:37:16 +03:00
Azgaar
05217d176d scale previpitation layer circles 2021-12-30 19:24:48 +03:00
Azgaar
6d5c109d78 fix: cannot create undefined style 2021-11-27 19:38:27 +03:00
Azgaar
eb76ec8e48 remove default texture base64 2021-10-09 15:48:03 +03:00
Azgaar
57d14d765e style - apply on change 2021-10-06 23:03:13 +03:00
Azgaar
fe330ede3a
Fonts refactoring and Add Font dialog (#660)
* fonts rework - start

* fonts rework - continue

* fonts rework - fetch google font

* fonts rework - issue fixes

* fonts rework - add fonts to downloaded image

* fonts rework - add methods dialog

* fonts rework - add methods description

* fonts update - move version to 1.661

* fonts - remove unused file
2021-09-09 00:12:45 +03:00
Azgaar
30f7449c83 biomes to be masked, will need to fix styling in FF 2021-08-21 21:20:51 +03:00
Azgaar
9df7b2f7a5 lake style for ancient set 2021-07-11 20:16:38 +03:00
Azgaar
1ae6d73f94 move fonts function to a separate file 2021-07-11 19:39:03 +03:00
Azgaar
99dd005e5c load fonts on style set change 2021-07-11 19:35:43 +03:00
Azgaar
cf269b775c ancient style update 2021-07-11 19:23:13 +03:00
Azgaar
2dd8628f2b fix font size change buttons 2021-07-11 17:59:31 +03:00
Azgaar
1f10a8e281 fix font size settings 2021-07-11 17:53:22 +03:00
Azgaar
7d299ff395 redraw relief on size change 2021-07-11 16:47:49 +03:00
Azgaar
659a217368 new style: Light 2021-07-11 13:24:36 +03:00
Azgaar
68f1861603 default styleSaverName ti take current name 2021-07-11 13:18:02 +03:00
Azgaar
cfb6e1eeeb load fonts on .map file open 2021-07-11 00:29:58 +03:00
Azgaar
25de9edb13 fix select group issue 2021-07-10 22:49:35 +03:00
Azgaar
43ce0424a5 move filter from regions to statesBody 2021-07-10 20:45:59 +03:00
Azgaar
687dedfe1b state only borders + watercolor style 2021-07-10 20:08:30 +03:00
Azgaar
05700cc338 allow to style text-shadow for labels 2021-07-01 21:00:49 +03:00
Azgaar
3892370816 automatically pit output to input and store data 2021-06-26 00:41:43 +03:00
Azgaar
28a728ff78 fix styles 2021-06-12 19:52:55 +03:00
Azgaar
caa0a781e0 fix oceanicPattern opacity 2021-06-12 19:45:02 +03:00
Azgaar
47dd3c05aa fix ocean pattenr for Gloom style 2021-06-12 14:54:28 +03:00
Azgaar
6fd8862d7a grid patterns 2021-04-10 18:59:00 +03:00
Azgaar
f8f2f52be9 617 fixed 2021-04-10 13:28:17 +03:00
Azgaar
735ad204e4 refactoring style selectors 2021-04-05 20:56:31 +03:00
Azgaar
1ca09907e2 fix 614 2021-04-05 20:48:35 +03:00
Azgaar
8455df796a v1.6.16 - allow to set pattern opacity 2021-03-06 20:00:25 +03:00
Azgaar
bb260a0b89 v1.6.12 - change ocean pattern to image 2021-03-06 18:55:39 +03:00
Azgaar
89dbfcb8ae v1.5.68 - style province labels 2021-02-26 21:43:17 +03:00
Azgaar
c3173217d8 v1.5.67 - sliders replaced by number inputs 2021-02-26 20:13:37 +03:00
Azgaar
1a2eb2291a v1.5.26 - ice opacity change 2021-02-14 15:44:43 +03:00
Azgaar
2f3f5d05fb v1.5.24 - smarter generation 2021-02-13 21:52:50 +03:00
Azgaar
fd8489b39d v1.5.22 - rendered check and style check 2021-02-12 20:17:58 +03:00