Skip to content

Commit

Permalink
Merge pull request #4903 from cwisniew/add-on-dev-tools
Browse files Browse the repository at this point in the history
Provide functionality for add-on development
  • Loading branch information
cwisniew authored Oct 16, 2024
2 parents e96f9fc + 1db7c53 commit 06cdc2d
Show file tree
Hide file tree
Showing 39 changed files with 3,045 additions and 159 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,9 @@ dependencies {
// Built In Add-on Libraries
implementation 'com.github.RPTools:maptool-builtin-addons:1.3'

// File watcher library to work around some inconsistencies with java.nio.file.WatchService
implementation 'io.methvin:directory-watcher:0.18.0'

// For advanced dice roller
implementation 'com.github.RPTools:advanced-dice-roller:1.0.3'
}
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/net/rptools/maptool/client/AppPreferences.java
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,15 @@ public class AppPreferences {

public static final Preference<String> iconTheme = StringType.create("iconTheme", "Rod Takehara");

public static final Preference<String> externalAddOnLibrariesPath =
StringType.create("externalAddOnLibrariesPath", null);

public static final Preference<Boolean> externalAddOnLibrariesEnabled =
BooleanType.create("externalAddOnLibrariesEnabled", false);

public static final Preference<String> createAddOnParentDir =
StringType.create("createAddOnParentDir", System.getProperty("user.home"));

static {
// Used to be stored as separate components but now is one color. Add if not already there.
if (prefs.get("trustedPrefixFG", null) == null) {
Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit 06cdc2d

Please sign in to comment.