I am developing XWidget2.0 ,and trying to make XWidget2 more easy to use and easy to create widget with no script.
What about XWidget2.0 action command format change to this?
--Support Multiple command,
--Support control other Controls/Cores by option param "(control name)"
--Support control other widget from folderName by option param "<folder name>"
--Support Visual-Commands-Builder-Tool to Auto Generate commands ,just need select command target object and input params.===Controls command==============
[!obj opacity 0.3]
Change the do command control's property opacity to 0.3
[!obj fadeto 0.3]
Call the do command control's function "fadeto" with param 0.3, will make this control fade to opacity 0.3
[!obj moveto 100 200 0.5]
Call the do command control's function "moveto" with param 100 200 0.5, will make this control move to 100,200 duration 0.5 sec
[!obj animatefloat "left" 200 0.3]
Call the do command control's function "animatefloat" with param "left" 200 0.3, will make this control's property "left" animate change to 200 duration 0.3 sec
[!obj (text1) SelectTextFontColor]
Open Select color dialog to change control "text1" font color,with autosave to config and autoload from config . the "()" is option
[!obj <eker_note> (text1) text "OK!"]
set widget(foldername "eker_note") 's control "text1" property "text" to "OK!"
===Cores command==============
[!core 12hr/24hr]
Do core command 12hr/24hr for current core
[!core (datetimecore2) showsetting]
Do core command 12hr/24hr for datetimeCore2, the "()" is option param
===widget golobe command==============
[!cmd OpenTaskMgr]
open taskmgr
[!cmd <eker_note> moveto 100 200]
call widget eker_note cmd to move to 100,200. the "<>" is option param
===Script command==============
[!func <eker_note> DoFunc1 10 20]
call script function "DoFunc1" with param 10,20 for widget "eker_note", the "<>" is option param
-----------------------------------------------------------------------
for excample, text1 onclick action will change text1's opacity to 0.3 with animate duration 0.3 and move image2 to 100,200 with animation duration 0.5.
Code:
[!obj fadeto 0.3][!obj (image2) moveto 100 200 0.5]