Dennis Felsing
453bc0f66a
Merge pull request #7720 from MrBlubberBut/patch-2
...
Fix automatic hammer on release when cl_dummy_control is set to 1
2023-12-27 09:01:45 +00:00
Dennis Felsing
9828da6f3e
Fix formatting
2023-12-27 09:45:10 +01:00
Dennis Felsing
751b2a4a93
Merge pull request #7721 from archimede67/editor-better-tele-text
...
Editor: improve text rendering inside tele tiles
2023-12-27 08:44:04 +00:00
Corantin H
fcc095b675
Improve text rendering inside tele tiles in editor
2023-12-27 00:16:44 +01:00
Dennis Felsing
90596e51ee
Merge pull request #7719 from archimede67/editor-adjust-special-tiles-shortcut
...
Editor: add shortcut to adjust special tiles numbers
2023-12-26 22:13:02 +00:00
Corantin H
166b27fc27
Use ctrl+f
when brush is not empty to replace tile numbers with next free
2023-12-26 20:42:42 +01:00
Corantin H
643cdf8717
Add shortcut to change tele, switch and tune number of current brush ( #5400 )
2023-12-26 20:17:36 +01:00
MrBlubberBut
32e187f18e
Fix automatic hammer on release when cl_dummy_control is set to 1
...
Let's say you have this bind:
```bind x +toggle cl_dummy_hammer 1 0```
and you set cl_dummy_control to 1.
When you press the bind i mentioned above, and then release, the dummy will hammer where he is looking (not at you). So, in total, there will be two hammers. One hammer when you press down the button and the dummy hammers towards you, and then another hammer when you release the button and the dummy hammers where he is looking.
This fixes it, and also makes sure it does not conflict with cl_dummy_copy_moves (as if it is enabled and cl_dummy_control is enabled, the dummy will not copy fire, hook, or jump) so I made sure it keeps this functionality as it's pretty cool.
This does not fix any other bugs yet, maybe I will fix those in the future but we'll see. Any bug you may encounter with this change is also probably present in the main branch, such as resetonswitch not working perfectly with dummy_control, but if you do find something different then let me know.
2023-12-26 13:59:06 -05:00
Dennis Felsing
8ce103f04f
Merge pull request #7717 from archimede67/editor-unused-tiles-popup
...
Show unused tiles warning popup for all entities layer
2023-12-26 18:29:35 +00:00
Dennis Felsing
53dba33c21
Merge pull request #7715 from infclass/kaffeine/pr
...
RenderTools: Add const/static method qualifiers
2023-12-26 18:24:25 +00:00
Corantin H
e9958aca19
Show unused tiles warning popup for all entities layer
2023-12-26 19:11:36 +01:00
Alexander Akulich
43710fe541
Use CRenderTools::GetRenderTeeOffsetToRenderedTee via class name instead of instance
...
Fixes clang-tidy warning.
2023-12-26 21:08:50 +03:00
Corantin H
70d263a7d5
Remove if
s when drawing quads QoL buttons
2023-12-26 18:49:45 +01:00
Alexander Akulich
7e95d4be22
CGameClient::CClientData::Reset: Reset skin info
2023-12-26 19:37:21 +03:00
Alexander Akulich
f396056425
CRenderTools: Mark some methods static and (some) const
2023-12-26 19:37:21 +03:00
Dennis Felsing
f12f789c3a
Merge pull request #7709 from furo321/server-demos-fixes
...
A few fixes and improvements to server-side auto demos.
2023-12-26 07:58:30 +00:00
Dennis Felsing
03ce78f781
Merge pull request #7711 from Robyt3/Textrender-Selection-Fix
...
Improve text line spacing and console text selection
2023-12-26 07:58:14 +00:00
Dennis Felsing
0376f1cd2b
Merge pull request #7708 from furo321/ctrl-shift-z
...
Support `Ctrl + Shift + Z` as editor redo hotkey.
2023-12-26 07:55:15 +00:00
Robert Müller
4c223a0002
Improve text line spacing and console text selection
...
Consider line spacing to belong to the previous line when calculating and rendering text selection. Instead of handling spacing between entries separately in the console, also include line spacing for the last line in the height calculation. Pixel align the line spacing in addition to the font size, as previously some gaps between the entries were larger than others due to missing pixel alignment. This allows rendering the text selection in the console smoothly without any gaps between the console entries/lines.
Closes #7617 .
2023-12-25 19:11:42 +01:00
Corantin H
5f6cec20c6
Fix infinite console scroll
2023-12-25 19:00:38 +01:00
furo
f7c618d8b1
Start recording of server auto demo on init.
2023-12-25 14:58:18 +01:00
furo
1eada0a8ba
Support Ctrl + Shift + Z
as editor redo hotkey.
2023-12-25 12:02:18 +01:00
Robert Müller
c9b2872459
Merge pull request #7707 from furo321/revert-highdetail
...
Revert removal of "Detail" from sound layers.
2023-12-25 09:51:51 +00:00
furo
76fa62d8fb
Revert removal of "Detail" from sound layers.
2023-12-25 01:17:36 +01:00
Corantin H
5599de3153
Use CEditorComponent
methods instead of only CMapView
...
Small changes to `CEditorObject`
2023-12-23 14:45:36 +01:00
Robert Müller
fa0b218eed
Use str_copy
instead of mem_copy
for skin names
...
The `mem_copy` function does not respect zero termination so it reads beyond the size of the source buffer, if it's smaller than the destination buffer.
2023-12-22 22:14:15 +01:00
Robert Müller
32b32d7052
Remove unnecessary checks for number of command arguments
...
The argument of `add_favorite_skin` and `remove_favorite_skin` is mandatory, so the callback will never be called without it.
2023-12-22 22:13:58 +01:00
Robert Müller
6fc3470a8d
Check for valid favorite skin name, add CSkin::IsValidName
...
Favorite skin names were previously not escaped as intended when saving, as the variable `aNameEscaped` was unused so the original skin name was saved instead of the escaped one. Escaping is not really necessary, as skins should not contain `\` and `"` anyway and it was only possible to add such favorites through the console or config files. Instead of escaping the favorite skin names when saving, now favorite skin names are validated when they are added so no escaping is necessary. Skins names are considered valid when they have a length of 1-23 bytes and don't contain the characters `/`, `\` and `"`.
2023-12-22 22:13:33 +01:00
Corantin H
34a26daeba
Fix wrong value type for some map settings in gamecontext.cpp
...
Fix some help texts starting with a lowercase character
2023-12-22 18:15:37 +01:00
Corantin H
949eea08df
Do not adjust console selection when keeping scroll offset
...
Also decrease `m_NewLineCounter` by the entry line count.
2023-12-21 00:22:12 +01:00
Robert Müller
d228064361
Fix console selection not adjusted anymore when entries added
...
The current mouse-based console selection was not being adjusted anymore when new lines are added to the console, as the `m_NewLineCounter` variable was decremented to `0` before the relevant check for `m_NewLineCounter > 0`.
2023-12-20 17:55:10 +01:00
heinrich5991
ddd10f2308
Merge pull request #7648 from dobrykafe/pr-master-info
...
report the ddrace team to master instead of the normal team
2023-12-20 15:27:32 +00:00
dobrykafe
40d56611ba
report ddrace team to master
2023-12-20 16:09:10 +01:00
Edgar
95cd183e1e
Merge pull request #7681 from Robyt3/Mapitems-Sound-DataSize-Check
...
Use `GetDataSize` instead of `CMapItemSound::m_SoundDataSize`
2023-12-20 10:37:54 +00:00
furo
1c6e629a9b
Add missing return statements to AttemptJoinTeam
2023-12-20 04:10:51 +01:00
Robert Müller
3e89bbb15e
Clear console selection only when scroll position is changed
...
The selection is only cleared because it would be incorrect after scrolling, but it doesn't need to be cleared if the scroll position does not change, e.g. when pressing Home while already at the top of the backlog.
2023-12-19 20:31:22 +01:00
Robert Müller
a1b603a424
Merge pull request #7682 from furo321/clamp-volume-env
...
Clamp volume envelopes between 0.0f and 1.0f
2023-12-18 18:47:57 +00:00
furo
fd2582c267
Clamp volume envelopes between 0.0f and 1.0f
2023-12-18 18:35:13 +01:00
Robert Müller
aa15d9b19b
Use GetDataSize
instead of CMapItemSound::m_SoundDataSize
...
Do not use the `CMapItemSound::m_SoundDataSize` value as it is redundant. This value could also be incorrect because it can be freely set by the map creator (tool).
Instead, use the map/datafile function `GetDataSize` to get the true size of the sound data in the file.
The `m_SoundDataSize` value is still written to map files for compatibility with old versions.
2023-12-18 17:58:42 +01:00
Dennis Felsing
f298b28026
Merge pull request #7678 from eghwand/pr_showlocaltimealways_setting
...
add ui setting for cl_show_local_time_always
2023-12-18 07:56:01 +00:00
Dennis Felsing
c0ed140a31
Version 17.4.2
2023-12-18 08:58:10 +01:00
Egehan
87063d048c
add ui setting for cl_show_local_time_always
2023-12-17 19:28:35 +03:00
Robert Müller
4ddf1dfdd5
Merge pull request #7674 from furo321/history-login-prompt
...
Disable cycling through command history when logging in to rcon.
2023-12-17 15:55:04 +00:00
furo
2f89297395
Disable cycling through command history when logging in to rcon.
2023-12-17 15:32:18 +01:00
heinrich5991
4af28fd2d8
Merge pull request #7672 from furo321/bitwise-instead-of-logical
...
Fix clang warning `-Wbitwise-instead-of-logical`
2023-12-17 00:11:06 +00:00
furo
c984c6895a
Fix clang warning -Wbitwise-instead-of-logical
2023-12-17 00:54:23 +01:00
Dennis Felsing
4429347f83
Merge pull request #7662 from furo321/more-team-commands
...
Add `/join [player]`
2023-12-16 23:45:16 +00:00
furo
67c101b43d
Add /join [player]
.
2023-12-16 17:33:10 +01:00
Dennis Felsing
5aa4b58d4e
Merge pull request #7661 from archimede67/editor-qol-quads
...
Editor: Add QoL features for quads
2023-12-16 11:09:16 +00:00
Dennis Felsing
2993d3ad11
Fix style
2023-12-16 11:10:02 +01:00
Egehan
5da5eb79bb
Add ui setting cl_same_clan_color
2023-12-16 11:06:29 +03:00
archimede67
5dbd5a1f49
Added quad alignment/snapping to other quads/points
2023-12-16 01:29:09 +01:00
archimede67
a41da8182b
Preserve and show axis when dragging quad points while holding Shift
2023-12-16 00:29:10 +01:00
Dennis Felsing
5b5253c4ec
Merge pull request #7659 from furo321/render-spectated-last
...
Render the tee being spectated after everyone else.
2023-12-15 22:09:49 +00:00
furo
25ffc421cc
Render the tee being spectated after everyone else.
2023-12-15 21:34:33 +01:00
Robert Müller
184ada3c95
Fix various lineinput issues/regressions
...
Fix Ctrl+C not working to copy text in console when the command input already contains text, as the changed flag was never reset properly.
Fix scroll position of UI editboxes not being updated when moving cursor without changing text.
Fix lineinput selection change being detected as content change, causing the editor modified state to be set incorrectly.
Fix cursor blinking not being disabled correctly after changing text without changing cursor position.
2023-12-15 17:49:06 +01:00
heinrich5991
1feee077ca
Returning false
commits you to setting a message
2023-12-15 13:00:43 +01:00
Dennis Felsing
12ed9f8d6b
Merge pull request #7651 from furo321/fix-teamjoin-error
...
Don't broadcast error if `CanJoinTeam` returned true
2023-12-14 23:48:20 +00:00
Dennis Felsing
514e528be7
Merge pull request #7649 from furo321/chat-command-netmsg
...
Add `Sv_CommandInfo` netmsg for autocompletion of chat commands.
2023-12-14 23:46:52 +00:00
Dennis Felsing
a333d723e5
Merge pull request #7653 from Robyt3/Clang-Tidy-Cleanup
...
Fix more clang-tidy errors: mark functions as `const` when possible
2023-12-14 23:46:19 +00:00
Dennis Felsing
7d37db6d6e
Version 17.4.1
2023-12-15 00:58:09 +01:00
Robert Müller
f50eeab690
Fix performance-inefficient-vector-operation
2023-12-14 23:38:05 +01:00
Robert Müller
bab382f4cc
Fix modernize-use-emplace
2023-12-14 23:38:05 +01:00
Robert Müller
aacd37b412
Fix readability-static-accessed-through-instance
2023-12-14 23:38:05 +01:00
Robert Müller
6a12e209b6
Fix readability-make-member-function-const
2023-12-14 23:38:03 +01:00
Corantin H
af77ebac54
Added console search function
2023-12-14 21:58:27 +01:00
furo
035e7a1068
Add Sv_CommandInfo
netmsg for autocompletion of chat commands.
2023-12-14 19:01:35 +01:00
furo
a440e0e917
Don't broadcast error if CanJoinTeam
returned true
2023-12-14 16:19:31 +01:00
heinrich5991
efe593c7b0
Merge pull request #7602 from ChillerDragon/pr_create_switcherscontroller
...
Move switcher snapping code to own method
2023-12-13 22:10:49 +00:00
Robert Müller
68508e1b81
Add small margin to callvote label
2023-12-13 17:47:10 +01:00
ChillerDragon
1723554288
Move switcher snapping code to own method
2023-12-13 17:29:02 +01:00
heinrich5991
b458890f08
Merge pull request #7639 from ChillerDragon/pr_canjoinmsg
...
Move chat message into CanJoinTeam()
2023-12-13 15:27:25 +00:00
ChillerDragon
157e8b7302
Pass error message as buffer to CanJoinTeam()
...
Now `CGameContext` no longer assumes the `IGameController`
declined the team join due to slots.
This enables custom gametypes to disallow joining the game if the player
died, an active tournament is running or the player is not logged in
yet. And then the controller can print the correct error message
accordingly.
2023-12-13 14:46:37 +01:00
furo
09e222c39f
Set correct colour for authed colour reset button
2023-12-13 13:23:33 +01:00
Edgar
082c44889a
Merge pull request #7635 from archimede67/fix-escape-key-lineinput
...
Fix escape key not working when lineinput is focused
2023-12-12 08:14:51 +00:00
Edgar
3cb510a2e6
Merge pull request #7637 from heinrich5991/pr_ddnet_even_less_system_h
...
Remove `#include <system.h>` from one more header
2023-12-12 08:14:32 +00:00
heinrich5991
e4c97e5583
Merge pull request #7574 from furo321/remove-telecursor
...
Don't scale TargetXY by zoom when in spectator.
2023-12-11 23:50:21 +00:00
heinrich5991
be53d83019
Remove #include <system.h>
from one more header
2023-12-12 00:44:46 +01:00
Dennis Felsing
7813cfed6c
Merge pull request #7618 from heinrich5991/pr_ddnet_less_system_h
...
Make less headers depend on `<base/system.h>`
2023-12-11 23:08:59 +00:00
heinrich5991
05af24a052
Make less headers depend on <base/system.h>
...
Move a couple of trivial type definitions to `<base/types.h>` instead.
2023-12-11 23:52:23 +01:00
archimede67
0aca09093f
Use WasCursorChanged()
when rendering lineinput in CUI::DoEditBox
2023-12-11 22:26:19 +01:00
Robert Müller
990bb8bb5d
Merge pull request #7632 from furo321/input-envelope-scaling
...
Fix envelope scaling being triggered in name input.
2023-12-11 20:36:03 +00:00
furo
b42f43ce99
Fix envelope scaling being triggered in name input.
2023-12-11 21:17:24 +01:00
ChillerDragon
ab5a7b88bd
Add ui setting for cl_authed_player_color
2023-12-11 20:21:01 +01:00
furo
466dca87a6
Support F5
and Modifer
+ R
for refresh where possible.
2023-12-11 16:52:21 +01:00
Corantin H
8c5b8a88c8
Ensure white color for entities layers when loading map layers
2023-12-11 13:37:23 +01:00
Corantin H
0c69378fcd
Prevent editing the color of entities layers
2023-12-11 13:36:42 +01:00
Corantin H
7b20bf71e6
Fix modified state being set when lineinput is selected.
...
Differentiate between text and cursor changes by adding an additional `m_WasCursorChanged`.
2023-12-11 00:05:13 +01:00
Corantin H
51220b1dfc
Fix editor modified state not being updated properly
2023-12-11 00:03:46 +01:00
Robert Müller
733b46da87
Merge pull request #7613 from archimede67/fix-chat-input-history
...
Reset history entry along with chat input when using Escape
2023-12-10 18:34:28 +00:00
Corantin H
5b7c064ea2
Reset history entry along with chat input when using Escape
2023-12-10 17:39:41 +01:00
Robert Müller
83af5e47f3
Improve key reader button
...
Show localized text "Press a key…" instead of "???" while waiting for a key to be pressed.
Render button with green background while waiting for a key to be pressed.
Inline unnecessary `DoButton_KeySelect` function.
Fix names of static variables.
2023-12-10 16:07:27 +01:00
Robert Müller
1b03637436
Remove unused color argument, use ColorRGBA
instead of vec4
2023-12-10 16:05:59 +01:00
Robert Müller
20d9920d00
Consistent rounding of editor value/color picker buttons
...
Fix too large rounding for some editor color picker buttons.
2023-12-10 11:41:18 +01:00
Robert Müller
7ae7877248
Merge pull request #7593 from archimede67/console-scrolling
...
Add ability to scroll in console. Remove pages.
2023-12-09 18:26:32 +00:00
Robert Müller
d3cc932a9b
Merge pull request #7393 from archimede67/editor-undo-redo-v2
...
Editor undo/redo v2
2023-12-09 18:17:38 +00:00
Dennis Felsing
63710e91e8
Merge pull request #7601 from ChillerDragon/pr_fix_authstate_id
...
Use real ClientID to lookup authed state
2023-12-09 17:26:48 +00:00
furo
e0b51c2aec
Add ability to scroll in console. Remove pages.
2023-12-09 12:20:43 +01:00
furo
bac3670296
Don't scale TargetXY when in spectator
2023-12-09 01:44:00 +01:00
Robert Müller
48805a6db4
Merge pull request #7596 from archimede67/fix-chat-preview-update
...
Fix chat preview update
2023-12-07 19:44:46 +00:00