Files
barotrauma-gamefiles/Content/Items/Button/button.xml
2025-04-13 10:56:34 +02:00

118 lines
7.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Items>
<Item name="" identifier="button" category="Electrical" tags="smallitem,button" allowedlinks="door" linkable="true" cargocontaineridentifier="metalcrate" scale="0.5" impactsoundtag="impact_metal_light" isshootable="true" maxstacksize="60">
<Upgrade gameversion="0.10.0.0" scale="0.5" />
<PreferredContainer primary="engcab"/>
<Price baseprice="125" minavailable="12">
<Price storeidentifier="merchantoutpost" />
<Price storeidentifier="merchantcity" sold="false" />
<Price storeidentifier="merchantresearch" />
<Price storeidentifier="merchantmilitary" />
<Price storeidentifier="merchantmine" />
<Price storeidentifier="merchantengineering" multiplier="0.9" />
</Price>
<Sprite texture="button.png" sourcerect="28,70,34,51" depth="0.8" origin="0.5,0.5" />
<Deconstruct time="10">
<Item identifier="plastic" amount="2" />
<Item identifier="copper" />
</Deconstruct>
<Fabricate suitablefabricators="fabricator" requiredtime="10">
<RequiredSkill identifier="electrical" level="25" />
<RequiredItem identifier="fpgacircuit" />
<RequiredItem identifier="plastic" />
</Fabricate>
<Body width="36" height="40" density="20" />
<Controller direction="None" canbepicked="true" msg="ItemMsgPressSelect">
<RequiredItem identifier="idcard" type="Picked" msg="ItemMsgUnauthorizedAccess" />
<sound file="Content/Items/Button/Button.ogg" type="OnUse" range="500.0" />
</Controller>
<ConnectionPanel selectkey="Action" canbeselected="true" msg="ItemMsgRewireScrewdriver" hudpriority="10">
<GuiFrame relativesize="0.2,0.32" minsize="400,350" maxsize="480,420" anchor="Center" style="ConnectionPanel" />
<RequiredItem identifier="screwdriver" type="Equipped" />
<output name="signal_out" displayname="connection.signalout" maxwires="10" />
</ConnectionPanel>
<Holdable selectkey="Select" pickkey="Use" slots="Any,RightHand,LeftHand" msg="ItemMsgDetachWrench" PickingTime="10.0" aimpos="35,-10" handle1="0,0" attachable="true" attachedbydefault="true" aimable="true">
<RequiredItem items="wrench,deattachtool" excludeditems="multitool" type="Equipped" />
</Holdable>
</Item>
<Item name="" identifier="switch" category="Electrical" tags="smallitem,switch" allowedlinks="door" linkable="true" cargocontaineridentifier="metalcrate" scale="0.5" impactsoundtag="impact_metal_light" isshootable="true" maxstacksize="60">
<Upgrade gameversion="0.10.0.0" scale="0.5" />
<PreferredContainer primary="engcab"/>
<Price baseprice="125" minavailable="12">
<Price storeidentifier="merchantoutpost" />
<Price storeidentifier="merchantcity" sold="false" />
<Price storeidentifier="merchantresearch" />
<Price storeidentifier="merchantmilitary" />
<Price storeidentifier="merchantmine" />
<Price storeidentifier="merchantengineering" multiplier="0.9" minavailable="30"/>
</Price>
<InventoryIcon texture="Content/Items/InventoryIconAtlas2.png" sourcerect="448,192,64,64" origin="0.5,0.5" />
<Sprite texture="button.png" sourcerect="4,49,22,40" depth="0.79" origin="0.5,0.5" />
<Deconstruct time="10">
<Item identifier="plastic" amount="2" />
<Item identifier="copper" />
</Deconstruct>
<Fabricate suitablefabricators="fabricator" requiredtime="10">
<RequiredItem identifier="fpgacircuit" />
<RequiredItem identifier="plastic" />
</Fabricate>
<Body width="18" height="31" density="20" />
<Controller direction="None" canbepicked="true" istoggle="true" msg="ItemMsgPressSelect">
<sound file="Content/Items/Button/Switch1.ogg" type="OnUse" range="250.0" />
<sound file="Content/Items/Button/Switch2.ogg" type="OnUse" range="250.0" />
</Controller>
<LightComponent range="40" lightcolor="50,255,50,0" powerconsumption="0" IsOn="true" castshadows="false" allowingameediting="false">
<sprite texture="Content/Items/Button/button.png" sourcerect="4,9,22,40" depth="0.1" origin="0.5,0.5" alpha="1.0" />
<IsActive targetitemcomponent="Controller" State="eq True" />
</LightComponent>
<LightComponent range="40" lightcolor="255,50,50,0" powerconsumption="0" IsOn="true" castshadows="false" allowingameediting="false">
<sprite texture="Content/Items/Button/button.png" sourcerect="4,89,22,40" depth="0.1" origin="0.5,0.5" alpha="1.0" />
<IsActive targetitemcomponent="Controller" State="eq False" />
</LightComponent>
<ConnectionPanel selectkey="Action" canbeselected="true" msg="ItemMsgRewireScrewdriver" hudpriority="10">
<GuiFrame relativesize="0.2,0.32" minsize="400,350" maxsize="480,420" anchor="Center" style="ConnectionPanel" />
<RequiredItem identifier="screwdriver" type="Equipped" />
<output name="signal_out" displayname="connection.signalout" maxwires="10" />
</ConnectionPanel>
<Holdable selectkey="Select" pickkey="Use" slots="Any,RightHand,LeftHand" msg="ItemMsgDetachWrench" PickingTime="10.0" aimpos="35,-10" handle1="0,0" attachable="true" attachedbydefault="true" aimable="true">
<RequiredItem items="wrench,deattachtool" excludeditems="multitool" type="Equipped" />
</Holdable>
</Item>
<Item name="" identifier="lever" category="Electrical" tags="smallitem,switch" allowedlinks="door" linkable="true" cargocontaineridentifier="metalcrate" scale="0.5" impactsoundtag="impact_metal_light" isshootable="true">
<PreferredContainer primary="engcab"/>
<Price baseprice="125" minavailable="12">
<Price storeidentifier="merchantoutpost" />
<Price storeidentifier="merchantcity" sold="false" />
<Price storeidentifier="merchantresearch" />
<Price storeidentifier="merchantmilitary" />
<Price storeidentifier="merchantmine" />
<Price storeidentifier="merchantengineering" multiplier="0.9" minavailable="30"/>
</Price>
<Sprite texture="button.png" sourcerect="64,1,63,62" depth="0.79" origin="0.5,0.5" />
<Deconstruct time="10">
<Item identifier="plastic" amount="2" />
<Item identifier="copper" />
</Deconstruct>
<Fabricate suitablefabricators="fabricator" requiredtime="10">
<RequiredSkill identifier="electrical" level="25" />
<RequiredItem identifier="fpgacircuit" />
<RequiredItem identifier="plastic" />
</Fabricate>
<Body width="18" height="31" density="20" />
<Controller direction="None" canbepicked="true" istoggle="true" msg="ItemMsgPressSelect">
<sound file="Content/Items/Button/Switch1.ogg" type="OnUse" range="250.0" />
<sound file="Content/Items/Button/Switch2.ogg" type="OnUse" range="250.0" />
</Controller>
<DecorativeSprite texture="button.png" sourcerect="64,63,63,62" depth="0.78" origin="0.5,0.5">
<IsActiveConditional targetitemcomponent="Controller" State="eq True" />
</DecorativeSprite>
<ConnectionPanel selectkey="Action" canbeselected="true" msg="ItemMsgRewireScrewdriver" hudpriority="10">
<GuiFrame relativesize="0.2,0.32" minsize="400,350" maxsize="480,420" anchor="Center" style="ConnectionPanel" />
<RequiredItem identifier="screwdriver" type="Equipped" />
<output name="signal_out" displayname="connection.signalout" maxwires="10" />
</ConnectionPanel>
<Holdable selectkey="Select" pickkey="Use" slots="Any,RightHand,LeftHand" msg="ItemMsgDetachWrench" PickingTime="10.0" aimpos="35,-10" handle1="0,0" attachable="true" attachedbydefault="true" aimable="true">
<RequiredItem items="wrench,deattachtool" excludeditems="multitool" type="Equipped" />
</Holdable>
</Item>
</Items>