Skip to content

Commit

Permalink
Merge pull request #50 from Moerill/remove-webpack
Browse files Browse the repository at this point in the history
v2.8.0
  • Loading branch information
Moerill authored Aug 30, 2020
2 parents 8bfdcc5 + b5c3afa commit b4e6cfe
Show file tree
Hide file tree
Showing 99 changed files with 491 additions and 9,621 deletions.
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG] short bug description"
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.
Also post console errors (F12 for most browsers) here that occur.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Module incompatibilities**
Please try to reproduce your bug with all other modules deactivated. If this module clashes with another module, please find that module and report it here.
The [find the culprit](https://github.com/Moerill/fvtt-find-the-culprit/) module may prove to be useful here.

**Screenshots/GIFs/Videos**
If applicable, add screenshots to help explain your problem.
> A picture is worth a thousand words.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- FVTT Version [e.g. 0.6.6]
- Module version [e.g. 0.1.0]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[FEATURE] short description"
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
17 changes: 10 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

name: Upload Release Asset

Expand All @@ -13,9 +13,12 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/*/}
- name: Zip files
run: |
cd dist && zip -r token-mold *
zip -r ${{ steps.get_version.outputs.VERSION }}.zip *.css *.js scripts module.json LICENSE templates assets
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -27,12 +30,12 @@ jobs:
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/token-mold.zip
asset_name: token-mold.zip
asset_content_type: application/zip
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ steps.get_version.outputs.VERSION }}.zip
asset_name: ${{ steps.get_version.outputs.VERSION }}.zip
asset_content_type: application/zip
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
foundryconfig.json
foundryconfig.json
package-lock.json
yarn-error.log
22 changes: 18 additions & 4 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
Copyright 2020 Valentin Henkys
The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Copyright (c) 2020 Valentin Henkys.

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
scripts
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
56 changes: 21 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,28 @@ On creation each Token will fit snuggly into the pattern of your mold.

## Feature Overview
- [Token Mold](#token-mold)
- [Feature Overview](#feature-overview)
- [Usage](#usage)
- [Feature Overview](#feature-overview)
- [Usage](#usage)
- [Important Information!](#important-information)
- [FVTT Version compatibility](#fvtt-version-compatibility)
- [Bug Reporting](#bug-reporting)
- [Attribution](#attribution)
- [Licensing](#licensing)
- [Support the development](#support-the-development)
- [FVTT Version compatibility](#fvtt-version-compatibility)
- [Bug Reporting](#bug-reporting)
- [Attribution](#attribution)
- [Licensing](#licensing)
- [Support the development](#support-the-development)
- [FAQ](#faq)
- [Why are there so many confusing attributes to choose from?](#why-are-there-so-many-confusing-attributes-to-choose-from)
- [Why are there only squares shown for icon selections dropdown in Firefox?](#why-are-there-only-squares-shown-for-icon-selections-dropdown-in-firefox)
- [Why does the sticky template only move if the GM moves the token?](#why-does-the-sticky-template-only-move-if-the-gm-moves-the-token)
- [Why are there so many confusing attributes to choose from?](#why-are-there-so-many-confusing-attributes-to-choose-from)
- [Why are there only squares shown for icon selections dropdown in Firefox?](#why-are-there-only-squares-shown-for-icon-selections-dropdown-in-firefox)
- [Features](#features)
- [Automatic Indexing](#automatic-indexing)
- [Naming options](#naming-options)
- [Random Name Generation](#random-name-generation)
- [How does this work?](#how-does-this-work)
- [Random adjectives](#random-adjectives)
- [Hide Names](#hide-names)
- [Override Token Config](#override-token-config)
- [Sticky Templates](#sticky-templates)
- [Hit Point Rolling](#hit-point-rolling)
- [Customizable Token Overlay](#customizable-token-overlay)
- [Automatic Token Scaling](#automatic-token-scaling)
- [Automatic Indexing](#automatic-indexing)
- [Naming options](#naming-options)
- [Random Name Generation](#random-name-generation)
- [How does this work?](#how-does-this-work)
- [Random adjectives](#random-adjectives)
- [Hide Names](#hide-names)
- [Override Token Config](#override-token-config)
- [Hit Point Rolling](#hit-point-rolling)
- [Customizable Token Overlay](#customizable-token-overlay)
- [Automatic Token Scaling](#automatic-token-scaling)

## Usage
Pull a token onto the canvas and the chosen pattern will be automatically applied to your Token.
Expand Down Expand Up @@ -72,7 +70,7 @@ This work is licensed under Foundry Virtual Tabletop [EULA - Limited License Agr

## Support the development
I'm doing this project mostly alone (with partial help of some wonderful people mentioned above) in my spare time and for free.
If you want to encourage me to keep doing this, i am happy about all kind of tokens of appreciation. (Like some nice words, recommending this project or even a small donation over at my [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FYZ294SP2JBGS&source=url)).
If you want to encourage me to keep doing this, i am happy about all kind of tokens of appreciation. (Like some nice words, recommending this project, contributions to the project or even a small donation over at my [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FYZ294SP2JBGS&source=url)).

# FAQ
### Why are there so many confusing attributes to choose from?
Expand All @@ -82,12 +80,6 @@ To allow *Token-Mold* to be usable for all kind of systems the module generates
This is a current bug in Firefox in combination with icons inside of html options tags. They will show properly inside the select box when selected though. My suggestion here is that you either focus the box and then switch between the selections using the arrow keys or use a different browser for this configuration.
After they're selected they should display fine in the overlay and the select box!

### Why does the sticky template only move if the GM moves the token?
Due to FVTTs permission settings players may only manipulate their own templates. So for a player to be able to use sticky templates properly, **make sure that the player controlling the token created the template**.
For GMs this restriction does not apply, since they can manipulate even user created templates.
I may try to find a workaround for this in the future, but for the time being this restriction will stay.


# Features
## Automatic Indexing
You like to name all your goats "goat"? Don't worry this mod is here to help you differentiate them!
Expand All @@ -114,26 +106,20 @@ Using the chosen language *Token-Mold* will now generate a name for the token us
A bonus treat for DnD5e users: trdischat has created a predefined list of attributes, values and languages for you to use.

Awesome, but..

#### How does this work?
The algorithm tries to generate a word using letter frequencies sampled for 35 different languages. So each letter is chosen randomly based on the previous two letters and weighted by their frequency of appereance.

### Random adjectives
What? you can't speak those newly generated names out loud? No problem, here is some more help to make your minions more descriptive, by adding random (english) adjectives to their names!
![Random Adjectives](doc/random_adjectives.webp)


### Hide Names
Don't like names at all? You can just let *Token-Mold* delete the tokens name so your players will never know what hit them! (Or maybe they just know that it was **Bamboozled 8**, but not what he/she/it is.)


## Override Token Config
Don't like how you set up all your tokens? Or you dislike the default settings set for a compendium? Then you got the perfect module! Set your wanted configuration in the menu and it will automatically get applied to every token you from now on create!

## Sticky Templates
You miss auras in FVTT? or some kind of other template following your beloved tokens?
Just use *Token-Mold*s sticky templates!
![Sticky Templates](doc/sticky_template.gif)

## Hit Point Rolling
(DnD5e only)
To lazy to roll your minions hit points yourself? Don't worry, *Token-Mold* automates that for you!
Expand Down
Loading

0 comments on commit b4e6cfe

Please sign in to comment.