@Webmaster
Ty Very Much Mr. Webmaster I did it Here in this example :
Convert a Boolean value to Yes-No.xml
because that way I have to do it for all Variables every time but I want to do it for all different Variables at once. I want it to be a global over all the script
Is there a way to write code that would be automatically usable in bas visual editor?
-
Is there way to know how the base64 green string in each action is created(I understand that it is responsible for actions show in visual editor)?
also how action's ids are assign to actions?
would any not repeating id work?the goal is to be able to write or fix .xml files that the BAS projects are stored in outside of BAS editor mode (in VScode for example)
section_start("", 312442188)!
/Dat:eyJzIjoibG9nIiwidiI6MSwiZiI6W10sInV3IjoiMCIsInV0IjoiMCIsInV0byI6IjAiLCJ1bSI6IjAiLCJkIjpbeyJpZCI6IkxvZ1RleHQiLCJ0eXBlIjoiY29uc3RyIiwiZGF0YSI6ImhlbGxvIHdvcmxkIiwiY2xhc3MiOiJzdHJpbmcifV19/
log("hello world")
section_end()!

-
if you just decode it you will see it is json with info about action itself so you can reverseengeneer that
This is a Base64-encoded JSON string. After decoding, here's the content:
json
{
"s": "log",
"v": 1,
"f": [],
"uw": "0",
"ut": "0",
"uto": "0",
"um": "0",
"d": [
{
"id": "LogText",
"type": "constr",
"data": "hello world",
"class": "string"
}
]
}