ClickPlugin

v1.1.0·Updated 2022-12-10

Dependency plugin for detecting clicks on minis (regardless of ownership).

About this mod Author’s original text

Click Plugin

This unofficial TaleSpire mod for subscription based detection of selected and clicked minis.

Change Log

1.1.0: Moved to a event based solution with no Update method code

1.1.0: Change so that callback retruns a bool to indicate if mouse click should be passed to core

1.0.0: Initial release

Install

Use R2ModMan or similar installer to install.

Usage

This is a dependency plugin so it is not used by the user directly. Plugin that make use of this plugin can subscribe

to obtain select mini and clicked mini events.

To subscribe:

Subscribe(callback);

or

Guid subscriptionId = Subscribe(callback);

If it is desirable to be able to unsubscribe.

To unsubscribe:

Unsubscribe(subscriptionId);

The callback takes no parameetrs but the last selected and last clicked mini can be obtained with:

GetLastSelectedAsset

and

GetLastClickedAsset

The difference between selected and clicked is that selected only updates if the user has ownership of the clicked mini

(or is GM). Clicked on the other hand updates regardless of ownership. That means clicked will always update when a new

mini is clicked by selected may or may not updated depending on ownership.

Install & use Install: follow the bundled instructions

  1. Unzip the archive from playbuff and read the bundled readme / instructions first.
  2. Most mods rely on the game's mod loader — the usual route is a community mod manager (such as r2modman): pick this game, install, and it handles the loader and dependencies.
  3. For a manual install, put the mod files into the matching Mod / plugins folder inside the game directory.
  4. Launch the game to confirm it loaded; mods with listed dependencies need those installed as well.

Install locations vary a lot between mods — the bundled readme is the most reliable guide.

File & checksum

Filename
ClickPlugin-1.1.0.zip
File size
28.0 KiB