Changes for page 09 Lua Editor
Last modified by Nhu Nguyen on 2025/03/09 17:22
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -111,10 +111,13 @@ 111 111 * **Rising script**: after the button is raised, the code chunk in the area is executed; 112 112 * **Timing script**: periodically execute the code. 113 113 114 +(% class="box infomessage" %) 115 +((( 114 114 **✎Note: ** 115 115 116 116 * The timing script is not commonly used because it is similar to the screen background script function. It is not recommended to write and call function here. It should be written in Script_Screen.lua, which is convenient for editing, searching, and replacing operations. 117 117 * It is not allowed to write endless loops or call functions that will loop enlessly in the widget. Once used, the entire screen will be stuck, and any buttons will no longer be used. We have to restart the screen to restore. 120 +))) 118 118 119 119 = **Platform** = 120 120 ... ... @@ -137,7 +137,10 @@ 137 137 * **Tens digit=1**: indicates that the function or global variable defined in this file can be used in the background code file (Script_BG.lua). If it is 0, it is not available. 138 138 * **Ones digit=1**: indicates that the functions or global variables defined in this file can be used in the screen code file (Script_Screen.lua) or LuaScript components. If it is 0, it is not available. 139 139 143 +(% class="box infomessage" %) 144 +((( 140 140 **✎Note: **If you rename the file manually, you must modify the limits in the file accordingly, otherwise the script file will not take effect. 146 +))) 141 141 142 142 == Built-In script file == 143 143 ... ... @@ -162,7 +162,10 @@ 162 162 163 163 The above is the initialization function of screen 0. For screen 100, you can replace 0 with 100. You can add your own function: function we_scr_init_100() end 164 164 171 +(% class="box infomessage" %) 172 +((( 165 165 **✎Note: **The above function has a fixed name. If it is modified, it will not cause crash, but the function can be found. 174 +))) 166 166 167 167 **Example:** After the screen 0 initialization function is changed to we_scR_init_0(), the script will not be executed when screen 0 is initialized, and then no script will be executed, and nothing will be done because the "we_scr_init_0" function cannot be found. 168 168