Add non-active counter & flip-flop components

This commit is contained in:
2022-06-30 15:17:54 +01:00
parent b7f74ccb1a
commit 96b4176f8b
8 changed files with 121 additions and 30 deletions

View File

@@ -19,6 +19,25 @@
</ConnectionPanel>
</Item>
<Item name="Active Flip-Flop Component" identifier="activeflipflopcomponent" category="Electrical" scale="0.5" impactsoundtag="impact_metal_light">
<InventoryIcon texture="luacomp_inv.png" sourcerect="0,0,64,52" origin="0.5,0.5" />
<Sprite texture="luacomp_sprite.png" depth="0.8" sourcerect="0,0,32,32" origin="0.5,0.5" />
<Body width="32" height="24" density="30" />
<Holdable selectkey="Select" pickkey="Use" aimpos="65,-10" handle1="0,0" attachable="true" aimable="true" PickingTime="5.0" slots="Any,RightHand,LeftHand" msg="ItemMsgDetachWrench">
<RequiredItem items="wrench" type="Equipped" />
<StatusEffect type="Always" target="This" stackable="false">
<LuaHook name="activeflipflopcomponent.update" />
</StatusEffect>
</Holdable>
<MemoryComponent canbeselected="false" MaxValueLength="1" AllowInGameEditing="false" Value="0" />
<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 items="screwdriver" type="Equipped" />
<input name="input" displayname="connection.input" />
<output name="state_out" displayname="connection.state_out" />
</ConnectionPanel>
</Item>
<Item name="Counter Component" identifier="countercomponent" category="Electrical" Tags="smallitem,logic" maxstacksize="8" scale="0.5" impactsoundtag="impact_metal_light">
<InventoryIcon texture="luacomp_inv.png" sourcerect="0,0,64,52" origin="0.5,0.5" />
<Sprite texture="luacomp_sprite.png" depth="0.8" sourcerect="0,0,32,32" origin="0.5,0.5" />
@@ -39,6 +58,26 @@
</ConnectionPanel>
</Item>
<Item name="Active Counter Component" identifier="activecountercomponent" category="Electrical" Tags="smallitem,logic" maxstacksize="8" scale="0.5" impactsoundtag="impact_metal_light">
<InventoryIcon texture="luacomp_inv.png" sourcerect="0,0,64,52" origin="0.5,0.5" />
<Sprite texture="luacomp_sprite.png" depth="0.8" sourcerect="0,0,32,32" origin="0.5,0.5" />
<Body width="32" height="24" density="30" />
<Holdable selectkey="Select" pickkey="Use" aimpos="65,-10" handle1="0,0" attachable="true" aimable="true" PickingTime="5.0" slots="Any,RightHand,LeftHand" msg="ItemMsgDetachWrench">
<RequiredItem items="wrench" type="Equipped" />
<StatusEffect type="Always" target="This" stackable="false">
<LuaHook name="activecountercomponent.update" />
</StatusEffect>
</Holdable>
<MemoryComponent canbeselected="false" MaxValueLength="200" AllowInGameEditing="false" Value="0" />
<AdderComponent canbeselected="false" ClampMin="0" ClampMax="100" />
<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 items="screwdriver" type="Equipped" />
<input name="input" displayname="connection.input" />
<output name="state_out" displayname="connection.state_out" />
</ConnectionPanel>
</Item>
<item name="Reactor Controller Component" identifier="reactorcontrollercomponent" category="Electrical" Tags="smallitem,logic" maxstacksize="8" scale="0.5" impactsoundtag="impact_metal_light">
<InventoryIcon texture="luacomp_inv.png" sourcerect="0,0,64,52" origin="0.5,0.5" />
<Sprite texture="luacomp_sprite.png" depth="0.8" sourcerect="0,0,32,32" origin="0.5,0.5" />