PitBull Unit Frames 4.0

API/ModuleHandling/FaderModule

FaderModule:ClearFrame(frame)

Remove any opacity value for this module.

Parameters

frame
the Unit Frame to clear

Return value

false, since :UpdateLayout isn't required for this type of module

Usage

MyModule:ClearFrame(frame)


FaderModule:OnHide(frame)

Handle the frame being hidden

Parameters

frame
the Unit Frame hidden.

Usage

MyModule:OnHide(frame)


FaderModule:UpdateFrame(frame)

Update the opacity value for the current module

Parameters

frame
the Unit Frame to update

Return value

false, since :UpdateLayout isn't required for this type of module

Usage

MyModule:UpdateStatusBar(frame)


PitBull4:GetFinalFrameOpacity(frame)

Return how opaque a frame will be once animation completes.

Parameters

frame
the Unit Frame to check.

Return value

a number within [0, 1]

Usage

local opacity = PitBull4:GetFinalFrameOpacity(frame)


call_opacity_function(self, frame, the)

Call the :GetValue function on the status bar module regarding the given frame.

Parameters

self
frame
the frame to get the value of
the
module

Return value

nil or a number within [0, 1)

Usage

local value, extra = call_opacity_function(MyModule, someFrame)


You must login to post a comment. Don't have an account? Register to get one!