Commit graph

20803 commits

Author SHA1 Message Date
noKetchup ede5fe55d6
Update spanish.txt 2024-06-15 15:09:59 -04:00
Dennis Felsing 003a58cdc7
Merge pull request #8492 from BlaiZephyr/readme_help
update practice help text
2024-06-15 02:33:59 +00:00
meloƞ b05620d1eb update practice help text 2024-06-15 04:14:53 +02:00
Dennis Felsing 3d4a9af659
Merge pull request #8489 from Robyt3/UI-DoubleClick-Handling
Move double-click handling from engine input to UI, improve envelope editor double-click handling
2024-06-15 01:03:40 +00:00
Robert Müller 4852dc435d Move double-click handling from engine input to UI
Instead of relying on SDL to determine when a click is a double-click, implement double-click handling specifically for the UI, as double-clicks are only supposed to be used there. This allows us to ensure that double-clicks only activate UI elements if both clicks were performed on the same UI element. Previously, only the position of the second click was considered, so UI element would incorrectly activate when double-clicking close to them as long as the second click starts and ends on them.

Implementing double-clicking handling separately is also necessary to support double-clicking in the UI with touch events, as SDL does not provide the double-click information for touch events.

The newly added `CUi::DoDoubleClickLogic` function should be called after a UI element has been clicked. It will return `true` if the current click should be interpreted as a double-click, i.e. if the same UI element was clicked, the click was within 0.5 seconds of the previous click (the default duration for SDL and Windows) and the distance from the previous click is within 32 screen pixels (the default distance for SDL).
2024-06-14 23:34:38 +02:00
Robert Müller 264df1f035 Improve envelope editor double-click handling
Only handle the double-click on the envelope editor when the second click is released instead of when it is pressed down already.

Remove unnecessary UI element `s_BoxSelectId`, the temporary activation of which was causing the tooltip to be missing for one frame when clicking the envelope editor.
2024-06-14 23:24:23 +02:00
Jupeyy f061dfdc84
Merge pull request #8480 from TylerStocks1/master
Readd is not a word, Reload makes more sense and is easier readablility.
2024-06-14 12:44:04 +00:00
Dennis Felsing ec42dea161 Version 18.3 2024-06-14 13:09:57 +08:00
Dennis Felsing b422c3cb26
Merge pull request #8486 from Robyt3/Server-Tile-Handling-Fix
Fix tiles being handled in same tick for dead tees in some cases
2024-06-14 04:31:51 +00:00
Tyler Stocks 249c8572ae
Update popups.cpp 2024-06-14 01:04:19 +01:00
Robert Müller cf6296c170
Merge pull request #8350 from ChillerDragon/pr_fix_button_overlap_teams
Fix in game menu buttons overlapping on team based gametypes
2024-06-13 19:58:47 +00:00
Robert Müller fbb2243a05 Fix tiles being handled in same tick for dead tees in some cases
The `CGameControllerDDRace::HandleCharacterTiles` function can kill the tee if the conditions for starting the race are not satisfied when touching a start tile. In this case, no further tiles should be handled in the `CCharacter::HandleTiles` function, else the effects of those tiles being handled may incorrectly be applied after the tee has respawned.
2024-06-13 21:26:03 +02:00
ChillerDragon 9a29c029a5 Fix in game menu buttons overlapping on team based gametypes
The ddnet buttons kill and pause do not fit in anymore if there is also
a join red/blue button.

This commit fixes that by hiding the buttons if
there is not enough space anymore.

Related prior work https://github.com/ddnet/ddnet/pull/2720
2024-06-13 09:34:16 +08:00
Dennis Felsing 13662f31a9
Merge pull request #8484 from rffontenelle/patch-6
Update brazilian_portuguese.txt
2024-06-12 02:01:37 +00:00
Rafael Fontenelle fd4e34fd1e
Update brazilian_portuguese.txt 2024-06-11 22:43:59 -03:00
Dennis Felsing 0a243eea94
Merge pull request #8482 from Robyt3/UI-AntiStatic
Fix UI issues when switching between menus and editor
2024-06-12 01:30:26 +00:00
heinrich5991 eab49abce2
Merge pull request #8483 from Robyt3/Building-Force-Signed-Char
Force default `char` to be `signed` on all architectures
2024-06-11 21:56:28 +00:00
Robert Müller 71b3c8a35b Force default char to be signed on all architectures
We assume that `char` is `signed` in various places in the code. In particular, the `Str.StrToInts` test will fail when `char` is not `signed` and names containing special characters will be displayed incorrectly on servers.

Therefore, the compiler flag `-fsigned-char` is set unconditionally instead of only for ARM and ARM64, as we expect `char` to be `signed` on all architectures.

A static assertion is added to ensure at compile time that `char` is `signed` independently from the flag added in `CMakeLists.txt`.

This is necessary at least for ARM, ARM64, PPC, PPC64, and PPC64LE. According to some sources, `char` may also be `unsigned` by default when compiling for Android, although this could not be confirmed with the current Android NDK using Clang.

