Commit Graph

37 Commits

Author SHA1 Message Date
James Lyne
5896d4504c Fix PlayerMarker name disappearing when hidden 2021-09-29 15:31:09 +01:00
James Lyne
016b784634 Fix PlayerMarker health/armor not displaying immediately 2021-09-29 15:02:17 +01:00
James Lyne
66355dfe38 Decouple player image pixel size from PlayerMarker.
- Use single template image and set size after cloning
- Use util method to retrieve pixel size when needed
- Use LiveAtlasPlayerImageSize in getMinecraftHead
2021-09-29 14:33:52 +01:00
James Lyne
07d851fc86 Use 20 for health/armor meter max 2021-09-29 14:32:12 +01:00
James Lyne
770c9242a8 Player marker improvements
- Use <meter> for health/armor
- Condense small/body image properties into single image size option
- Remove image-size dependant margins
- Add circle alongside label for indicating player position
2021-09-29 01:30:35 +01:00
James Lyne
bfc0a381a8 Respect pl3xmap show-armor setting 2021-09-28 18:54:51 +01:00
James Lyne
77b9850ea9 Marker refactoring
- Don't extend DivIcon as we don't use anything that class provides
- Update PlayerMarker icon using internal watch
- Remove unused panTo() PlayerMarker method
- Apply needed parts of _setIconStyles directly in GenericIcon's createIcon
2021-09-01 17:38:42 +01:00
James Lyne
3cb9f8f315 Fix super call in GenericIcon 2021-08-31 16:41:11 +01:00
James Lyne
fdf5e521d8 Prefer using super over prototype calls 2021-08-31 16:38:19 +01:00
James Lyne
ca8142cca8 Use declare for leaflet defined fields 2021-08-26 21:40:54 +01:00
James Lyne
2d485ac4e5 Fix marker labels disappearing when toggling a showLabels: true layer twice 2021-08-16 04:21:48 +01:00
James Lyne
a7fa366635 Create marker labels lazily when showLabels is false 2021-07-29 17:46:11 +01:00
James Lyne
5cf353cd8a Update license headers 2021-07-26 01:05:08 +01:00
James Lyne
e61d0def04 Replace serverConfig getter with MapProvider url methods 2021-07-26 01:05:07 +01:00
James Lyne
1d27e05f7c Rename DynmapPlayer to LiveAtlasPlayer, rename some fields, add uuid field 2021-07-26 01:04:18 +01:00
James Lyne
c99215e259 Use generic names for extended leaflet classes 2021-07-26 01:04:17 +01:00
James Lyne
7adfdec4c7 Fix head urls 2021-05-18 18:32:42 +01:00
James Lyne
0facb446f5 Initial work for multiple servers 2021-05-17 03:39:25 +01:00
James Lyne
ce241c93e0 Switch from webpack to vite 2021-05-15 20:25:03 +01:00
James Lyne
df487ec364 export Util functions separately 2021-01-26 20:37:29 +00:00
James Lyne
8260deba0b Fix player health/armor display 2021-01-24 22:14:39 +00:00
James Lyne
a2942b6400 Improve caching of player marker name 2021-01-06 00:44:11 +00:00
James Lyne
3573694df0 Avoid unnecessary dom updates for player markers 2021-01-05 23:48:56 +00:00
James Lyne
652a63e278 Show player markers in the center of the current block 2021-01-05 21:06:10 +00:00
James Lyne
51a273f8de Fix some timing issues in DynmapIcon 2020-12-31 22:38:58 +00:00
James Lyne
165afd762c Use player account for skin URL. Fixes #2 2020-12-22 13:15:59 +00:00
James Lyne
7b1afa1c20 Handle showLabels config setting 2020-12-18 23:01:32 +00:00
James Lyne
cad535365b Handle marker icon/label updates 2020-12-18 18:01:37 +00:00
James Lyne
31b05613fb Add license 2020-12-16 16:54:41 +00:00
James Lyne
ba4c7604d0 Fix player marker html usage 2020-12-14 00:28:09 +00:00
James Lyne
6249eb904b Move marker set markers into single component. Start marker update handling. 2020-12-14 00:27:49 +00:00
James Lyne
f37d3531a1 Allpw HTML in player names, sanitise it to be sure 2020-12-13 23:22:59 +00:00
James Lyne
99a28401b9 Fix player icons 2020-12-13 13:23:32 +00:00
James Lyne
b9b58399f6 Targeted leaflet imports 2020-12-12 22:04:56 +00:00
James Lyne
404121188b Marker improvements
- Refactor html and classnames
- Fix/refactor styles
- Re-implement player head images
2020-12-10 02:21:42 +00:00
James Lyne
5d0f26917d More progress 2020-12-01 23:20:48 +00:00
James Lyne
a33b50cb03 Convert some leaflet things to typescript 2020-11-24 01:52:31 +00:00