summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-06 20:50:00 -0500
committerJeff Carr <[email protected]>2023-04-06 20:50:00 -0500
commit27e76ebb005280db2bbbd02b0efa6d7faf4bcec7 (patch)
treeaa86dd208e05a9f088258d5cbba3d9e350f95cfd /plugin.go
parent933a7e4df0e6a28ad06dfd60ab2928d5cdf916f9 (diff)
correctly deprecate *widget to plugins
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/plugin.go b/plugin.go
index f4e97d0..26667cf 100644
--- a/plugin.go
+++ b/plugin.go
@@ -251,21 +251,15 @@ func loadfile(filename string) *plugin.Plugin {
return plug
}
-// Sends a widget and what to do with it to the plugin
-// parent = n, child = c
-
-// THIS COPIES THE WIDGET STRUCT 2023/03/16 as it's not crashing. Queue() is also being used
-// never mind that comment. no it doesn't
+// 2023/04/06 Queue() is also being used and channels are being used. memcopy() only
func newaction(a *toolkit.Action, n *Node, where *Node) {
if (n != nil) {
- a.Widget = &n.widget
a.WidgetId = n.id
a.WidgetType = n.widget.Type
a.ActionType = a.ActionType
}
- // action(&a, newNode, n)
- // newaction(&a, newNode, n)
+ // TODO: redo this grid logic
if (where != nil) {
log(debugGui, "Action() START on where X,Y, Next X,Y =", where.Name, where.X, where.Y, where.NextX, where.NextY)
a.ParentId = where.id