-
Notifications
You must be signed in to change notification settings - Fork 0
Available Calls
Here are all currently available and newly added calls.
Technical breakdown/listing can be found on the main mod's repo. Change to the 1.3 branch if needed.
Any changes to existing calls will be documented here.
Documentation and call wrappers here (possibly indated if on 1.3 tml, navigate to branches, swap to tags, and pick the latest version if you need to)
- Additions/Changes
- Changes are breaking due to tml 1.4.4 being a breaking update aswell
- Added
SetSFXButtonDefaults, used for setting the properties of an SFX Button in SetDefaults - Added
RegisterSFXButton, used for registering an SFX Button with a PlaySound callback - Added
IsSFXButton, used for checking if an item is an SFX Button - Added
GetSFXButton, used for retrieving the PlaySound callback of an SFX Button - Added
GetAllSFXButtonStacks, used for retrieving all currently active "SFX Button stacks - Added
AddSFXButtonStack, used for manually adding to the given SFX Button's stack -
SetAccessory/GetAccessory: MovedGoldenTickettoSetAccessoryItem/GetAccessoryItem -
RegisterClickEffect: Changed parameters -string displayName, string descriptiongone, replaced withobject[] nameArgs = null, object[] descriptionArgs = nullwhich are bound on load. Text is autoloaded like before (you will see them appear in the localization file now), new args allow for formatting -
GetClickEffectAsDict: Changed types of theobjectvalues:DisplayNameandDescriptionare changed fromstringtoLocalizedText - Localization:
- Your clicker tooltips should look like this:
Tooltip: "{$Mods.ClickerClass.Common.Tooltips.Clicker}" - ClickEffect text is now automatically populated
- Your clicker tooltips should look like this:
- Additions/Changes
- Added optional parameter
preHardModetoRegisterClickEffect, indicating if the registered clicker effect is obtainable in Pre-Hardmode. Used in Clicker Class for the Burning Super Death Clicker.
- Added optional parameter
-
Clicker Class Changes
- Auto-reuse was reworked - clickers will never auto-reuse unless you use the new API calls. Revisit them if your mod added auto-reuse to clickers.
-
Additions/Changes
- Added
SetAccessoryType, allowing accessories to control if they belong to an archetype so that they won't be able to be equipped alongside eachother - Added
SetAutoReuseEffect, allowing clickers to get auto-reused with customized speed, optional hotkey and clicker effect proc disabling. -
SetAccessory/GetAccessory: Removed "HandCream" and "IcePack" as options- Has not been made backwards compatible, due to internal changes in Clicker Class, aswell as encouraging use of the new API
- Fetching the status of enabled auto reuse effects is not possible. Let us know if you have a valid use case for it if you need it back
- Added
- Fixes
- Fixed ClickerCompat.GetClickerPerSecond, now returns float
-
IMPORTANT
- Make sure to use the
positionfor ClickEffects instead ofMain.MouseWorldfor compatibility with new accessories.
- Make sure to use the
-
Additions/Changes
- Added more options for accessory/armor set calls to mirror new content
-
1.4 Update!
- Now works with the associated tml release for Terraria 1.4 content
- Obsolete/Outdated calls from 1.3 are no longer supported in 1.4
-
ClickerCompat changes
- No more manually calling
LoadandUnload
- No more manually calling
-
Additions/Changes
- Added more options for accessory/armor set calls to mirror new content
- Added
GetAccessoryItem/SetAccessoryItemfor accessories that cause projectile spawning (for proper tracking ofIProjectileSource) - Added
SetClickerProjectileDefaults,IsClickerWeaponProj, andRegisterClickerWeaponProjectile -
Colorvalue of theGetClickEffectAsDictreturn is nowFunc<Color> -
Actionvalue of theGetClickEffectAsDictreturn now hasProjectileSource_Item_WithAmmoas it's second parameter -
RegisterClickEffectnow has aFunc<Color>overload -
Actionparameter ofRegisterClickEffectnow hasProjectileSource_Item_WithAmmoas it's second parameter -
GetAccessory/SetAccessorychanges:-
EnchantedLED2now available -
Cookienow changed toCookieVisualandCookieVisual2for one of the two possible visuals for cookies. Use in conjunction withGetAccessoryItem/SetAccessoryItem+Cookie
-
Updated ClickerClassExampleMod:
- Please revisit the examples again to see how the new calls are used and which new calls are now mandatory
-
Fixes
- Fixed some outdated calls not being handled properly
-
Additions/Changes
-
GetAccessory/SetAccessorynow accepts "GoldenTicket" and "PortableParticleAccelerator" - Added
SetDisplayMoneyGenerated
-
-
Fixes
- Fixed several SetPlayerStat stat limits:
clickerCrit,clickerDamage,clickerBonus,clickerBonusPercentandclickerRadius
- Fixed several SetPlayerStat stat limits:
-
Additions/Changes
-
RegisterClickEffectaccepts null for display name and description, useful if you wish to also use .lang for your mod -
GetClickEffectAsDictchanged"InternalName"representation, added"Mod"and"UniqueName"keys
-
-
Fixes
- Fixed
GetPlayerStat->clickAmountTotalcall not working at all, now also requires an effect name as a parameter
- Fixed
-
Removals/Changes
- Reminder that all of these are still backwards compatible, you don't HAVE to update your mod immediately
-
SetAmountis deleted -
SetEffectis obsolete -
GetAccessory/SetAccessory->ChocolateChip/StickyKeychainis obsolete
-
Additions/Changes
- Added
borderTextureparameter forRegisterClickerWeapon - Added
GetPathToBorderTexture - Added
RegisterClickEffect,IsClickEffect,AddEffect,GetAllEffectNames,GetClickEffectAsDict,EnableClickEffectandHasClickEffect - Added
GetPlayerStat->clickerPerSecond
- Added
Updated ClickerClassExampleMod:
- Added an advanced clicker weapon, with a custom outline, adding a custom effect which uses a custom clicker projectile
- Revisit the weapon clicker guide on the wiki for updated instructions
-
Fixed
ClickerCompat.GetClickAmount()andClickerCompat.GetClickerAmountTotal()returning float instead of int (API Breaking, update your mod if you were using that previously) -
Added Get and Set calls for accessory effects, and Get calls for armor sets:
GetArmorSet options: Motherboard, Overclock, Precursor, Mice
GetAccesory options: ChocolateChip, EnchantedLED, HandCream, StickyKeychain, GlassOfMilk, Cookie, ClickingGlove, AncientClickingGlove, RegalClickingGlove
SetAccessory options: ChocolateChip, EnchantedLED, EnchantedLED2, HandCream, StickyKeychain, GlassOfMilk, Cookie, Cookie2, ClickingGlove, AncientClickingGlove, RegalClickingGlove
No calls