ClickPlugin
Dependency plugin for detecting clicks on minis (regardless of ownership).
模組介紹 作者原文
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.
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。