Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

_NPCScan.Overlay: Add API to change Minimap canvas' parent. #44

Closed
GoogleCodeExporter opened this issue Jan 27, 2016 · 1 comment
Closed

Comments

@GoogleCodeExporter
Copy link

Name of add-on: Npcscan.Overlay


Description of change/new feature:
Add a way to reparent NPCScan.Overlay's Minimap features so that FarmHud can 
show NPCScan.Overlay.

Quick hack:

function me:ReparentMinimap(minimap)
    Minimap = minimap
    self.ScrollFrame:SetParent(Minimap)
    self.ScrollFrame:SetAllPoints()
end

and adding someway to reach the mod:
_G["npcscan_overlay"] = me

Original issue reported on code.google.com by codered...@gmail.com on 3 May 2011 at 5:49

@GoogleCodeExporter
Copy link
Author

Added in version 4.1.0.2, r1611.

The new API is MinimapModule:SetMinimapFrame( Frame ).  I tested with FarmHud 
v1.0.0 and it seems to work alright.

You can access the Minimap module like this:
local MinimapModule = _NPCScan.Overlay.Modules.List[ "Minimap" ];

Original comment by saiket....@gmail.com on 4 May 2011 at 12:49

  • Changed title: _NPCScan.Overlay: Add API to change Minimap canvas' parent.
  • Changed state: Fixed
  • Added labels: AddOn-NPCScan.Overlay

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant