Commit graph

20762 commits

Author SHA1 Message Date
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
ByFox 660d953a80
Update russian.txt 2024-06-08 19:44:04 +05:00
ByFox 74441a1f96
Update russian.txt 2024-06-08 18:16:22 +05:00
Dennis Felsing 5a09da0782
Merge pull request #8465 from Robyt3/Client-Localize-Context-Fix
Fix wrong context value being used for translation lookup
2024-06-08 10:59:56 +00:00
Dennis Felsing a2215a1bff
Merge pull request #8463 from EGYT5453/ua-18.3
Update Ukrainian l10n (18.3)
2024-06-08 10:57:01 +00:00
Robert Müller f5de30ee88 Fix wrong context value being used for translation lookup
The trailing `]` was not being removed from the context anymore due to an off-by-one error introduced in #8430. Closes #8464.
2024-06-08 12:42:03 +02:00
Andriy 56fe2a930c
Update Ukrainian l10n (18.3) 2024-06-08 12:06:12 +03:00
Robert Müller 3ef1c83935
Merge pull request #8462 from def-/pr-credits
Update credits
2024-06-08 08:34:19 +00:00
Robert Müller 08e248a0f6
Merge pull request #8460 from def-/pr-lang-18.3
Update languages for upcoming 18.3
2024-06-08 08:32:20 +00:00
Dennis Felsing 62f0849ca7 Update credits 2024-06-08 10:11:03 +08:00
Dennis Felsing 4773930e95 Update German translations 2024-06-08 09:03:02 +08:00
Dennis Felsing 2498d392db Update languages for upcoming 18.3 2024-06-08 09:01:55 +08:00
Robert Müller fa58909dfe
Merge pull request #8459 from def-/pr-time-cp-diff
Add cl_showhud_time_cp_diff
2024-06-07 17:35:45 +00:00
Dennis Felsing 112e34fefe Add cl_showhud_time_cp_diff 2024-06-08 00:31:08 +08:00
Robert Müller 989a3765f7
Merge pull request #8342 from ChillerDragon/pr_multiview_pvp
Keep respawned players in multi view list on pvp servers
2024-06-06 20:49:43 +00:00
Robert Müller f494826dcf
Merge pull request #8154 from ChillerDragon/pr_worst_style_offenders
Fix worst local variable style offenses
2024-06-06 20:18:19 +00:00
Robert Müller ef7bebc73e Remove CUi::MouseButtonReleased function
Replace the last remaining usage of the `CUi::MouseButtonReleased` function with `!MouseButton(...)`. The `pMouseSelection->m_Selecting` flag is only set to `true` when the mouse button is already pressed down, so the additional check of `MouseButtonReleased` is unnecessary in this case. In general, this function is an anti-pattern in our UI, as only checking for the mouse button to be released does not guarantee that the mouse was also pressed down over the respective UI element. The `DoButtonLogic` function or similar code should be used instead of only handling the press or release of a mouse button.
2024-06-06 21:41:50 +02:00
Robert Müller 3bb60267f9 Consistent value selector behavior, support double-clicking
Make value selector behavior consistent with the generic button logic. Consistently check for completed mouse clicks on the value selector UI element instead of handling some mouse down and mouse up events separately. Fix text mode being activated when moving the mouse over value selectors with held down mouse button. Fix text mode being deactivated immediately when the mouse leaves text area while holding down the mouse button, which is inconvenient when selecting text. Remove unnecessary usage of `CUi::MouseButtonReleased` function.

Support double-clicking value selectors to enter text edit mode in addition to right-clicking. This feels more intuitive to use and also makes it usable without a second mouse button.

Select all text when entering text mode also in the editor, which was previously only a feature in the menus.

Fix value selector edit state being `EDITING` by default instead of `NONE` in the editor and fix maps being marked as modified immediately when a value selector text input is activated. The map will now be marked as modified only when the editing operation is completed, which should be synchonized with the undo history action being added.

Use the `CUi::ConsumeHotkey` function instead of checking the enter keys manually.

