Temp fix for backpack stuff for now
This commit is contained in:
@@ -9,7 +9,6 @@
|
|||||||
<m_Masks>5</m_Masks>
|
<m_Masks>5</m_Masks>
|
||||||
<m_Masks>6</m_Masks>
|
<m_Masks>6</m_Masks>
|
||||||
|
|
||||||
<m_MasksFolder>none</m_MasksFolder>
|
|
||||||
<textureChoices>Amputations\skin01b</textureChoices>
|
<textureChoices>Amputations\skin01b</textureChoices>
|
||||||
<textureChoices>Amputations\skin02b</textureChoices>
|
<textureChoices>Amputations\skin02b</textureChoices>
|
||||||
<textureChoices>Amputations\skin03b</textureChoices>
|
<textureChoices>Amputations\skin03b</textureChoices>
|
||||||
|
|||||||
@@ -35,3 +35,20 @@ function TocResetEverything()
|
|||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
function TocTestBodyLocations()
|
||||||
|
|
||||||
|
local group = BodyLocations.getGroup("Human")
|
||||||
|
local list = getClassFieldVal(group, getClassField(group, 1))
|
||||||
|
|
||||||
|
for i=1, list:size() do
|
||||||
|
|
||||||
|
print(list:get(i -1):getId())
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
end
|
||||||
@@ -1,46 +1,29 @@
|
|||||||
--***********************************************************
|
|
||||||
--** THE INDIE STONE **
|
|
||||||
--***********************************************************
|
|
||||||
|
|
||||||
-- Locations must be declared in render-order.
|
|
||||||
-- Location IDs must match BodyLocation= and CanBeEquipped= values in items.txt.
|
|
||||||
|
|
||||||
-- FullBody 1
|
|
||||||
-- BodyCostume 2
|
|
||||||
-- FullHat 3
|
|
||||||
-- Hat 4
|
|
||||||
-- MakeUp 5
|
|
||||||
-- Mask 6
|
|
||||||
-- JacketHat 7
|
|
||||||
-- Jacket 8
|
|
||||||
-- Shirt 9
|
|
||||||
-- Sweater 10
|
|
||||||
-- TankTop 11
|
|
||||||
-- TorsoExtra 12
|
|
||||||
-- Hands 13
|
|
||||||
-- Neck 14
|
|
||||||
-- Scarf 15
|
|
||||||
-- Pants 16
|
|
||||||
-- Shorts 17
|
|
||||||
-- Underwear 18
|
|
||||||
-- Shoes 19
|
|
||||||
-- None 20
|
|
||||||
|
|
||||||
local function addBodyLocationBefore(newLocation, movetoLocation)
|
local function addBodyLocationBefore(newLocation, movetoLocation)
|
||||||
|
|
||||||
-- TODO pretty sure this function is borked
|
-- TODO this is still broken!
|
||||||
|
local group = BodyLocations.getGroup("Human")
|
||||||
|
|
||||||
|
|
||||||
local group = BodyLocations.getGroup("Human")
|
|
||||||
local list = getClassFieldVal(group, getClassField(group, 1))
|
local list = getClassFieldVal(group, getClassField(group, 1))
|
||||||
group:getOrCreateLocation(newLocation)
|
|
||||||
|
|
||||||
|
|
||||||
|
group:getOrCreateLocation(newLocation)
|
||||||
|
|
||||||
|
|
||||||
|
local newItem = list:get(list:size()-1)
|
||||||
|
print("TOC: Created new body location" .. newItem:getId())
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
list:remove(list:size()-1)
|
||||||
|
local i = group:indexOf(movetoLocation)
|
||||||
|
list:add(i, newItem)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
local newItem = list:get(list:size()-1)
|
|
||||||
list:remove(list:size()-1)
|
|
||||||
local i = group:indexOf(movetoLocation)
|
|
||||||
list:add(i, newItem)
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
local function TocSetSleeves(check)
|
local function TocSetSleeves(check)
|
||||||
@@ -50,11 +33,7 @@ local function TocSetSleeves(check)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
local group = BodyLocations.getGroup("Human")
|
|
||||||
group:getOrCreateLocation("ArmRight_Prot")
|
|
||||||
group:getOrCreateLocation("ArmLeft_Prot")
|
|
||||||
group:getOrCreateLocation("ArmRight")
|
|
||||||
group:getOrCreateLocation("ArmLeft")
|
|
||||||
|
|
||||||
-- -- Check if we already set stuff before
|
-- -- Check if we already set stuff before
|
||||||
-- -- Readd them
|
-- -- Readd them
|
||||||
@@ -82,4 +61,21 @@ local function TocSetSleeves(check)
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
TocSetSleeves(true)
|
-- FIXME this still breaks
|
||||||
|
|
||||||
|
local group = BodyLocations.getGroup("Human")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
addBodyLocationBefore("ArmRight", "Shoes")
|
||||||
|
addBodyLocationBefore("ArmLeft", "Shoes")
|
||||||
|
addBodyLocationBefore("ArmRight_Prot", "Shoes")
|
||||||
|
addBodyLocationBefore("ArmLeft_Prot", "Shoes")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-- group:getOrCreateLocation("ArmRight")
|
||||||
|
-- group:getOrCreateLocation("ArmLeft")
|
||||||
|
-- group:getOrCreateLocation("ArmRight_Prot")
|
||||||
|
-- group:getOrCreateLocation("ArmLeft_Prot")
|
||||||
BIN
media/textures/Amputations/Masks/LeftArm.png
Normal file
BIN
media/textures/Amputations/Masks/LeftArm.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
BIN
media/textures/Amputations/Masks/LeftHand.png
Normal file
BIN
media/textures/Amputations/Masks/LeftHand.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
BIN
media/textures/Amputations/Masks/Mask.png
Normal file
BIN
media/textures/Amputations/Masks/Mask.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
BIN
media/textures/Amputations/Masks/RightArm.png
Normal file
BIN
media/textures/Amputations/Masks/RightArm.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
BIN
media/textures/Amputations/Masks/RightHand.png
Normal file
BIN
media/textures/Amputations/Masks/RightHand.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
Reference in New Issue
Block a user