Skip to content

Commit d79f738

Browse files
committed
update readme
1 parent 2d16fc3 commit d79f738

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Return unit frame for a given unit
66

77
```Lua
88
local LGF = LibStub("LibGetFrame-1.0")
9-
local frame = LGF.GetFrame(unit , options)
9+
local frame = LGF.GetUnitFrame(unit , options)
1010
```
1111

1212
## Options
@@ -100,7 +100,7 @@ local frame = LGF.GetFrame(unit , options)
100100
```Lua
101101
local LGF = LibStub("LibGetFrame-1.0")
102102
local LCG = LibStub("LibCustomGlow-1.0")
103-
local frame = LGF.GetFrame("player")
103+
local frame = LGF.GetUnitFrame("player")
104104

105105
if frame then
106106
LCG.ButtonGlow_Start(frame)
@@ -114,7 +114,7 @@ end
114114
local LGF = LibStub("LibGetFrame-1.0")
115115
local LCG = LibStub("LibCustomGlow-1.0")
116116

117-
local frames = LGF.GetFrame("target", {
117+
local frames = LGF.GetUnitFrame("target", {
118118
ignorePlayerFrame = false,
119119
ignoreTargetFrame = false,
120120
ignoreTargettargetFrame = false,
@@ -130,7 +130,7 @@ end
130130
### Ignore Vuhdo panel 2 and 3
131131

132132
```Lua
133-
local frame = LGF.GetFrame("player", {
133+
local frame = LGF.GetUnitFrame("player", {
134134
ignoreFrames = { "Vd2.*", "Vd3.*" }
135135
})
136136
```

0 commit comments

Comments
 (0)