diff --git a/objects/Playermat1White.8b081b.json b/objects/Playermat1White.8b081b.json index 0eaea951..a87403af 100644 --- a/objects/Playermat1White.8b081b.json +++ b/objects/Playermat1White.8b081b.json @@ -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": "", diff --git a/objects/Playermat2Orange.bd0ff4.json b/objects/Playermat2Orange.bd0ff4.json index d2fb2b64..d688bea9 100644 --- a/objects/Playermat2Orange.bd0ff4.json +++ b/objects/Playermat2Orange.bd0ff4.json @@ -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": "", diff --git a/objects/Playermat3Green.383d8b.json b/objects/Playermat3Green.383d8b.json index 41f250bc..c8778deb 100644 --- a/objects/Playermat3Green.383d8b.json +++ b/objects/Playermat3Green.383d8b.json @@ -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": "", diff --git a/objects/Playermat4Red.0840d5.json b/objects/Playermat4Red.0840d5.json index c76a35b0..91ce61ea 100644 --- a/objects/Playermat4Red.0840d5.json +++ b/objects/Playermat4Red.0840d5.json @@ -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": "", diff --git a/src/playermat/Playermat.ttslua b/src/playermat/Playermat.ttslua index 093677d7..6aeefc4f 100644 --- a/src/playermat/Playermat.ttslua +++ b/src/playermat/Playermat.ttslua @@ -8,7 +8,7 @@ local tokenChecker = require("core/token/TokenChecker") local tokenManager = require("core/token/TokenManager") -- option panel data -local availableOptions = { +local availableOptions = { ["Personal Settings"] = { { id = "slotEditing", @@ -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 { @@ -780,7 +781,7 @@ function createXML() attributes = { id = optionData.id, image = "option-off", - onClick="onClick_toggleOption", + onClick = "onClick_toggleOption", rectAlignment = "MiddleRight", offsetXY = "-30 0", colors = "#FFFFFF|#dfdfdf", @@ -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)