Tamás Bálint Misius
62b116cb8f
Fix link region detection in RichLabels
2023-12-23 14:20:48 +01:00
Tamás Bálint Misius
4ab2a032af
Clean up RichLabel
2023-12-16 11:05:45 +01:00
Tamás Bálint Misius
151bc4c9cd
Fix Textbox width limiting content length
2023-12-15 22:36:41 +01:00
Tamás Bálint Misius
986de1066d
Fix uninitialized read of Engine::dt early after startup again
...
As once done in a2c7242c7c
. Broken in c725894abd
.
2023-12-12 15:28:15 +01:00
Tamás Bálint Misius
9f50249ca8
Handle back button on android
2023-10-16 23:41:57 +02:00
Tamás Bálint Misius
374209eebe
Remove a few outdated windows-only preprocessor hacks
2023-10-15 12:04:22 +02:00
jacob1
b2045c067e
Make save history icon not so hard to find, and show up on all saves (not just your own)
...
The icon is now shown whenever you hover over the save, not just when you hover over where the icon is supposed to be
2023-10-08 19:08:03 -04:00
Tamás Bálint Misius
7541273640
Add blurry scaling option
...
This looks slightly nicer on very pixel-dense screens (scale factors 5 and up) than nearest neighbour fractional upscaling does.
Also fix window icon disappearing at times and the window being resized after configuration changes.
We should maybe start preserving window size also at some point, the way we do position now.
2023-10-06 15:04:29 +02:00
Tamás Bálint Misius
79760f5c89
Fix input method candidates being aligned wrong in some cases
...
Namely when the main window is resizeable and its size isn't the same as it would be with the active scale mode with resizing disabled.
Also fix window position not being restored when the main window is resizeable.
2023-10-05 20:10:50 +02:00
Tamás Bálint Misius
0fb36012a2
Clean up window creation somewhat
...
Fixes most of the rat's nest situation mentioned in 8cfe7cdd93
.
2023-10-05 19:47:29 +02:00
Tamás Bálint Misius
8cfe7cdd93
Clean up window frame settings somewhat
...
Another rat's nest; I'm still not entirely satisfied.
This introduces "frame personalities": one for embedded frames (emscripten), one for handheld devices and everything else that doesn't really work with windows (android), and one for everything else. For now these affect which frame options are configurable by the user and what values they are forced to take if they are not configurable, and whether optimal scale is guessed based on screen size.
Also introduce a future TouchUI config node to allow switching between normal and touch-optimized UI on android. Again, because chromebooks and other android devices with mouse and keyboard support are a thing.
Also enable debugging of debug builds of android. It took me hours to attach a stupid debugger to the process; see:
- https://www.sh-zam.com/2019/05/debugging-krita-on-android.html
- https://source.android.com/docs/core/tests/debug/gdb#app-startup
I also had to adb forward the port that lldb was supposedly talking to lldb-server over because otherwise it wouldn't attach; I don't get it either.
2023-10-04 16:01:00 +02:00
Tamás Bálint Misius
a2c82444aa
Fix local browser sometimes failing to load saves
...
Namely when they have been scrolled past already so they have been unloaded to save memory.
2023-09-12 19:28:11 +02:00
Tamás Bálint Misius
2539c3eff5
Emscripten: Make default FPS limit 60
2023-08-31 08:24:00 +02:00
Tamás Bálint Misius
c725894abd
Emscripten: Add "vsync" FPS limit mode
...
Would be really useful for native versions too, but it's more complicated to pull off. For now, vsync on native is the same as tpt.setfpscap(2).
2023-08-22 00:26:32 +02:00
Tamás Bálint Misius
bef2fb01d0
Emscripten: Pivot EngineProcess
...
... such that it ends with a sleep and delegates looping to its caller.
2023-08-22 00:26:32 +02:00
Tamás Bálint Misius
2c56adde5a
Work around some input method bug on windows
...
At least this fixes Hangul input for me. I'm sure nobody else had any problems with it and I'm sure everyone will start having problems with it now :)
2023-08-01 18:41:34 +02:00
Tamás Bálint Misius
53d573ad3c
Fix crash if a save thumbnail is missing from the server
...
Which basically never happens. Except when the server runs out of space :) See 0f418ec195
for a similar fix.
2023-07-19 11:06:13 +02:00
Tamás Bálint Misius
0f418ec195
Fix crash if an avatar is missing from the server
...
Which basically never happens.
2023-06-18 15:37:32 +02:00
Tamás Bálint Misius
958ab1df96
Make Grave (the key under Esc) exiting the console optional
...
Also fix perfectCirclePressure copypasta.
2023-06-11 20:09:01 +02:00
Tamás Bálint Misius
04455ada1c
Use clip rects to draw progress bar content
2023-06-11 20:09:00 +02:00
Tamás Bálint Misius
a9d231587c
Show save button thumbnail in the preview if it's available
...
This is good enough for now but also more limited than I'd like because if the thumbnail arrives (gets rendered or downloaded) later than the preview is opened, it's never shown.
2023-05-13 13:21:05 +02:00
Tamás Bálint Misius
d8acdfb576
Fix various warnings that had piled up
2023-05-12 19:25:41 +02:00
Tamás Bálint Misius
0f95ce82f8
Sanitize GameSave/SaveInfo/SaveFile ownership
2023-05-11 12:40:23 +02:00
Tamás Bálint Misius
5c5354655c
Fix progress bars drawing their borders in the wrong place
...
Same problem as with textboxes solved in 3eb3481fda
.
2023-05-09 22:54:57 +02:00
Tamás Bálint Misius
3eb3481fda
Fix local save browser crashing in some cases
...
This also fixes local save thumbnails being resized such that they are just short of filling the space they are supposed to.
Also fix textboxes drawing their borders in the wrong place.
2023-05-01 22:32:31 +02:00
Tamás Bálint Misius
60a7ce1aae
Use _rgb literals where possible
2023-04-30 14:22:56 +02:00
Tamás Bálint Misius
410dc71f42
Fix some deprecation warnings
...
Namely:
- [[deprecated("Use DrawPixel/BlendPixel")]]
- [[deprecated("Use DrawLine/BlendLine")]]
- [[deprecated("Use DrawRect/BlendRect")]]
- [[deprecated("Use DrawFilledRect/BlendFilledRect")]]
2023-04-30 14:06:54 +02:00
Tamás Bálint Misius
9fbb780728
Fix some deprecation warnings
...
Namely:
- [[deprecated("Use BlendChar")]]
- [[deprecated("Use AddChar")]]
- [[deprecated("Use XorPixel")]]
- [[deprecated("Use AddPixel")]]
- [[deprecated("Use XorLine")]]
- [[deprecated("Use XorDottedRect")]]
- [[deprecated("Use XorImage")]]
- [[deprecated("Use BlendEllipse")]]
- [[deprecated("Use BlendFilledEllipse")]]
- [[deprecated("Use DrawFilledRect (beware off by 1)")]]
2023-04-30 11:27:58 +02:00
Tamás Bálint Misius
f5cbc30d85
Fix some deprecation warnings
...
Namely:
- [[deprecated("Use BlendTextOutline")]]
- [[deprecated("Use BlendText")]]
- [[deprecated("Use BlendImage")]]
- [[deprecated("Use BlendImage")]]
- [[deprecated("Use TextSize().X - 1 (yes this is very bad code eww)")]]
2023-04-29 15:50:34 +02:00
Tamás Bálint Misius
2960e0f58f
Fix some deprecation warnings
...
Namely:
- [[deprecated("Use operator+(Vec2)")]]
- [[deprecated("Use operator-(Vec2)")]]
- [[deprecated("Use video")]]
- [[deprecated("Use persistentVideo")]]
- [[deprecated("Use wrapVideo")]]
2023-04-29 14:44:27 +02:00
Tamás Bálint Misius
8f10210c77
Fix various unintended layout changes since 97.0
...
Also fix a few unused variable warnings.
2023-04-29 13:18:32 +02:00
jacob1
ad1420152c
Fix delete key not functioning correctly in textboxes when text is selected
2023-04-25 00:30:07 -04:00
catsoften
8d88394e38
Add RGBA.Pack(), Simplify ui::Colour/RGBA conversions
2023-04-16 22:13:39 +02:00
catsoften
a715f5d71a
Use RGB for constants and gradients, other misc changes
2023-04-16 22:13:39 +02:00
catsoften
bc085705a8
Remove deprecated PIXPACK/RGB/R/G/B functions
2023-04-16 22:13:39 +02:00
mniip
c23eba1921
Remove unused Component::Component overloads
2023-04-13 18:48:19 +02:00
mniip
8c387a5a00
convert ThumbnailRequest to Vec2
2023-04-12 19:28:55 +02:00
mniip
9b9b0b794a
Remove Graphics::vid, Graphics::textwidthx, Graphics::textsize
2023-04-12 19:21:37 +02:00
mniip
f443eeff2f
Refactor Engine, Window, and Panel drawing
2023-04-10 23:05:44 +02:00
mniip
b26a1b4a88
VideoBuffer pointer correctness
2023-04-05 14:52:20 +02:00
mniip
132e3508cf
Refactor tools
2023-04-05 14:11:37 +02:00
mniip
7f84887f6d
Refactor things referencing VideoBuffer internals
2023-04-05 02:30:05 +02:00
mniip
a0a9ad0abd
Add new Vec2, Mat2, RGB, RGBA classes and deprecate some old functions
2023-04-05 02:29:35 +02:00
Tamás Bálint Misius
a2c7242c7c
Fix uninitialized read of Engine::dt early after startup
2023-03-02 20:55:48 +01:00
jacob1
6d4f6218a4
Create wrapper around lua_pcall that properly tracks Lua execution time
...
A bug existed before where certain events would not update Engine's lastTick. If the sim was lagging hard, then this could cause "script is not responding" errors to appear in unintentional situations.
The starting execution time is tracked in LuaScriptInterface instead now, and set in tpt_lua_pcall
2023-02-17 21:58:57 -05:00
Tamás Bálint Misius
159d0eb4b7
Group platform files into their own directory
2023-01-27 17:31:40 +01:00
Tamás Bálint Misius
11945ba620
Factor out game stuff from PowderToySDL.cpp
2023-01-27 09:29:19 +01:00
Tamás Bálint Misius
4f0c365e05
Preprocessor purge round 19: Split and minimize usage of Config.h
...
Also mostly banish it from other headers, and shuffle standard header includes to minimize cross-contamination between headers.
2023-01-27 09:27:32 +01:00
Tamás Bálint Misius
3cb6b26d1d
Migrate Singletons to ExplicitSingleton
2023-01-27 09:27:30 +01:00
Tamás Bálint Misius
f7478422a4
Preprocessor purge round 16: DEBUG
2023-01-27 09:26:40 +01:00