Skip to content

Feature statsheet overlay dev merge#68

Open
cwisniew wants to merge 72 commits intofeature-1.14from
feature-statsheet-overlay-dev-merge
Open

Feature statsheet overlay dev merge#68
cwisniew wants to merge 72 commits intofeature-1.14from
feature-statsheet-overlay-dev-merge

Conversation

@cwisniew
Copy link
Copy Markdown
Owner

Identify the Bug or Feature request

I know it shouldn't be a two for one but they are quite connected.

Description of the Change

This change adds the ability for users to create pop up stat sheets that can be defined using HTML, CSS, JavaScript.
As part of this change the Campaign Dialog Token Properties has also been revamped an no longer requires several sanity roll checks when trying to update token properties.

Apologies in advance for anyone reviewing this as there are a lot of changes to make this all work.

  • Campaign token property dialog
  • Ability to easily rename / delete token property types
  • Every Campaign no longer requires the "Basic" token property type
  • MapTool "internal" overlays that can not be interacted with via macros
  • New Stat Sheets can appear in any corner or centred along any edge
  • CSS generated based on current theme
  • Support for built in "add-ons" (to serve above CSS via lib:// urls, and eventually built in stat sheet)
  • Utility class for processing handlebars templates (for theme reactive CSS and stat sheets)
  • Ability to define stat sheet to use and location at property type level
  • Ability to override default stat sheet and location for property for each token (changes to token edit dialog)
  • Token Property Type has been added to copy/createToken macros
  • Reusable table cell renderer that allows user to edit string in text field or push the "..." button to edit in macro/html editor
  • Add Token Property Type selection to the new token dialog.
  • Two new events added to event bus for when mouse starts and stops hovering over a token
  • GMs can still use the legacy stat sheet should they want to

Possible Drawbacks

I dread to think what people may not like about this :)

Documentation Notes

Stat sheets can be defined in an add-on.
See https://github.com/cwisniew/MT-test-stat-sheet for an example really simple stat sheet add on and more details on how to define stat sheets.

Update Campaign Property : Token Properties screen
CleanShot 2023-05-25 at 20 11 24@2x
Its now easier to add property types, delete property types and rename them (in the name text field when selected). There is also the ability to set any token property type as the default (needed as you can now delete or rename "Basic"). Note its not possible to delete the default token property type, you would have to make another property type the default before deleting it. There are also check boxes for all of the different options for stats appearing on the stat sheet, so it no longer a text input looks like you are swearing at your token properties.

![CCleanShot 2023-05-25 at 20 12 17@2x
Default values can be edited in the table if they are simple values, or if more complicated then the '...' button can be used to open an editor.
CleanShot 2023-05-25 at 20 12 59@2x

Look Ma... No Basic...
CleanShot 2023-05-25 at 20 15 05@2x

Setting at the token property type level
CleanShot 2023-05-25 at 20 17 25@2x

An example of the basic no frills stat sheet from the above example repo
CleanShot 2023-05-25 at 20 29 47@2x

Using a different theme
CleanShot 2023-05-25 at 20 32 36@2x

The new token dialog has been modified to include property type and stat sheet details
CleanShot 2023-05-25 at 20 18 00@2x

Edit Token Dialog
CleanShot 2023-05-25 at 20 37 19@2x

Stat Sheet pop up at top left
CleanShot 2023-05-25 at 20 38 16@2x

Release Notes


This change is Reviewable

cwisniew and others added 30 commits May 24, 2023 23:08
switch generation of gui code from java to compiled classes
Fix for error when executing a token macro as a player with the current map not visible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants