Git Product home page Git Product logo

word-generator-foundryvtt's Introduction

Text Generator

This module for FoundryVTT adds a means of randomly generating words, names or even sentences, based on a given sample set.

Screenshot

Usage (Macro)

This section explains how to make use of the module as it comes out of the box.

  1. Add a new Macro of type script.
  2. Paste the following code snippet and save: new WgApplication().render(true);
  3. That's it! When executing the macro, the word generator dialog should now pop up!

word-generator-foundryvtt's People

Contributors

codewringer avatar

Stargazers

 avatar

Watchers

 avatar

word-generator-foundryvtt's Issues

Bad styling of "Add New Generator" button

The label of the add-button wraps to the next line, which results in it overlapping the word generator list. It should instead remain on the same line as the button icon and not wrap.

Add means of grouping generators

For easier navigation when one has many word generators set up, they should be groupable (and sub-groupable, of course!). Groups should be collapsible, so they take up far less vertical space.

Make UI reactive

Currently, CRUD operations have to be made through WordGeneratorApplication. This represents explicit data and UI changes, made with the same function. While this system is simple and effective, it is also difficult to maintain and bloats up the presentation code, when instead changing the data should be just as straight-forward as changing the data.

The UI should simply "react" to its underlying data changing. The UI shouldn't care who changed the data and neither should it care how. All it should care about is the fact that data changed, and then react to it with a re-render of the affected data. This would make the UI code much sleeker and easier to maintain.

Add means of linking other generators as the "sample set"

This would allow to chain generators in a flexible way. For example, there could be a generator for first names, one for last names and one for full names, which combines the input of the previous two generators (in a set order, i. e. first name then last name).

Custom strategy localization

Custom spelling/sequencing strategies do not yet have a mechanism by which to provide localized hints.
For every setting they specify, they must be able to provide either a localization key or localized string.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.