Provides a "Hello World" ES Modules template repo to get set up with using the the TyphonJS Runtime Library and Svelte on Foundry VTT.
Getting started with a new library or development methodology can be difficult. This demo module provides the essentials with working with Svelte and various aspects that are provided with the TyphonJS Runtime Library. Please stop by the Discord server to ask any questions.
template-svelte-esm
as the folder installed in your module directory).npm install
build
or for constant development build-watch
(this builds and bundles the module to
./dist
.)Template Svelte (ESM)
visible in your modules list.Template Svelte (ESM)
under Manage Modules
.Hello Foundry
.Launch a modal dialog
button shows off the really neat modal dialog capability of TRL. This creates
a dialog using a "glasspane" approach that prevents users from interacting with the rest of the Foundry UI without
causing Foundry itself to pause. (TJSDialog.prompt
)draggable
, minimizable
and resizable
show a few of the reactive Application options that
can be dynamically changed during runtime. If you click off 'draggable' the application window is no longer draggable;
likewise turn off minimizable prevents the window from being minimized when clicking the title bar. Clicking off
resizable dynamically turns off the resize capability of the window. There are several additional standard application
options that are reactive with TRL application shells.The TyphonJS Runtime Library (TRL) brings an exciting new library resource for all Foundry VTT developers to build advanced modules and game systems using Svelte. A Svelte UI component library built for Foundry and extensions to the core Foundry UI / Application framework make it easy to create declarative Svelte based UIs in a method familiar to Foundry VTT developers. The core UI component framework contains reactive "application shells" that provide an enhanced ability to control your UI / window experience including intro and outro transitions along with support key UI elements like context menus and a new backward compatible and API compliant Dialog component that features a modal dialog option.
TRL is innovative as it delivers a runtime library module for Foundry that packages up the runtime in a way that can be shared across any number of modules / game systems utilizing it thereby saving a lot of space in any given module or game system. Optionally, it is possible to also bundle TRL directly into your module or game system. The TRL is both a Foundry library module and an NPM package providing the development dependency utilized for code