Advertisement
ZorbaTHut

Rift upcoming breaking changes

Sep 24th, 2012
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 KB | None | 0 0
  1. 1.10 BREAKING CHANGES:
  2.  
  3. We've finally finished rigging up the deprecation system! All of the deprecation items we've been building up will be moved into Compatibility Mode for 1.10. Compatibility Mode is a checkbox that must be enabled by the player. This is a last warning before your addon breaks entirely - it will work through 1.10, with some player interaction required, but the last compatibility vestiges will be removed shortly after the release of Storm Legion.
  4.  
  5. Note that "1.10 mode" can be enabled on live servers by running Command.System.Strict() inside the addon environment. If you want to prepare your addon for 1.10, you can do so today!
  6.  
  7. This is a complete list of all breaking changes, as well as how you can replace that functionality:
  8.  
  9. print_raw()
  10. - See Command.Console.Display() - some code changes may be necessary.
  11.  
  12. Inspect.Ability.List()
  13. Inspect.Ability.Detail()
  14. - Use Inspect.Ability.New.*() instead.
  15.  
  16. Inspect.Achievement.Detail().faction
  17. - Use Inspect.Achievement.Detail().alliance instead.
  18.  
  19. Inspect.Buff.Detail().ability
  20. Inspect.Castbar().ability
  21. - Use Inspect.*().abilityNew instead.
  22.  
  23. Inspect.Item.Detail().requiredFactionName
  24. Inspect.Unit.Detail().factionName
  25. - Use Inspect.Faction.Detail(Inspect.Item.Detail().requiredFaction / Inspect.Unit.Detail().faction).name instead.
  26.  
  27. Inspect.Unit.Detail().titlePrefix/titleSuffix
  28. - For 1.9, use Inspect.Unit.Detail().titlePrefixName/titleSuffixName instead. For 1.10, use Inspect.Title.Detail(Inspect.Unit.Detail().titlePrefixId/titleSuffixId).name.
  29.  
  30. Event.Ability.Add
  31. Event.Ability.Remove
  32. Event.Ability.Cooldown.Begin
  33. Event.Ability.Cooldown.End
  34. Event.Ability.Target
  35. Event.Ability.Range.True
  36. Event.Ability.Range.False
  37. Event.Ability.Usable.True
  38. Event.Ability.Usable.False
  39. - Use Event.Ability.New.* instead.
  40.  
  41. Event.Unit.Available
  42. Event.Unit.Unavailable
  43. - See Event.Unit.Availability.* - some code changes may be necessary.
  44.  
  45. Event.Unit.Detail.TitlePrefix
  46. Event.Unit.Detail.TitleSuffix
  47. - For 1.9, use Event.Unit.Detail.TitlePrefixName/TitleSuffixName instead. For 1.10, use Event.Unit.Detail.TitlePrefixId/TitleSuffixId, then use Inspect.Title.Detail() to look up the localized name.
  48.  
  49. RiftButton/RiftCheckbox/RiftSlider/RiftTextfield/RiftWindow:GetDefaultWidth()/GetDefaultHeight()
  50. - Frames now initialize themselves with their default sizes automatically.
  51.  
  52. RiftButton/RiftCheckbox/RiftSlider/RiftTextfield/RiftWindow:ResizeToDefault()
  53. - Clearing a frame's explicitly-set size will now return it to default.
  54.  
  55. Text : ResizeToText()/GetFullWidth()/GetFullHeight()
  56. - Similar to other frames, a text's default size is considered the size that fits the text perfectly. Unless constrained via SetPoint, a textfield's height will adjust automatically if its width changes.
  57.  
  58. Texture:ResizeToTexture()
  59. - Similar to other frames, a texture's default size is considered the texture's native resolution, and a texture will resize itself automatically if its size has not been manually set.
  60.  
  61. POST-1.10 BREAKING CHANGES:
  62.  
  63. * Inspect.Unit.Detail()'s titlePrefixName and titleSuffixName are now deprecated and will be removed in the future, along with the Event equivalents.
  64.  
  65. EVENTUAL BREAKING CHANGES WITHOUT A PERMANENT SOLUTION, NOT YET PLANNED FOR REMOVAL:
  66.  
  67. * Inspect.TEMPORARY.Role() and Event.TEMPORARY.Role will be removed once replacements exist.
  68. * Inspect.TEMPORARY.Experience() and Event.TEMPORARY.Experience will be removed once replacements exist.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement