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

Add extra open/close states for the switches #322

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

DeeHants
Copy link
Contributor

@DeeHants DeeHants commented Nov 5, 2024

This adds an open rendering for the "analogue", "changeover" and "push to break" switch, using the same 3px gap as the "push" switch.
$Type=PushToBreak, $Closed=false
image
$Type=PushToBreak, $Closed=true
image

$Type=Changeover, $Closed=false (connected to B, left/top)
image
$Type=Changeover, $Closed=true (Connected to C, right/bottom)
image
(I'm aware the vertical has changed the default orientation pole direction, but this matches the b/c of the horizontal.)

$Type=Analogue, $Closed=false
image
$Type=Analogue, $Closed=true
image

@DeeHants DeeHants marked this pull request as draft November 5, 2024 01:22
@@ -42,7 +42,7 @@
</group>
<group conditions="!horizontal,!$Type==Changeover">
<connection name="a" start="_Start" end="_Middle-16y" edge="Start" />
<connection name="a" start="_Middle+16y" end="_End" edge="End" />
<connection name="b" start="_Middle+16y" end="_End" edge="End" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this was a typo so fixed it too

@DeeHants
Copy link
Contributor Author

DeeHants commented Nov 5, 2024

I think this is ready for now.
I'm playing with the flippability of these though so may have another update..

@DeeHants DeeHants marked this pull request as ready for review November 5, 2024 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant