[v1.7.0+] Highlight Antimagic Disruptors

A place to post your add ons and ideas for them

Moderator: Moderator

Post Reply
Message
Author
Zizzo
Sher'Tul Godslayer
Posts: 2521
Joined: Thu Jan 23, 2003 8:13 pm
Location: A shallow water area south of Bree
Contact:

[v1.7.0+] Highlight Antimagic Disruptors

#1 Post by Zizzo »

On a complete lark, I'm picking up MasterInire's request and have whipped out a quickie addon, Highlight Antimagic Disruptors. Basically, if you know any spell talents or have any other arcane knowledge, any arcane-disrupting equipment you're wearing/wielding will be highlighted in the equipment display (as shown in the Steam page image), to show you exactly what's giving you the Antimagic Disruption effect. [At least, I hope that's what MasterInire was asking for… :oops: ] This is controlled by new game option "UI | Highlight arcane-disrupting equipment", enabled by default (since I figure you wouldn't be installing the addon if you didn't want the effect :wink: ).

[And looking ahead, this strikes me as something that could easily go into ZOmnibus and ZOmnibus Lite, though we'd probably want the game option to default to disabled in that case.]

[Implementation notes:]

Code: Select all

Hooks:
  GameOptions:generateList [to add our game option]
Superload:
  engine.ui.EquipDollFrame:
    generate() [to prepare our highlight border]
    display() [to draw our highlight border as needed]
"Blessed are the yeeks, for they shall inherit Arda..."

Post Reply