You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns the currently active (without a parent) frame
53
+
Returns the currently active base frame
54
54
55
55
#### Returns:
56
56
1.`frame` The current frame
@@ -74,50 +74,55 @@ basalt.autoUpdate()
74
74
75
75
76
76
## basalt.update
77
-
Calls the draw and event handler method once
77
+
Calls the draw and event handler once - this gives more flexibility about which events basalt should process. For example you could filter the terminate event.
78
78
79
79
#### Parameters:
80
80
1.`string` The event to be received
81
81
2.`...` Additional event variables to capture
82
82
83
83
#### Usage:
84
-
*Prints "Left Mouse Button clicked!" when clicked
84
+
*Creates and starts a custom update cycle
85
85
```lua
86
-
quitButton:onClick(
87
-
function(obj, event, x, y)
88
-
if(event=="mouse_click") and (button==1) then--> The button at index 1 is left
creates a label with some information on the main frame on the bottom left, if you click on that label it will open a log view for you see it as the new print for debugging
113
+
creates a label with some information on the main frame on the bottom left, if you click on that label it will open a log view for you. See it as the new print for debugging
114
+
115
+
You can also edit the default debug Label (change position, change color or whatever you want) by accessing the variable basalt.debugLabel
116
+
which returns the debug Label.
117
+
118
+
Also basalt.debugFrame and basalt.debugList are available.
114
119
115
120
#### Parameters:
116
121
1.`...` (multiple parameters are possible, like print does)<br>
0 commit comments