Skip to content

Commit 3d28b25

Browse files
authored
Create README.md
1 parent 85adee5 commit 3d28b25

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# LibFleeingButton-1.0
2+
LibFleeingButton is a revolutionary new lib that makes buttons flee from the cursor.
3+
4+
## Usage
5+
6+
```lua
7+
local button = CreateFrame("Button", nil, UIParent, "SharedGoldRedButtonTemplate");
8+
button:SetPoint("CENTER");
9+
button:SetText("Click for free Bitcoin!");
10+
11+
local LibFleeingButton = LibStub:GetLibrary("LibFleeingButton-1.0");
12+
13+
-- make button scared
14+
LibFleeingButton.MakeButtonFlee(button);
15+
16+
-- reset button
17+
LibFleeingButton.ResetButton(button);
18+
19+
-- temporarily suspend fleeing
20+
LibFleeingButton.PauseButtonFleeing(button);
21+
22+
-- resume fleeing
23+
LibFleeingButton.ResumeButtonFleeing(button);
24+
25+
-- profit???
26+
```

0 commit comments

Comments
 (0)