Night Watch Libraries (NWLib)

A package of Libraries for creating addons

File Details

NW Libraries v1.0.4

  • R
  • Apr 8, 2025
  • 165.68 KB
  • 2.3K
  • 11.1.0+4
  • Classic + 2

File Name

NWLibraries-1.0.4.zip

Supported Versions

  • 11.1.0
  • 4.4.2
  • 3.4.4
  • 2.5.4
  • 1.15.7

v1.0.5

  • Replaced NWMiniMap with wrapper for standard LibDBIcon There were a lot of requests to use the standardized LibDBIcon so that the show/hide features of other apps would work through the databroker. As such I have included the libraries necessary to accomodate this. This changes the existing NWLib.Minimap functions in the following ways:
  • Create() no longer takes the last two props of lockDist and lockPos
  • Show() takes an optional additional prop that allows a true/false of show for a single show/hide call.
  • UpdatePosition() will no longer toggle the show/hide. This should be done through the Show() function.

You are no longer required to use the APP_SETTING.NWLibMinimap.visible prop to toggle your show/hide. This is done directly though the Show() or Hide() function. If you still wish to use this as a toggle, call Show(name, visible) instead of calling UpdatePosition(). Also note that your menu callback of CallBack(self, button) no longer recognizes self.isMinimapButton. Adjust your menu options accordingly.