For the PowerPC architectures, Compiler Explorer can be used to confirm that `char` is not `signed` by default by checking whether the static assertion compiles (see https://godbolt.org/z/9rn5Mrf59) and that the assembly is different with the `-fsigned-char` flag (see https://godbolt.org/z/138zTj3Wa).

Closes #8386.
2024-06-11 23:37:46 +02:00
Robert Müller 7e9769c2c7 Fix UI issues when switching between menus and editor
Fix button logic being stuck when holding mouse button on UI elements with button logic in the menus/editor, switching between menus and editor with Ctrl+Shift+E, then using a UI element with button logic in the editor/menus and switching back.

Fix value selector text mode of color picker popups being deactivated when switching between menus and editor while the color picker popup is open in both.

Only update progress spinners once per frame in `CUi::Update` to ensure consistent rotation speed. Progress spinners in menus and editor now rotate independently.

In general, all `static` non-`const` variables in `CUi` are replaced with member variables, as the `static` variables are shared between the two `CUi` instances of the menus and the editor, causing the above issues.
2024-06-11 20:21:25 +02:00
Tyler Stocks 544f564044 Changed var name to match 2024-06-10 23:08:06 +01:00
Tyler Stocks c451289254 Readd is not a word, I think it meant re-add but Reload better fits its usecase 2024-06-10 21:25:07 +01:00
archimede67 4fa55b3463
Merge pull request #8479 from Robyt3/Demo-Seekbar-Tooltip-Fix
Fix demo seekbar tooltip not showing correct hovered time
2024-06-10 17:41:13 +00:00
Robert Müller cef994d688 Fix demo seekbar tooltip not showing correct hovered time
Regression from #8318.
2024-06-10 18:44:08 +02:00
Dennis Felsing 0f35e576b4
Merge pull request #8477 from By622/patch-13
Update simplified_chinese.txt
2024-06-10 09:45:13 +00:00
Dennis Felsing 96943a183c
Merge pull request #8478 from By622/patch-14
Update traditional_chinese.txt
2024-06-10 09:45:13 +00:00
By cbf11fcd34
Update traditional_chinese.txt 2024-06-10 16:57:32 +08:00
By 3184ea12d8
Update simplified_chinese.txt 2024-06-10 16:57:24 +08:00
Dennis Felsing 687bc3839e
Merge pull request #8474 from Robyt3/Console-Command-Progress-Determinate
Fix percentage not being used for console command progress spinner
2024-06-10 00:43:50 +00:00
Dennis Felsing b2e1d4d0b3
Merge pull request #8475 from dobrykafe/pr-18.3-translations
Update Czech and Slovak translations for 18.3
2024-06-10 00:35:09 +00:00
dobrykafe bb378a5f2d update slovak translations for 18.3 2024-06-09 23:36:10 +02:00
dobrykafe 72f98c5d66 update czech translations for 18.3 2024-06-09 23:34:43 +02:00
Robert Müller da25863cd2 Fix percentage not being used for console command progress spinner
The percentage of received console commands was not being shown with the progress spinner because the variable `ProgressProps` was not passed to the `RenderProgressSpinner` function.
2024-06-09 21:29:56 +02:00
Dennis Felsing e80d1ab4bd
Merge pull request #8473 from GokturkTalha/patch-7
Update Azerbaijanese translation
2024-06-09 16:21:33 +00:00
Dennis Felsing 7383d74a48
Merge pull request #8472 from GokturkTalha/patch-6
Update Turkish translations
2024-06-09 16:11:15 +00:00
Talha Aygün a0125f7df5
Update Azerbaijanese translation 2024-06-09 18:50:43 +03:00
Talha Aygün e993434163
Update Turkish translations 2024-06-09 18:49:06 +03:00
Dennis Felsing c87ddfc417
Merge pull request #8471 from Emilcha/french-translation
French translation for new version,
2024-06-09 15:38:38 +00:00
Emilcha 3a1c30153f Changement
( proposées dans les reviews de la pull request )
2024-06-09 16:15:14 +02:00
archimede67 7741309ad8
Merge pull request #8447 from Robyt3/UI-ValueSelector-Consistency-DoubleClick
Consistent value selector behavior, support double-clicking
2024-06-09 11:52:22 +00:00
Emilcha e0ce7228e8 merge into translation file + credits 2024-06-09 11:32:33 +02:00
Emilcha 253fd92639 new french translation 2024-06-09 11:29:59 +02:00
Dennis Felsing 805b23ec8a
Merge pull request #8470 from furo321/swedish-18.3
Update Swedish translations for 18.3
2024-06-09 01:47:08 +00:00
Dennis Felsing 31211c3064
Merge pull request #8468 from Emilcha/nocase_friendlist_sort
Server browser friend list: sort not case sensitive
2024-06-09 01:30:23 +00:00
Emilcha 24ea8d8977 Consistancy, #8468 2024-06-08 19:28:06 +02:00
furo eb8cd8c7b2 Update Swedish translations for 18.3 2024-06-08 18:45:18 +02:00
Dennis Felsing f989f50c23
Merge pull request #8469 from ByFox213/master
last Update russian.txt
2024-06-08 15:40:31 +00:00
ByFox f62980b007
Update russian.txt
I mean you wrote '.../s' instead of '.../c'
ops
2024-06-08 20:20:14 +05:00
ByFox 475681e1fa
Update russian.txt 2024-06-08 20:19:23 +05:00
Dennis Felsing 98a5e52dff
Merge pull request #8466 from ByFox213/master
Update russian.txt
2024-06-08 15:02:02 +00:00
Emilcha 13fea24da3 Sort Compare Not Case Sensitive 2024-06-08 16:57:33 +02:00