Commit Graph

263 Commits

Author SHA1 Message Date
James Lyne
8a66d05139 Support plugin source for dynmap chat (Closes #242) 2021-11-12 00:12:17 +00:00
James Lyne
fc4916565b Fix LogoControl image size 2021-09-30 22:37:00 +01:00
James Lyne
6c0837deae Improve session expiry handling
- Reload configuration and show login dialog when any request fails with "login required"
- Current map position etc is lost, more work needed here
2021-09-30 20:13:23 +01:00
James Lyne
8f794d044f Support Pl3xmap custom world icons 2021-09-30 15:04:01 +01:00
James Lyne
dc479ca6e8 Support disabling player images in player list
- showplayerfacesinmenu in Dynmap
- Player image is removed entirely rather than mirroring Dynmap behaviour of showing a Steve head, to be consistent with player markers and chat.
- Images are also disabled in FollowTarget
2021-09-29 21:16:31 +01:00
James Lyne
bf383afb8d Support disabling player marker images
- showplayerfaces: false in Dynmap, player-tracker.nameplate.show-head: false in Pl3xmap
- Remove showSkin option in favour of 'none' image size
2021-09-29 19:58:39 +01:00
James Lyne
5ce922505b Fix getMinecraftHead calls 2021-09-29 14:39:56 +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
bfd2b4083f Fix type errors 2021-09-12 20:37:51 +01:00
James Lyne
0e57a50e0c Cleanup redundant useStore calls 2021-09-08 15:21:27 +01:00
James Lyne
56470790de Convert more components to composition api 2021-09-08 15:20:04 +01:00
James Lyne
aca007ee94 Reset zoom level when switching worlds 2021-09-07 23:20:35 +01:00
James Lyne
46c9468214 Remove some debug logging 2021-09-01 18:42:26 +01:00
James Lyne
ca9b3ce1f4 Quick fix for world with many maps defined
Need a better long term solution for this
2021-09-01 17:53:08 +01:00
James Lyne
c1ed50f8c4 Make player markers interactive 2021-09-01 17:47:43 +01:00
James Lyne
79fc8f6816 Reuse existing players pane if present 2021-09-01 17:39:44 +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
fb53ad195c Improve login ux on smaller screens
- Hide other UI elements when modal opens, to reduce clutter
- Hide login required modal if the server list is opened, to allow switching servers without overlapping the modal
- Use tel input for registration code
2021-09-01 02:18:02 +01:00
James Lyne
ca3d3c7442 Update chat login button to use login modal 2021-09-01 02:15:00 +01:00
James Lyne
c015886f4a Improve login modal mobile styling 2021-09-01 02:13:44 +01:00
James Lyne
aa78d6ad63 Change Maps button to a Servers button when <2 maps are defined in the current server 2021-09-01 01:06:43 +01:00
James Lyne
8a7a05c0d1 Prevent closing and allow server selection from login required modal, 2021-09-01 01:05:30 +01:00
James Lyne
21cb8da32f Modal updates
- Add options for removing backdrop and preventing closing
- Add close button
- Style tweaks
2021-09-01 01:00:42 +01:00
James Lyne
1e4c8a080f Revert "Drop :active styles"
This reverts commit 146aadb9
2021-08-31 19:56:42 +01:00
James Lyne
c4230fda7d Use --outline-focus for map focus indicator 2021-08-31 17:46:02 +01:00
James Lyne
0b05ad05e4 Focus login button when closing modal 2021-08-31 17:45:37 +01:00
James Lyne
a82052714d aria-live login modal alerts 2021-08-31 15:03:33 +01:00
James Lyne
76f151a64c First attempt at login/register 2021-08-30 22:28:20 +01:00
James Lyne
116c9efa0d Use cross icon for unfollow button 2021-08-27 02:26:04 +01:00
James Lyne
ba070eee9a Style updates
- Add new variable for selected colour, using old hover colour
- More subtle hover colour
- Dimmer selected colour
- Bold font on selected elements for better readability
- Tweaked text colours
- Use brighter text colour for headings
- Reduced border-radius
- Restore some missing text shadows
2021-08-26 00:54:40 +01:00
James Lyne
146aadb963 Drop :active styles 2021-08-26 00:54:40 +01:00
James Lyne
89c56e176b Some style refactoring
- Use CSS variables for UI element size/spacing
- Make buttons smaller on smaller screens
- Reduce location size on smaller screens
- Add common leaflet-control-button class for all button-y controls
2021-08-26 00:54:40 +01:00
James Lyne
552b289bb9 Avoid recreating tiles from scratch when refreshing Pl3xmap 2021-08-16 03:33:28 +01:00
James Lyne
280e036276 Basic support for Pl3xmap tile update interval 2021-08-13 23:51:03 +01:00
James Lyne
b143fc1561 Player list heading fixes 2021-07-29 19:16:37 +01:00
James Lyne
2ff16c81ed Merge remote-tracking branch 'origin/master' 2021-07-29 18:20:05 +01:00
James Lyne
38946d7015 Initial pl3xmap support 2021-07-29 18:06:19 +01:00
James Lyne
f5002ed828
Fix URL zoom being ignored on initial load (Fixes #59) 2021-07-29 14:14:01 +01:00
James Lyne
02c705de36 Fix build errors 2021-07-29 03:39:28 +01:00
James Lyne
d05b7a63ac Use playerMarkers.layerName for the layer name 2021-07-29 00:34:40 +01:00
James Lyne
ee8607ed6d Fix player layer duplicating in some situations 2021-07-29 00:34:18 +01:00
James Lyne
8151dfaab5 Make followZoom optional 2021-07-28 23:52:51 +01:00
James Lyne
b3f186a197 Move grayHiddenPlayers to playerMarkers component 2021-07-28 23:52:03 +01:00
James Lyne
7bff12b729 Move maxPlayers to separate field in store, add mutation 2021-07-28 23:50:59 +01:00
James Lyne
4feb46c641 Move player count/max into playersHeading 2021-07-28 22:27:43 +01:00
James Lyne
9517de0760 Path point handling changes
- Store path points as {x,y,z} objects instead of separate arrays
- Project point objects right before layer creation
- A bit slower overall but matches the format of Pl3xmap path points.
2021-07-28 04:04:46 +01:00
James Lyne
42f8cbd74b Show maps button if there is a single map but multiple servers 2021-07-27 02:36:24 +01:00
James Lyne
d37657d3e2 Prevent unnecessary marker repositioning on world change 2021-07-27 02:28:01 +01:00
James Lyne
5cf353cd8a Update license headers 2021-07-26 01:05:08 +01:00