1043 Commits

Author SHA1 Message Date
LeshaInc
ee4f2dcc3b Add scalafmt 2025-01-30 20:29:55 +00:00
LeshaInc
edd9916905 Merge branch 'feature/scalatest' into 'develop'
Add scalatest

Closes #153

See merge request cc-ru/ocelot/ocelot-desktop!98
2025-01-27 21:09:19 +00:00
LeshaInc
234442f5ea Add scalatest 2025-01-27 21:09:19 +00:00
Fingercomp
9d323138d3
Merge branch 'feature/relay-gui' into develop 2025-01-27 00:20:25 +03:00
Fingercomp
7a6d62efbe
Use semantic naming for relay window colors 2025-01-27 00:16:13 +03:00
Fingercomp
cd86902dd5
Add a relay GUI
Closes #74.
2025-01-26 22:32:54 +03:00
Fingercomp
63030f505f
Merge branch 'refactor/click-sounds' into develop 2025-01-26 00:09:33 +03:00
Fingercomp
d2845d9320
Create a new iterator for every event dispatch
Previously, if the same `dispatchEvent(...)` callback was reused for
different events, only the first call actually delivered the event,
whereas the following calls would find the widget iterator exhausted.
2025-01-25 23:13:36 +03:00
Fingercomp
79284270bc
Dispatch events to items in any kind of Inventory 2025-01-25 22:49:39 +03:00
Fingercomp
68643be2b8
Make focused text fields and screen windows consume handled events 2025-01-25 22:19:48 +03:00
Fingercomp
bdf0037146
Split click sounds into two, played on press and release 2025-01-25 18:33:56 +03:00
Fingercomp
477b3586f0
Use Option[T] instead of nulls 2025-01-25 16:48:51 +03:00
Fingercomp
3374053a5a
Merge branch 'refactor/click-and-drag' into develop 2025-01-25 16:05:35 +03:00
Fingercomp
766f0e5ae6
Remove ComponentSelector*
Nothing uses these classes, apparently.
2025-01-25 02:37:30 +03:00
Fingercomp
11e3254925
Make IconButtons behave more like regular buttons 2025-01-25 02:20:33 +03:00
Fingercomp
47a858b788
Register clicks as long as the button is released within the bounds 2025-01-25 01:57:50 +03:00
Fingercomp
1a64e949dd
Unify ClickHandler and DragHandler
This fixes long-standing annoyances regarding click detection: if a
widget handles both the click and the drag events, pressing down a
button, dragging the cursor away, moving it back, and releasing the
button would trigger a click event. No other UI behaves like that.
2025-01-25 01:35:25 +03:00
Fingercomp
8efa8e84c1
Synchronize access to screen buffers
Also fix screen viewport rendering, which previously used "live" screen
data instead of the buffer copies updated every tick.
2025-01-24 21:47:32 +03:00
Fingercomp
e6ac48862e
Open the simulation speed dialog on left-click
See #143.
2025-01-24 19:23:16 +03:00
Fingercomp
6df90c0fca
Highlight the TPS counter on mouse hover
Closes #143.
2025-01-24 19:20:49 +03:00
Fingercomp
34337b2cc3
Merge branch 'feature/icon-button-hover-highlighting' into develop 2025-01-24 13:19:38 +03:00
Fingercomp
5b6e378000
Highlight the rest of IconButtons on mouse hover
See #143.
2025-01-24 01:39:18 +03:00
Fingercomp
aa635a6d1c
Leave words of wisdom for whoever touches TextInput code again
Let's hope it won't be me who does that.
2025-01-23 21:10:58 +03:00
Fingercomp
a81dbb3ba2
Merge branch 'feature/screenshot' into develop 2025-01-23 20:27:16 +03:00
Fingercomp
b1a1cef365
Allow both left and right modifiers in key bindings 2025-01-23 19:53:36 +03:00
UnicornFreedom
a65caad242 Add shutter sound and effect 2025-01-23 17:36:34 +01:00
Fingercomp
08ef6f9075
Merge branch 'refactor/node-icon-sources' into develop 2025-01-23 13:31:40 +03:00
Fingercomp
82b35d9dbc
Load workspaces in the main thread
Fixes #147.
2025-01-23 02:08:01 +03:00
Fingercomp
33b08dcef8
Remove an obsolete TODO 2025-01-23 01:54:44 +03:00
Fingercomp
a69f04bcf3
Use IconSources to refer to node sprites 2025-01-23 01:46:43 +03:00
Fingercomp
a898e04dc3
Set the WM_CLASS explicitly so it doesn't depend on the version
Fixes #148.
2025-01-22 23:48:02 +03:00
UnicornFreedom
2772b3ad67 Refactor the screenshot function in UiHandler 2025-01-16 11:49:38 +01:00
UnicornFreedom
9c5bc3189a Make screenshot function more robust 2025-01-16 11:33:40 +01:00
UnicornFreedom
584bb1be9c Make screenshots with F12 2025-01-15 05:44:01 +01:00
UnicornFreedom
300c5dfe5b Update ocelot-brain to v0.22.0 2025-01-12 12:40:26 +01:00
UnicornFreedom
78fc31abbc Remove duplicate LuaJ license, add LWJGL2 license 2025-01-11 01:04:16 +01:00
Dmitry Zhidenkov
5518f1941b Merge branch 'feature/autosave' into 'develop'
Add optional workspace autosave

See merge request cc-ru/ocelot/ocelot-desktop!90
2025-01-10 22:22:58 +00:00
Dmitry Zhidenkov
05c4abbd66 Code review correction: better config comment wording 2025-01-10 22:20:47 +00:00
UnicornFreedom
0e4b6364bf Small README correction 2025-01-03 03:44:08 +01:00
UnicornFreedom
73d41071ee Add hover animation to icon buttons 2025-01-03 03:23:13 +01:00
UnicornFreedom
7a255ec631 Add hover animation to sliders 2025-01-03 03:08:24 +01:00
UnicornFreedom
d12fdee3d7 Add hover animation to text inputs 2025-01-03 03:04:51 +01:00
UnicornFreedom
e68fd4f65e Add hover animation to checkboxes 2025-01-03 02:49:47 +01:00
UnicornFreedom
7fdfdf5f3b Make festive decorations slightly smaller 2025-01-03 01:29:16 +01:00
UnicornFreedom
aea28d3548 Add hover animation to buttons 2025-01-03 00:58:06 +01:00
UnicornFreedom
c48404d654 Add optional workspace autosave 2025-01-02 15:51:24 +01:00
UnicornFreedom
b1a5fe680a Fix a bug with root widget scaling 2025-01-02 13:58:33 +01:00
UnicornFreedom
51771e4c99 Add some tooltips to System settings tab to make it clearer 2025-01-02 12:12:34 +01:00
UnicornFreedom
150d324777 Allow to set text input "placeholder" value 2025-01-02 12:12:04 +01:00
UnicornFreedom
50a4e1c7e4 Fix note block particle effects on non-standard pitches 2024-12-03 20:30:47 +01:00