1233 Commits

Author SHA1 Message Date
Fingercomp
6f59ad19be Don't confuse connectableIndex for the slot index
Fixes #186.
2026-02-21 15:30:43 +03:00
Fingercomp
b9714badb1 Merge branch 'master' into develop 2026-01-02 11:46:31 +03:00
Fingercomp
a9bd206b07 Merge branch 'develop' v1.14.2 2026-01-02 11:45:57 +03:00
Fingercomp
4e3bc4929b Version 1.14.2 2026-01-02 11:45:48 +03:00
Fingercomp
6507eb03f7 Fix window focusing acting weird
Such as when you open a screen window and then an Ocelot card window,
where the latter one would always stay focused until closed.
2026-01-02 11:25:00 +03:00
Fingercomp
4513b5518c Fix a crash when copying a text input selection 2026-01-02 10:46:50 +03:00
Fingercomp
5210a2790f Do not remove items in Inventory.dispose()
Fixes #184.
2025-12-27 00:57:06 +03:00
UnicornFreedom
cf78c278af Update brain to 0.24.2 and fix TPS counter disappearing 2025-12-03 03:31:48 +01:00
Fingercomp
3b82541da6 Have the SoundSource object store factories rather than sources
Closes #182.
2025-09-17 22:32:14 +03:00
UnicornFreedom
2aba4a7969 Fix incorrect base format + swapped texture arg names 2025-09-13 05:48:01 +02:00
UnicornFreedom
876043bf2f Replace GL11.GL_CLAMP with GL12.GL_CLAMP_TO_EDGE to fix GL_INVALID_ENUM 2025-09-13 05:15:33 +02:00
UnicornFreedom
22ee84d74c Update ocelot-brain to fix setting loading 2025-09-13 01:05:09 +02:00
Fingercomp
cbc80baf71 Intercept mouse/key events when a context menu is open
Closes #180.
2025-09-05 18:10:29 +03:00
Fingercomp
479d13cc0c Treat _ as a word character in word boundary search 2025-09-05 00:57:46 +03:00
Fingercomp
51c4494628 Reformat TextInput 2025-09-05 00:25:56 +03:00
Fingercomp
cbd3927cc5 Use punctuation boundaries for word selection on double-click
Closes #181.
2025-09-05 00:20:38 +03:00
Fingercomp
8f291c4a80 Implement text navigation via Ctrl keybings 2025-09-04 01:46:43 +03:00
Fingercomp
7f0fccae80 Update selection when the LMB is pressed instead of released 2025-09-04 00:36:15 +03:00
Fingercomp
c0eec1fffc Select all text on triple-click 2025-09-04 00:24:05 +03:00
Fingercomp
4cee456454 Double-click is NOT a speedrunning strat, I said 2025-09-03 23:29:25 +03:00
Fingercomp
dfbcb0418c Remove MouseEvent.StateChanged because it's redundant
I don't know why I decided that mouse events are level-triggered.
Sometimes I'm just dumb like that. Now here I am, cleaning up after my
stupidity.

Oh, this also makes double-clicks seem less like a speedrunning strat.
2025-09-03 23:25:40 +03:00
Fingercomp
5e172ee804 Merge branch 'feature/qol-ocelot-interface' into develop 2025-09-03 19:33:38 +03:00
Fingercomp
052f61ad43 Remember the desired cursor position when changing the text 2025-09-03 19:26:44 +03:00
Fingercomp
d676a4a5bf Fix how LogWidget is laid out 2025-09-03 18:52:40 +03:00
Fingercomp
2c77f8cba9 Clarify the purpose of removedOffset 2025-09-03 18:39:56 +03:00
UnicornFreedom
6a252d86fd Core review corrections 2025-09-03 11:39:43 +02:00
UnicornFreedom
667a74519a Fix FPS counter "frame" skip 2025-09-03 11:06:41 +02:00
UnicornFreedom
b03078ff27 Persist LogWidget "scroll to the end" checkbox value 2025-09-03 11:06:41 +02:00
UnicornFreedom
04bbf626a1 Fix Ocelot interface relayout on clear 2025-09-03 11:06:40 +02:00
UnicornFreedom
9a3ee8e95c Add navigation through Ocelot component log history 2025-09-03 11:06:40 +02:00
UnicornFreedom
cf088ce9f7 Add context menu to Ocelot component log entries 2025-09-03 11:06:39 +02:00
Dmitry Zhidenkov
6db5ff3f37 Merge branch 'feature/better-text-edit' into 'develop'
Better text edit

See merge request cc-ru/ocelot/ocelot-desktop!120
2025-09-03 09:04:41 +00:00
Fingercomp
68350f8d62 Take mouse.y into account when computing the selection endpoint 2025-09-03 01:05:00 +03:00
Fingercomp
ca8ef6eee1 Reimplement TextInput's selection state 2025-09-03 00:52:44 +03:00
Fingercomp
c9f8f4a123 Don't spam drag events if asked nicely 2025-08-31 19:45:56 +03:00
UnicornFreedom
b17efa3aa2 Fix cursor movement when mouse is pressed 2025-08-31 18:13:40 +02:00
UnicornFreedom
7316baa390 Simplify code, allow Shift+Click selections 2025-08-31 17:55:49 +02:00
Fingercomp
b6e68d40bd Make the event capture phase more sophisticated 2025-08-22 21:19:56 +03:00
UnicornFreedom
b67ad92273 Fix ChangeSimulationSpeedDialog 2025-08-22 15:24:40 +02:00
UnicornFreedom
313e5c8b6a Remove unnecessary keyboard event repeats 2025-08-22 15:21:36 +02:00
UnicornFreedom
6f5f84e5fd Fix cursor positioning on TextInput text set 2025-08-22 15:20:01 +02:00
UnicornFreedom
4e9d7c96e2 Allow selecting current word by double click 2025-08-22 11:19:18 +02:00
UnicornFreedom
a8dc52f1b2 Add context menu to the TextInput 2025-08-22 03:46:01 +02:00
UnicornFreedom
c796b74ea3 Add support for TextInput text selection 2025-08-22 02:59:24 +02:00
UnicornFreedom
9511f586a6 Fix hash collisions in Watcher + more discreet scroll updates 2025-08-21 16:47:25 +02:00
UnicornFreedom
90a01493db Support non-BMP codepoints in TextInput 2025-08-21 16:21:08 +02:00
UnicornFreedom
349280d802 Split text state and cursor state 2025-08-21 13:23:21 +02:00
UnicornFreedom
605023118f Split TextInput state from presentation 2025-08-21 13:11:58 +02:00
UnicornFreedom
3bee61832f Small corrections and refactoring 2025-08-21 11:34:08 +02:00
UnicornFreedom
841733f6fe Simplify TextInput and fix few small bugs 2025-08-21 11:34:08 +02:00