Commit graph

20665 commits

Author SHA1 Message Date
MilkeeyCat 31966d52a6 feat: trim strings in search & exclude inputs 2024-06-23 14:25:31 +03:00
Dennis Felsing 123a21bb01
Merge pull request #8510 from Robyt3/Sound-Sample-Fixes
Ensure sample indices are initialized also with sound disabled, faster map loading with sound disabled, fix map sound warning
2024-06-21 16:33:58 +00:00
Robert Müller 91cf20ced4 Faster map loading with sound disabled, fix map sound warning
Fix map sound loading warning being incorrectly shown when sound is disabled. Make map loading faster in this case by not unpacking the sound data and sound sources from the map at all if sound is disabled.

Closes #8450.
2024-06-21 17:38:56 +02:00
Robert Müller efa069ef80 Ensure sample indices are initialized also with sound disabled
The assertion of #8262 can be reproduced when sound is disabled or failed to be initialized, as the sample indices where not being initialized properly in these cases. It is still necessary to initialized them so sounds can be loaded in the editor also when sound is disabled.

The potential thread-safety issues of the `CSound::AllocSample` function are not yet resolved so the issue remains open.
2024-06-21 17:38:16 +02:00
Dennis Felsing 1457f42620
Merge pull request #8505 from Sedonya/patch-2
Update russian.txt
2024-06-20 05:28:25 +00:00
Dennis Felsing e7bd56544b Fix indentation 2024-06-20 13:10:51 +08:00
Sedonya_ 6153a8dc76
Update russian.txt 2024-06-20 03:19:23 +05:00
heinrich5991 f5d28f155a
Merge pull request #8499 from Robyt3/Client-Spectate-HUD-Cleanup
Remove `Spectate` label from HUD, show `Following {player}` instead
2024-06-18 20:07:11 +00:00
Robert Müller 908ebc65ee Remove Spectate label from HUD, show Following {player} instead 2024-06-18 21:49:06 +02:00
Dennis Felsing 7ee7ec6434
Merge pull request #8498 from Robyt3/Client-Console-Dump-Refactor
Move `CGameConsole::Dump` function to `CGameConsole::CInstance`
2024-06-18 02:25:59 +00:00
Robert Müller 6df4ff3a44 Move CGameConsole::Dump function to CGameConsole::CInstance
Avoid the `int Type` parameter by making `CGameConsole::Dump` a member function of `CGameConsole::CInstance`.

Use `log_*` functions instead of `IConsole` for logging.
2024-06-17 22:36:25 +02:00
Dennis Felsing 4b08c8cffb
Merge pull request #8494 from n0Ketchp/patch-19
Update spanish.txt
2024-06-16 00:34:53 +00:00
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