Xml editing
This commit is contained in:
parent
f71b1d16a6
commit
9eb2c0c1ca
@ -342,6 +342,18 @@
|
||||
"ImageURL": "http://cloud-3.steamusercontent.com/ugc/2462982115659543571/5D778EA4BC682DAE97E8F59A991BCF8CB3979B04/",
|
||||
"WidthScale": 0
|
||||
},
|
||||
"CustomUIAsset": [
|
||||
{
|
||||
"Name": "option-on",
|
||||
"Type": 0,
|
||||
"URL": "http://cloud-3.steamusercontent.com/ugc/2462982115668997008/2178787B67B3C96F3419EDBAB8420E39893756BC/"
|
||||
},
|
||||
{
|
||||
"Name": "option-off",
|
||||
"Type": 0,
|
||||
"URL": "http://cloud-3.steamusercontent.com/ugc/2462982115668996901/D6438ECBB11DECC6DB9987589FF526FBAD4D2368/"
|
||||
}
|
||||
],
|
||||
"Description": "",
|
||||
"DragSelectable": true,
|
||||
"GMNotes": "",
|
||||
|
@ -342,6 +342,18 @@
|
||||
"ImageURL": "http://cloud-3.steamusercontent.com/ugc/2462982115659543571/5D778EA4BC682DAE97E8F59A991BCF8CB3979B04/",
|
||||
"WidthScale": 0
|
||||
},
|
||||
"CustomUIAsset": [
|
||||
{
|
||||
"Name": "option-on",
|
||||
"Type": 0,
|
||||
"URL": "http://cloud-3.steamusercontent.com/ugc/2462982115668997008/2178787B67B3C96F3419EDBAB8420E39893756BC/"
|
||||
},
|
||||
{
|
||||
"Name": "option-off",
|
||||
"Type": 0,
|
||||
"URL": "http://cloud-3.steamusercontent.com/ugc/2462982115668996901/D6438ECBB11DECC6DB9987589FF526FBAD4D2368/"
|
||||
}
|
||||
],
|
||||
"Description": "",
|
||||
"DragSelectable": true,
|
||||
"GMNotes": "",
|
||||
|
@ -342,6 +342,18 @@
|
||||
"ImageURL": "http://cloud-3.steamusercontent.com/ugc/2462982115659543571/5D778EA4BC682DAE97E8F59A991BCF8CB3979B04/",
|
||||
"WidthScale": 0
|
||||
},
|
||||
"CustomUIAsset": [
|
||||
{
|
||||
"Name": "option-on",
|
||||
"Type": 0,
|
||||
"URL": "http://cloud-3.steamusercontent.com/ugc/2462982115668997008/2178787B67B3C96F3419EDBAB8420E39893756BC/"
|
||||
},
|
||||
{
|
||||
"Name": "option-off",
|
||||
"Type": 0,
|
||||
"URL": "http://cloud-3.steamusercontent.com/ugc/2462982115668996901/D6438ECBB11DECC6DB9987589FF526FBAD4D2368/"
|
||||
}
|
||||
],
|
||||
"Description": "",
|
||||
"DragSelectable": true,
|
||||
"GMNotes": "",
|
||||
|
@ -342,6 +342,18 @@
|
||||
"ImageURL": "http://cloud-3.steamusercontent.com/ugc/2462982115659543571/5D778EA4BC682DAE97E8F59A991BCF8CB3979B04/",
|
||||
"WidthScale": 0
|
||||
},
|
||||
"CustomUIAsset": [
|
||||
{
|
||||
"Name": "option-on",
|
||||
"Type": 0,
|
||||
"URL": "http://cloud-3.steamusercontent.com/ugc/2462982115668997008/2178787B67B3C96F3419EDBAB8420E39893756BC/"
|
||||
},
|
||||
{
|
||||
"Name": "option-off",
|
||||
"Type": 0,
|
||||
"URL": "http://cloud-3.steamusercontent.com/ugc/2462982115668996901/D6438ECBB11DECC6DB9987589FF526FBAD4D2368/"
|
||||
}
|
||||
],
|
||||
"Description": "",
|
||||
"DragSelectable": true,
|
||||
"GMNotes": "",
|
||||
|
@ -682,8 +682,9 @@ function createXML()
|
||||
local optionPanelXML = {
|
||||
tag = "TableLayout",
|
||||
attributes = {
|
||||
width = "100",
|
||||
height = "100",
|
||||
scale = "0.2 0.2",
|
||||
width = "600",
|
||||
height = "600",
|
||||
rotation = "0 0 180",
|
||||
position = "300 0 -100",
|
||||
--active = "false",
|
||||
@ -698,7 +699,7 @@ function createXML()
|
||||
-- header
|
||||
{
|
||||
tag = "Row",
|
||||
attributes = { preferredHeight = "60" },
|
||||
--attributes = { preferredHeight = "60" },
|
||||
children = {
|
||||
{
|
||||
tag = "Cell",
|
||||
@ -725,7 +726,7 @@ function createXML()
|
||||
-- group header
|
||||
local groupXML = {
|
||||
tag = "Row",
|
||||
attributes = { preferredHeight = "44" },
|
||||
--attributes = { preferredHeight = "44" },
|
||||
children = {
|
||||
{
|
||||
tag = "Cell",
|
||||
@ -751,7 +752,7 @@ function createXML()
|
||||
local optionXML = {
|
||||
{
|
||||
tag = "Row",
|
||||
attributes = { preferredHeight = "50", tooltip = optionData.tooltip, tooltipPosition = "Left", tooltipBackgroundColor = "rgba(0,0,0,1)" },
|
||||
--attributes = { preferredHeight = "50", tooltip = optionData.tooltip, tooltipPosition = "Left", tooltipBackgroundColor = "rgba(0,0,0,1)" },
|
||||
children = {
|
||||
-- option title
|
||||
{
|
||||
@ -794,9 +795,9 @@ function createXML()
|
||||
}
|
||||
}
|
||||
}
|
||||
table.insert(groupXML, optionXML)
|
||||
table.insert(groupXML.children, optionXML)
|
||||
end
|
||||
table.insert(optionPanelXML, groupXML)
|
||||
table.insert(optionPanelXML.children, groupXML)
|
||||
end
|
||||
table.insert(xml, optionPanelXML)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user