resolving comments

This commit is contained in:
Chr1Z93 2022-11-19 01:56:50 +01:00
parent 270c731246
commit c54afed3ff
17 changed files with 28 additions and 17 deletions

View File

@ -52,7 +52,7 @@
"Tooltip": true, "Tooltip": true,
"Transform": { "Transform": {
"posX": -31.911, "posX": -31.911,
"posY": 1.65, "posY": 1.57,
"posZ": 30.97, "posZ": 30.97,
"rotX": 0, "rotX": 0,
"rotY": 0, "rotY": 0,

View File

@ -52,7 +52,7 @@
"Tooltip": true, "Tooltip": true,
"Transform": { "Transform": {
"posX": -59.449, "posX": -59.449,
"posY": 1.65, "posY": 1.57,
"posZ": -22.628, "posZ": -22.628,
"rotX": 0, "rotX": 0,
"rotY": 270, "rotY": 270,

View File

@ -52,7 +52,7 @@
"Tooltip": true, "Tooltip": true,
"Transform": { "Transform": {
"posX": -18.983, "posX": -18.983,
"posY": 1.65, "posY": 1.57,
"posZ": -31.01, "posZ": -31.01,
"rotX": 0, "rotX": 0,
"rotY": 180, "rotY": 180,

View File

@ -52,7 +52,7 @@
"Tooltip": true, "Tooltip": true,
"Transform": { "Transform": {
"posX": -59.499, "posX": -59.499,
"posY": 1.65, "posY": 1.57,
"posZ": 9.561, "posZ": 9.561,
"rotX": 0, "rotX": 0,
"rotY": 270, "rotY": 270,

View File

@ -43,7 +43,7 @@
"Tooltip": false, "Tooltip": false,
"Transform": { "Transform": {
"posX": -32.31, "posX": -32.31,
"posY": 1.55, "posY": 1.52,
"posZ": 29.006, "posZ": 29.006,
"rotX": 0, "rotX": 0,
"rotY": 11, "rotY": 11,

View File

@ -43,7 +43,7 @@
"Tooltip": false, "Tooltip": false,
"Transform": { "Transform": {
"posX": -18.706, "posX": -18.706,
"posY": 1.55, "posY": 1.52,
"posZ": -29.027, "posZ": -29.027,
"rotX": 0, "rotX": 0,
"rotY": 195, "rotY": 195,

View File

@ -43,7 +43,7 @@
"Tooltip": false, "Tooltip": false,
"Transform": { "Transform": {
"posX": -57.512, "posX": -57.512,
"posY": 1.55, "posY": 1.52,
"posZ": -22.921, "posZ": -22.921,
"rotX": 0, "rotX": 0,
"rotY": 285, "rotY": 285,

View File

@ -43,7 +43,7 @@
"Tooltip": false, "Tooltip": false,
"Transform": { "Transform": {
"posX": -57.488, "posX": -57.488,
"posY": 1.55, "posY": 1.52,
"posZ": 9.184, "posZ": 9.184,
"rotX": 0, "rotX": 0,
"rotY": 282, "rotY": 282,

View File

@ -43,7 +43,7 @@
"Tooltip": false, "Tooltip": false,
"Transform": { "Transform": {
"posX": -57.882, "posX": -57.882,
"posY": 1.55, "posY": 1.52,
"posZ": -24.902, "posZ": -24.902,
"rotX": 0, "rotX": 0,
"rotY": 285, "rotY": 285,

View File

@ -43,7 +43,7 @@
"Tooltip": false, "Tooltip": false,
"Transform": { "Transform": {
"posX": -57.837, "posX": -57.837,
"posY": 1.55, "posY": 1.52,
"posZ": 7.19, "posZ": 7.19,
"rotX": 0, "rotX": 0,
"rotY": 280, "rotY": 280,

View File

@ -43,7 +43,7 @@
"Tooltip": false, "Tooltip": false,
"Transform": { "Transform": {
"posX": -34.234, "posX": -34.234,
"posY": 1.55, "posY": 1.52,
"posZ": 29.394, "posZ": 29.394,
"rotX": 0, "rotX": 0,
"rotY": 10, "rotY": 10,

View File

@ -43,7 +43,7 @@
"Tooltip": false, "Tooltip": false,
"Transform": { "Transform": {
"posX": -16.653, "posX": -16.653,
"posY": 1.55, "posY": 1.52,
"posZ": -29.429, "posZ": -29.429,
"rotX": 0, "rotX": 0,
"rotY": 195, "rotY": 195,

View File

@ -43,7 +43,7 @@
"Tooltip": false, "Tooltip": false,
"Transform": { "Transform": {
"posX": -59.774, "posX": -59.774,
"posY": 1.55, "posY": 1.52,
"posZ": 7.535, "posZ": 7.535,
"rotX": 0, "rotX": 0,
"rotY": 280, "rotY": 280,

View File

@ -43,7 +43,7 @@
"Tooltip": false, "Tooltip": false,
"Transform": { "Transform": {
"posX": -59.793, "posX": -59.793,
"posY": 1.55, "posY": 1.52,
"posZ": -24.544, "posZ": -24.544,
"rotX": 0, "rotX": 0,
"rotY": 285, "rotY": 285,

View File

@ -43,7 +43,7 @@
"Tooltip": false, "Tooltip": false,
"Transform": { "Transform": {
"posX": -17.037, "posX": -17.037,
"posY": 1.55, "posY": 1.52,
"posZ": -31.384, "posZ": -31.384,
"rotX": 0, "rotX": 0,
"rotY": 195, "rotY": 195,

View File

@ -43,7 +43,7 @@
"Tooltip": false, "Tooltip": false,
"Transform": { "Transform": {
"posX": -33.889, "posX": -33.889,
"posY": 1.55, "posY": 1.52,
"posZ": 31.335, "posZ": 31.335,
"rotX": 0, "rotX": 0,
"rotY": 10, "rotY": 10,

View File

@ -9,11 +9,22 @@ function onLoad(saved_data)
val = JSON.decode(saved_data) val = JSON.decode(saved_data)
end end
local name = self.getName()
local position = {}
if name == "Damage" or name == "Resources" then
position = { 0, 0.06, 0.1 }
elseif name == "Horror" then
position = { -0.025, 0.06, -0.025 }
else
position = { 0, 0.06, 0 }
end
self.createButton({ self.createButton({
label = tostring(val), label = tostring(val),
click_function = "addOrSubtract", click_function = "addOrSubtract",
function_owner = self, function_owner = self,
position = { 0, 0.06, 0 }, position = position,
height = 600, height = 600,
width = 1000, width = 1000,
scale = { 1.5, 1.5, 1.5 }, scale = { 1.5, 1.5, 1.5 },