Remove unnecessary and unused `CUi::m_ValueSelectorTextMode` variable and its accessors as well as the equivalent `s_TextMode` variable in the editor. This separate flag is unnecessary as we can use the existing `s_pLastTextId` variable instead.
2024-06-06 21:41:50 +02:00
Dennis Felsing 85888c3aa3
Merge pull request #8456 from Robyt3/Editor-UI-MouseHandling
Unify editor UI mouse handling with `CUi`
2024-06-06 04:22:00 +00:00
archimede67 80228caddd
Merge pull request #8457 from Robyt3/Client-Warning-Button-Localize
Fix Ok-button of warning popup not being localized
2024-06-05 20:07:10 +00:00
archimede67 abc7d05fca
Merge pull request #8455 from Robyt3/Client-Demo-Cut-Filename-Fix
Fix wrong file extension being removed in demo cut popup
2024-06-05 20:06:58 +00:00
Robert Müller f8e84216fc Fix Ok-button of warning popup not being localized 2024-06-05 21:48:52 +02:00
Robert Müller ca89162b06 Fix wrong file extension being removed in demo cut popup
The `.demo` extension is supposed to be removed from the target filename when slicing demos, but anything after the last dot was being removed instead, e.g. `test.abc.def` was incorrectly replaced with `test.abc`.
2024-06-05 21:11:50 +02:00
Robert Müller 60f3b5fb55 Unify editor UI mouse handling with CUi
Remove separate handling of UI mouse position and delta in the editor and use the UI directly for this like in the gameclient. Raw cursor movements are redirected to the UI with the `CUi::OnCursorMove` function. The editor separately updates its world positions and delta after the mouse position was changed. The mouse world position for the editor is passed to the UI with the `CUi::Update` funtion as before, whereas the world position is unused in the gameclient.

Use `vec2`s for mouse positions and deltas instead of two separate floats.
2024-06-05 20:13:42 +02:00
Dennis Felsing 151956294d
Merge pull request #8454 from Learath2/dd_pr_fixsearchhilite
Fix console search highlighting. Close #8451
2024-06-05 16:20:53 +00:00
Learath e9d568db5b Fix console search highlighting. Close #8451 2024-06-05 18:01:42 +02:00
Dennis Felsing c7dc7b6a94
Merge pull request #8448 from EGYT5453/uapdte
Remake of Ukrainian l10n
2024-06-05 05:46:52 +00:00
Dennis Felsing 5eda5e9fe3
Merge pull request #8395 from Robyt3/Client-Input-Event-Refactoring
Refactor client input event handling
2024-06-05 05:26:23 +00:00
Andriy 97623c3002
Remake Ukrainian l10n 2024-06-04 23:28:45 +03:00
Robert Müller 0d9f673b03 Include types.h instead of system.h in input.h 2024-06-04 22:02:49 +02:00
Robert Müller 248225c7c4 Refactor client input event handling
Add `IInput::ConsumeEvents` function accepting a consumer `std::function` to replace the duplicate usage of the `IInput::NumEvents`, `IInput::GetEvent` and `IInput::IsEventValid` functions.

Use an `std::vector` to store the current input events to support any number of input events per client update instead of at most 32.

Use full `uint32_t` range for input counter instead of only using the range 0..0xFFFF. If the range is artificially reduced, then this can result in inputs being handled multiple times with high refresh rates, so the increased range should add future proofing for extremely fast devices.

Split `CInput::AddEvent` function into `CInput::AddKeyEvent` and `CInput::AddTextEvent` functions for readability and to make it easier to add additional input events (i.e. touch events).

Ensure double-click state is cleared at the end of each frame to prevent the double-click from being stored when no UI element consumes it.

Move member variables from `IInput` interface to `CInput` implementation.

Remove separate `CEditor::DispatchInputEvents` function.
2024-06-04 22:01:54 +02:00
Dennis Felsing 4f22468bf8
Merge pull request #8443 from Robyt3/Client-Controls-Minor-Refactoring
Minor refactoring of `CControls`
2024-06-04 02:46:49 +00:00
heinrich5991 82c2ecd91b
Merge pull request #8444 from EGYT5453/tee-tab-l10n
Make "Tee" tab name localisable
2024-06-03 21:10:33 +00:00
Robert Müller 4ec5b04a2e Use vec2 instead of two separate variables 2024-06-03 21:43:49 +02:00
Robert Müller 1fcb8a5469 Add GetMinMouseDistance function, remove variable MinDistance 2024-06-03 21:43:49 +02:00
Robert Müller 01be442280 Rename variable MDistance to MouseDistance 2024-06-03 21:43:49 +02:00
Robert Müller f94053bd66 Rename variable w to Weapon 2024-06-03 21:43:48 +02:00
Robert Müller 2904c4a2e8 Restructure input send checks without ifs 2024-06-03 21:43:48 +02:00
Andriy 950bbf31af
Make "Tee" tab name localisable 2024-06-03 22:24:31 +03:00
Robert Müller 178a0dabfa Remove dead code and unused variables 2024-06-03 20:55:39 +02:00
Robert Müller b7579b0f0f Ensure last input send time is reset when disconnecting
Reset send time when disconnecting so input sending should always behave consistently like on the first connection.
2024-06-03 20:54:57 +02:00
Robert Müller a7229e9892 Use array of size NUM_DUMMIES instead of two variables
Reduce duplicate code and improve clarity.

Remove unnecessary casts to `void *`.
2024-06-03 20:54:49 +02:00