Skip to content

Create LUA function "getAnchorsGroup"#64

Open
alysonjacomin wants to merge 1 commit into
OTAcademy:masterfrom
alysonjacomin:Add-LUA-function-getAnchorsGroup-
Open

Create LUA function "getAnchorsGroup"#64
alysonjacomin wants to merge 1 commit into
OTAcademy:masterfrom
alysonjacomin:Add-LUA-function-getAnchorsGroup-

Conversation

@alysonjacomin
Copy link
Copy Markdown
Contributor

@alysonjacomin alysonjacomin commented Aug 12, 2025

With this function, we can get all the anchors of a widget in lua: "anchored", "widgetHooked", and "hooked" parameters of each anchor.

Example:

for _, anchor in pairs(widget:getAnchorsGroup()) do
	print(anchor.anchored)
	print(anchor.widget)
	print(anchor.hooked)
end

With this function, we can get all the anchors of a widget in lua: "anchored", "widgetHooked", and "hooked" parameters.

Example:
```
for _, anchorGroup in pairs(widget:getAnchorsGroup()) do
	print(anchorGroup.anchored)
	print(anchorGroup.widget)
	print(anchorGroup.hooked)
end
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant