Skip to content

2.5.3 Consolidated UI Changes

Ketho edited this page Feb 2, 2022 · 6 revisions

Contents

Notable Changes

  • The interface version is 20503. Deprecations for this patch can be found here.
  • The client has had some API and FrameXML changes synchronized from patch 1.14.1 and patch 9.2.0.
  • SharedTooltipTemplate and GameTooltipTemplate no longer inherit BackdropTemplate.
  • The event trace tool now supports logging events while the frame is hidden. This option is disabled by default.

Tooltip Backdrop Changes

The main tooltip templates - SharedTooltipTemplate and GameTooltipTemplate - no longer inherit BackdropTemplate as of patch 9.1.5 and 1.14.1. This is a breaking change for code that customizes the backdrop on tooltips which inherit these templates, including the default global GameTooltip object.

The tooltip objects now make use of the NineSlice system directly, accessible via the .NineSlice key on any Tooltip object inheriting these templates.

Backdrop Colors

Any queries and modifications of the colors for the background or borders of a tooltip can be replaced with the following function calls.

  • GameTooltip:GetBackdropColor() can be replaced by GameTooltip.NineSlice:GetCenterColor().
  • GameTooltip:SetBackdropColor(r, g, b,[ a]) can be replaced by GameTooltip.NineSlice:SetCenterColor(r, g, b[, a]).
  • GameTooltip:GetBackdropBorderColor() can be replaced by GameTooltip.NineSlice:GetBorderColor().
  • GameTooltip:SetBackdropBorderColor(r, g, b,[ a]) can be replaced by GameTooltip.NineSlice:SetBorderColor(r, g, b[, a]).

Backdrop Textures

For GameTooltip:SetBackdrop(backdropInfo), the following workaround can be used to make any Tooltip object backdrop-enabled:

Mixin(GameTooltip.NineSlice, BackdropTemplateMixin);
SharedTooltip_SetBackdropStyle(GameTooltip, nil, GameTooltip.IsEmbedded);
GameTooltip.NineSlice:SetScript("OnSizeChanged", GameTooltip.NineSlice.OnBackdropSizeChanged);
GameTooltip.NineSlice:SetBackdrop(backdropInfo);

API Changes by Category

C_BehavioralMessaging

C_Club

C_Commentator

C_GamePad

C_LFGList

C_Seasons

C_SocialRestrictions

Global APIs

Enum Changes

Many enum changes from the mainline client are present in this new patch; only those relevant for BCC are listed below.

Event Changes

FrameXML API Changes

Note that each build generally has a significant number of FrameXML utility changes, of which only significant ones of interest will be listed here.

Widget API Changes

FontString

Resources