Working tourniquet POC
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<clothingItem>
|
<clothingItem>
|
||||||
<m_MaleModel>test_left_tourniquet</m_MaleModel>
|
<m_MaleModel>Surgery\Tourniquet_Left</m_MaleModel>
|
||||||
<m_FemaleModel>test_left_tourniquet</m_FemaleModel>
|
<m_FemaleModel>Surgery\Tourniquet_Left</m_FemaleModel>
|
||||||
<m_GUID>afbab35d-8bd4-4d61-87c7-054651ead1bd</m_GUID>
|
<m_GUID>afbab35d-8bd4-4d61-87c7-054651ead1bd</m_GUID>
|
||||||
<m_Static>false</m_Static>
|
<m_Static>false</m_Static>
|
||||||
<m_AllowRandomHue>false</m_AllowRandomHue>
|
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||||
<m_AllowRandomTint>false</m_AllowRandomTint>
|
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||||
<textureChoices>Prosthesis\wood_base</textureChoices>
|
<textureChoices>Surgery\tourniquet</textureChoices>
|
||||||
</clothingItem>
|
</clothingItem>
|
||||||
10
media/clothing/clothingItems/Surgery_Right_Tourniquet.xml
Normal file
10
media/clothing/clothingItems/Surgery_Right_Tourniquet.xml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<clothingItem>
|
||||||
|
<m_MaleModel>Surgery\Tourniquet_Right</m_MaleModel>
|
||||||
|
<m_FemaleModel>Surgery\Tourniquet_Right</m_FemaleModel>
|
||||||
|
<m_GUID>9a5fe063-63c7-4e6f-81ca-ee77c6678e0d</m_GUID>
|
||||||
|
<m_Static>false</m_Static>
|
||||||
|
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||||
|
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||||
|
<textureChoices>Surgery\tourniquet</textureChoices>
|
||||||
|
</clothingItem>
|
||||||
@@ -78,9 +78,11 @@
|
|||||||
</files>
|
</files>
|
||||||
|
|
||||||
<files>
|
<files>
|
||||||
<path>media/clothing/clothingItems/Test_Tourniquet_Left.xml</path>
|
<path>media/clothing/clothingItems/Surgery_Left_Tourniquet.xml</path>
|
||||||
<guid>afbab35d-8bd4-4d61-87c7-054651ead1bd</guid>
|
<guid>afbab35d-8bd4-4d61-87c7-054651ead1bd</guid>
|
||||||
</files>
|
</files>
|
||||||
|
<files>
|
||||||
|
<path>media/clothing/clothingItems/Surgery_Right_Tourniquet.xml</path>
|
||||||
|
<guid>9a5fe063-63c7-4e6f-81ca-ee77c6678e0d</guid>
|
||||||
|
</files>
|
||||||
</fileGuidTable>
|
</fileGuidTable>
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
local function addBodyLocationBefore(newLocation, movetoLocation)
|
local function addBodyLocationBefore(new_location, move_to_location)
|
||||||
-- FIXME This doesn't really move a body location, it just re-adds it to another index. Find a way to remove it entirely (maybe setExclusive?)
|
-- FIXME This doesn't really move a body location, it just re-adds it to another index. Find a way to remove it entirely (maybe setExclusive?)
|
||||||
|
|
||||||
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(new_location)
|
||||||
local newItem = list:get(list:size()-1)
|
local newItem = list:get(list:size()-1)
|
||||||
print("TOC: Created new body location" .. newItem:getId())
|
print("TOC: Created new body location" .. newItem:getId())
|
||||||
|
|
||||||
list:remove(list:size()-1)
|
list:remove(newItem) -- We can't use the Index, it works if we pass the item though!
|
||||||
local i = group:indexOf(movetoLocation)
|
local i = group:indexOf(move_to_location)
|
||||||
list:add(i, newItem)
|
list:add(i, newItem)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
ContextMenu_EN = {
|
ContextMenu_EN = {
|
||||||
|
|
||||||
ContextMenu_Cut_Arm = "Cut arm",
|
ContextMenu_Cut_Arm = "Cut arm",
|
||||||
ContextMenu_Operate_Arm = "Operate arm",
|
ContextMenu_Operate_Arm = "Operate arm",
|
||||||
|
|
||||||
|
ContextMenu_TourniquetRightSwitch = "Tourniquet on Right Arm",
|
||||||
|
ContextMenu_TourniquetLeftSwitch = "Tourniquet on Left Arm",
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
media/models_X/Surgery/Tourniquet_Right.fbx
Normal file
BIN
media/models_X/Surgery/Tourniquet_Right.fbx
Normal file
Binary file not shown.
@@ -442,19 +442,41 @@ item ProthesisMag3
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
item Test_Tourniquet_Left
|
item Surgery_Left_Tourniquet
|
||||||
{
|
{
|
||||||
Weight = 1,
|
Weight = 1,
|
||||||
Type = Clothing,
|
Type = Clothing,
|
||||||
DisplayCategory = Prosthesis,
|
DisplayCategory = Surgery,
|
||||||
DisplayName = Tourniquet Left,
|
DisplayName = Tourniquet - Left Arm,
|
||||||
ClothingItem = Test_Tourniquet_Left,
|
ClothingItem = Surgery_Left_Tourniquet,
|
||||||
BodyLocation = Hands,
|
BodyLocation = Hands,
|
||||||
BloodLocation = Hands,
|
|
||||||
Icon = tourniquet,
|
Icon = tourniquet,
|
||||||
|
BloodLocation = Hands,
|
||||||
|
ClothingItemExtra = Surgery_Right_Tourniquet,
|
||||||
|
ClothingItemExtraOption = TourniquetRightSwitch,
|
||||||
|
clothingExtraSubmenu = TourniquetLeftSwitch,
|
||||||
Tooltip = Test,
|
Tooltip = Test,
|
||||||
CanHaveHoles = false,
|
CanHaveHoles = false,
|
||||||
|
}
|
||||||
|
|
||||||
|
item Surgery_Right_Tourniquet
|
||||||
|
{
|
||||||
|
Weight = 1,
|
||||||
|
Type = Clothing,
|
||||||
|
DisplayCategory = Surgery,
|
||||||
|
DisplayName = Tourniquet - Right Arm,
|
||||||
|
ClothingItem = Surgery_Right_Tourniquet,
|
||||||
|
BodyLocation = Hands,
|
||||||
|
Icon = tourniquet,
|
||||||
|
BloodLocation = Hands,
|
||||||
|
ClothingItemExtra = Surgery_Left_Tourniquet,
|
||||||
|
ClothingItemExtraOption = TourniquetLeftSwitch,
|
||||||
|
clothingExtraSubmenu = TourniquetRightSwitch,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Tooltip = Test,
|
||||||
|
CanHaveHoles = false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
BIN
media/textures/Surgery/tourniquet.png
Normal file
BIN
media/textures/Surgery/tourniquet.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
BIN
models_stuff/Hooks/tourniquet.blend
Normal file
BIN
models_stuff/Hooks/tourniquet.blend
Normal file
Binary file not shown.
Reference in New Issue
Block a user