mirror of
https://github.com/csd4ni3l/logical-signals.git
synced 2026-01-01 04:23:46 +01:00
Make INPUTs have no value by default, center tools box, fix INPUT placement range, add camera panning, fix crash if a gate input value is None
This commit is contained in:
@@ -47,7 +47,7 @@ class LevelSelector(arcade.gui.UIView):
|
||||
|
||||
completed_notice = '\n(Completed)' if n in self.data['completed_levels'] else ''
|
||||
|
||||
level_button = self.grid.add(arcade.gui.UITextureButton(width=self.window.width / 8, height=self.window.height / 12, text=f"{difficulty} Level {n + 1}{completed_notice}", texture=button_texture, texture_hovered=button_hovered_texture, style=button_style, multiline=True), row=row, column=col)
|
||||
level_button = self.grid.add(arcade.gui.UITextureButton(width=self.window.width / 8, height=self.window.height / 13, text=f"{difficulty} Level {n + 1}{completed_notice}", texture=button_texture, texture_hovered=button_hovered_texture, style=button_style, multiline=True), row=row, column=col)
|
||||
level_button.on_click = lambda event, n=n: self.play(n)
|
||||
|
||||
row, col = (n + 1) // 5, (n + 1) % 5
|
||||
|
||||
@@ -18,6 +18,7 @@ class Tutorial(arcade.gui.UIView):
|
||||
- To create connections, click on the + buttons, left is the input, right is the output
|
||||
- On levels, a node has to have 2 inputs(Except the OUTPUT and NOT node), but only 1 output
|
||||
- On DIY mode, a node can have more than 2 inputs, except for OUTPUT and NOT
|
||||
- You can change an INPUT's gate value by clicking on it
|
||||
- You have to connect the nodes in a way to meet the required result
|
||||
|
||||
Logical Gates explanation:
|
||||
|
||||
Reference in New Issue
Block a user