You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I love lorien, cause the direct key mapping that Xournal++ does not allow (because of gtk keys override). But the fast color change was missing so I modified the code to map my first row of keys (1,2,...) to colors and it fits my needs (architecture fast drawing on meetings). I spend one hour on installing godot, lorien and patch the code, it's very intuitive. My patch is ugly and should use signals instead to activate the palette and to it clean, but I let the code if anyone has a similar need as I had.
In InfiniteCanvas.gd, replace _unhandled_key_input with :
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I love lorien, cause the direct key mapping that Xournal++ does not allow (because of gtk keys override). But the fast color change was missing so I modified the code to map my first row of keys (1,2,...) to colors and it fits my needs (architecture fast drawing on meetings). I spend one hour on installing godot, lorien and patch the code, it's very intuitive. My patch is ugly and should use signals instead to activate the palette and to it clean, but I let the code if anyone has a similar need as I had.
In InfiniteCanvas.gd, replace _unhandled_key_input with :
func _unhandled_key_input(event: InputEvent) -> void:
if event is InputEventKey:
if event.pressed:
if event.keycode == 39:
_brush_color=Color("white")
elif event.keycode == 49:
_brush_color=Color("red")
elif event.keycode == 50:
_brush_color=Color("green")
elif event.keycode == 51:
_brush_color=Color("yellow")
elif event.keycode == 52:
_brush_color=Color("blue")
elif event.keycode == 53:
_brush_color=Color("purple")
elif event.keycode == 54:
_brush_color=Color("cyan")
elif event.keycode == 55:
_brush_color=Color("orange")
elif event.keycode == 56:
_brush_color=Color("brown")
elif event.keycode == 57:
_brush_color=Color("gray")
_process_event(event)
Beta Was this translation helpful? Give feedback.
All reactions