Changes for page 09 Lua Editor
Last modified by Nhu Nguyen on 2025/03/09 17:22
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Jim1 +XWiki.Stone - Content
-
... ... @@ -23,8 +23,6 @@ 23 23 * Create new file: right-click the Lua node to select new file, and enter a name in pop-up window, (the name starts with an underscore or letter); 24 24 * Refresh list: the file edited (new/deleted/renamed) by the user externally, the configuration is not refreshed. In this case this function needs to be used to synchronize changes; 25 25 26 -(% class="box infomessage" %) 27 -((( 28 28 **✎Note: ** 29 29 30 30 * There is no script file for the newly created project. Following two new files will automatically generate. ... ... @@ -31,7 +31,6 @@ 31 31 * Script_BG.lua: is the global background script file, which includes initialization and timing functions 32 32 * Script_Screen.lua: is a screen script file, and each screen can have initialization, timing, and close functions 33 33 * At any time, as long as there is a new operation, the software will judge whether the above two files exist, and which one is missing will be automatically filled. 34 -))) 35 35 36 36 **Lua Child Node** 37 37 ... ... @@ -57,10 +57,7 @@ 57 57 58 58 **Unprotect:** Right-click on the child node, select Unprotect, enter the password to release. 59 59 60 -(% class="box infomessage" %) 61 -((( 62 62 **✎Note: **If user forgets the password, the script file can never be recovered, the software will not storage any passwords, developers need to keep the password by themselves carefully. 63 -))) 64 64 65 65 == Script editor == 66 66 ... ... @@ -111,13 +111,10 @@ 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 -((( 116 116 **✎Note: ** 117 117 118 118 * 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. 119 119 * 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 -))) 121 121 122 122 = **Platform** = 123 123 ... ... @@ -140,10 +140,7 @@ 140 140 * **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. 141 141 * **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. 142 142 143 -(% class="box infomessage" %) 144 -((( 145 145 **✎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 -))) 147 147 148 148 == Built-In script file == 149 149