-
Notifications
You must be signed in to change notification settings - Fork 18
2.5.0 code changes
Solanya edited this page Apr 16, 2023
·
3 revisions
Some system changes in the latest Total RP 3 version will be breaking commonly used functions, this should help fixing issues arising from these in third party modules.
- Old function >
- New function
-
TRP3_API.events.fireEvent(TRP3_API.events.EVENT_NAME, ...)
>TRP3_Addon:TriggerEvent(TRP3_Addon.Events.EVENT_NAME, ...)
-
TRP3_Extended:TriggerEvent(TRP3_Extended.Events.EVENT_NAME, ...)
for Extended events
-
TRP3_API.events.listenToEvent(TRP3_API.events.EVENT_NAME, ...)
>TRP3_API.RegisterCallback(TRP3_Addon, TRP3_Addon.Events.EVENT_NAME, ...)
-
TRP3_API.RegisterCallback(TRP3_Extended, TRP3_Extended.Events.EVENT_NAME, ...)
for Extended events
-
TRP3_API.utils.event.registerHandler("GAME_EVENT", function(...) [...] end)
>TRP3_API.RegisterCallback(TRP3_API.GameEvents, "GAME_EVENT", function(_, ...) [...] end)
-
"TRP3_ROLL"
>-
"DICE_ROLL"
orTRP3_Addon.Events.DICE_ROLL
-
- Some events have been renamed, see
totalRP3_Extended/main.lua
for the full TRP3_Extended.Events list
Nobody seemed to rely on the Color and ColorManager classes from Ellyb, but if you did, see totalRP3/Core/Color.lua
and totalRP3/Core/ColorData.lua
for the new functions and color arrays.