Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to the editors #172

Open
wants to merge 7 commits into
base: beta
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion objects/029995/contained/1e477e/object.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Name": "CardCustom",
"Transform": {
"posX": 99.25,
"posY": 0.8174,
"posY": 0.8167,
"posZ": 9.8,
"rotX": 0.0,
"rotY": 180.0,
Expand Down
2 changes: 1 addition & 1 deletion objects/029995/contained/1f5f58/object.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Name": "CardCustom",
"Transform": {
"posX": 111.25,
"posY": 0.8174,
"posY": 0.8168,
"posZ": 4.5,
"rotX": 0.0,
"rotY": 180.0,
Expand Down
2 changes: 1 addition & 1 deletion objects/029995/contained/2f4b14/object.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Name": "CardCustom",
"Transform": {
"posX": 111.25,
"posY": 0.8174,
"posY": 0.8167,
"posZ": 9.8,
"rotX": 0.0,
"rotY": 180.0001,
Expand Down
2 changes: 1 addition & 1 deletion objects/029995/contained/49913c/object.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Name": "CardCustom",
"Transform": {
"posX": 107.25,
"posY": 0.8174,
"posY": 0.8167,
"posZ": 9.8,
"rotX": 0.0,
"rotY": 180.0,
Expand Down
2 changes: 1 addition & 1 deletion objects/029995/contained/b16225/object.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Name": "CardCustom",
"Transform": {
"posX": 107.25,
"posY": 0.8174,
"posY": 0.8168,
"posZ": 4.5,
"rotX": 0.0,
"rotY": 180.0,
Expand Down
2 changes: 1 addition & 1 deletion objects/029995/contained/d1de40/object.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Name": "CardCustom",
"Transform": {
"posX": 99.25,
"posY": 0.8174,
"posY": 0.8168,
"posZ": 4.5,
"rotX": 0.0,
"rotY": 180.0,
Expand Down
2 changes: 1 addition & 1 deletion objects/029995/contained/e3a850/object.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Name": "CardCustom",
"Transform": {
"posX": 103.25,
"posY": 0.8174,
"posY": 0.8168,
"posZ": 4.5,
"rotX": 0.0,
"rotY": 180.0,
Expand Down
2 changes: 1 addition & 1 deletion objects/029995/contained/e58dc4/object.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Name": "CardCustom",
"Transform": {
"posX": 103.25,
"posY": 0.8174,
"posY": 0.8167,
"posZ": 9.8,
"rotX": 0.0,
"rotY": 180.0,
Expand Down
6 changes: 3 additions & 3 deletions objects/029995/object.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"Name": "Custom_Model_Bag",
"Transform": {
"posX": 107.5496,
"posY": 0.6,
"posZ": 61.0363,
"posX": 110.3666,
"posY": 0.5404,
"posZ": 60.7779,
"rotX": 0.0,
"rotY": 0.0,
"rotZ": 0.0,
Expand Down
18 changes: 7 additions & 11 deletions objects/029995/script.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
empty = false
contents = {
-- Aid Cards
["1e477e"] = {{99.25, 0.82, 9.8},{0.00, 180.00, 0.00}},
["e58dc4"] = {{103.25, 0.82, 9.8},{0.00, 180.00, 180.00}},
["49913c"] = {{107.25, 0.82, 9.8},{0.00, 180.00, 180.00}},
Expand All @@ -10,8 +9,7 @@ contents = {
["b16225"] = {{107.25, 0.82, 4.5},{0.00, 180.00, 0.00}},
["1f5f58"] = {{111.25, 0.82, 4.5},{0.00, 180.00, 0.00}},
}
editors = "Editors"
rulebooks = "9f84fc"
otherBags = {"Editors","f42a3e"}

function onLoad()
self.interactable = false
Expand Down Expand Up @@ -89,14 +87,12 @@ function toggleObjects()
end
end, 1, -1)
end

function toggleBags()
local editorsBag = getObjectFromGUID(editors)
if editorsBag.getVar("empty") then
editorsBag.call("toggleObjects")
for _,otherBagGUID in pairs(otherBags) do
local otherBag = getObjectFromGUID(otherBagGUID)
if otherBag.getVar("empty") then
otherBag.call("toggleObjects")
end
end

--[[local rulebooksBag = getObjectFromGUID(rulebooks)
if rulebooksBag.getVar("empty") then
rulebooksBag.call("toggleObjects")
end]]--
end
6 changes: 3 additions & 3 deletions objects/9f84fc/object.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"Name": "Custom_Model_Bag",
"Transform": {
"posX": 104.4546,
"posY": 0.6,
"posZ": 61.0364,
"posX": 107.1816,
"posY": 0.5404,
"posZ": 60.775,
"rotX": 0.0,
"rotY": 0.0,
"rotZ": 0.0,
Expand Down
17 changes: 7 additions & 10 deletions objects/9f84fc/script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ contents = {
["3bc101"] = {105.00, 0.80, 33.50},
["b67827"] = {105.00, 0.80, 23.00},
}
editors = "Editors"
playerAids = "029995"
otherBags = {"Editors","f42a3e"}

function onLoad()
self.interactable = false
Expand Down Expand Up @@ -87,14 +86,12 @@ function toggleObjects()
end
end, 1, -1)
end

function toggleBags()
local editorsBag = getObjectFromGUID(editors)
if editorsBag.getVar("empty") then
editorsBag.call("toggleObjects")
for _,otherBagGUID in pairs(otherBags) do
local otherBag = getObjectFromGUID(otherBagGUID)
if otherBag.getVar("empty") then
otherBag.call("toggleObjects")
end
end

--[[local playerAidsBag = getObjectFromGUID(playerAids)
if playerAidsBag.getVar("empty") then
playerAidsBag.call("toggleObjects")
end]]--
end
76 changes: 76 additions & 0 deletions objects/Editors/contained/02413e/object.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"Name": "Custom_Model",
"Transform": {
"posX": 105.2,
"posY": 1.0,
"posZ": 42.87,
"rotX": 0.0,
"rotY": 180.0,
"rotZ": 0.0,
"scaleX": 1.0,
"scaleY": 1.0,
"scaleZ": 1.0
},
"Nickname": "Spirit Panel Editor",
"Description": "",
"GMNotes": "",
"AltLookAngle": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"ColorDiffuse": {
"r": 1.0,
"g": 1.0,
"b": 1.0,
"a": 0.1964
},
"LayoutGroupSortIndex": 0,
"Value": 0,
"Locked": false,
"Grid": true,
"Snap": true,
"IgnoreFoW": false,
"MeasureMovement": false,
"DragSelectable": true,
"Autoraise": true,
"Sticky": true,
"Tooltip": true,
"GridProjection": false,
"HideWhenFaceDown": false,
"Hands": false,
"CustomMesh": {
"MeshURL": "https://steamusercontent-a.akamaihd.net/ugc/2488891055296754302/05DD0DB3A29B4C64980E7CA9DC589F7B2992602C/",
"DiffuseURL": "",
"NormalURL": "",
"ColliderURL": "",
"Convex": true,
"MaterialIndex": 1,
"TypeIndex": 0,
"CustomShader": {
"SpecularColor": {
"r": 0.0,
"g": 0.0,
"b": 0.0
},
"SpecularIntensity": 0.0,
"SpecularSharpness": 2.0,
"FresnelStrength": 0.0
},
"CastShadows": false
},
"AttachedSnapPoints": [
{
"Position": {
"x": 0.0,
"y": 0.1,
"z": 0.0
},
"Rotation": {
"x": 0.0,
"y": -0.0047,
"z": 0.0
}
}
]
}
Loading
Loading