-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
85adee5
commit 3d28b25
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# LibFleeingButton-1.0 | ||
LibFleeingButton is a revolutionary new lib that makes buttons flee from the cursor. | ||
|
||
## Usage | ||
|
||
```lua | ||
local button = CreateFrame("Button", nil, UIParent, "SharedGoldRedButtonTemplate"); | ||
button:SetPoint("CENTER"); | ||
button:SetText("Click for free Bitcoin!"); | ||
|
||
local LibFleeingButton = LibStub:GetLibrary("LibFleeingButton-1.0"); | ||
|
||
-- make button scared | ||
LibFleeingButton.MakeButtonFlee(button); | ||
|
||
-- reset button | ||
LibFleeingButton.ResetButton(button); | ||
|
||
-- temporarily suspend fleeing | ||
LibFleeingButton.PauseButtonFleeing(button); | ||
|
||
-- resume fleeing | ||
LibFleeingButton.ResumeButtonFleeing(button); | ||
|
||
-- profit??? | ||
``` |