Alexander Akulich
763541af5a
GameContext: Extract OnEmoticonNetMessage()
2023-09-09 14:45:15 +03:00
Alexander Akulich
0a2cc3d84c
GameContext: Extract OnChangeInfoNetMessage()
2023-09-09 14:45:15 +03:00
Alexander Akulich
9f668e20db
GameContext::OnMessage: Move the check for World.Paused into OnSetTeam
...
1. Regardless of the pause the message is CL_SETTEAM and there is no
reason to match it against other messages.
2. Another implementation can save the wanted team and apply it later.
2023-09-09 14:45:11 +03:00
Alexander Akulich
ce5371b038
GameContext: Extract OnSetTeamNetMessage()
2023-09-09 14:45:04 +03:00
Alexander Akulich
a1ec904596
GameContext: Extract OnSayNetMessage()
2023-09-09 14:45:02 +03:00
Robert Müller
84e3c081b4
Fix friendlist update conchain not working with optional argument
...
The clan argument is optional when using `add_friend` and `remove_friend`.
2023-09-09 13:31:27 +02:00
Robert Müller
21f7af59a0
Fix desynced lineinput cursor/selection on external buffer change
...
When the buffer of a lineinput is modified externally, the cursor offset and selection are not updated, which causes them to be rendered wrong and also causes the assertion error "Selection and cursor offset got desynchronized" when changing the selection of a lineinput.
2023-09-09 13:25:47 +02:00
Alexander Akulich
1074a5ff56
CMake: Use DDNet_VERSION to construct DDNET_VERSION_NUMBER
2023-09-08 23:13:00 +03:00
Alexander Akulich
88fc275d85
GameContext: Extract OnCallVote() and OnVote() from OnMessage()
2023-09-08 19:19:28 +03:00
Robert Müller
f3eaa10d7a
Merge pull request #7102 from Marmare314/revert-6844
...
revert change to quad selection (resolves #7025 )
2023-09-08 15:21:53 +00:00
Robert Müller
e5e7e76ce5
Merge pull request #7146 from dobrykafe/pr-settings-player-scroll
...
Allow countryflag scrolling in player settings while name/clan input selected
2023-09-08 08:45:10 +00:00
Dennis Felsing
ee1b8baab5
Merge pull request #7145 from infclass/for-ddnet4
...
Cleanup CMake, adjust the version variables
2023-09-08 08:09:56 +00:00
dobrykafe
53d0e3f851
allow flag scroll while input selected
2023-09-08 00:12:18 +02:00
Alexander Akulich
d0ecb5f8dd
CMake: Rework the versioning
2023-09-08 00:10:48 +03:00
Dennis Felsing
06146aa980
Merge pull request #7140 from furo321/render-cut-to-video
...
Add "render cut to video"
2023-09-07 12:09:07 +00:00
heinrich5991
2bf2850b20
Merge pull request #7128 from ChillerDragon/pr_sixup_slot_info
...
Fix 0.7 clients not being able to join after slot change
2023-09-06 23:15:43 +00:00
furo
50d0efb410
Add "render cut to demo"
2023-09-06 21:03:51 +02:00
marmare314
ae7eda1628
revert change to quad selection (resolves 7025)
...
Some refactorings are kept and rotation being bound to `R` is also
not reverted.
2023-09-06 19:30:06 +02:00
Robert Müller
fe95919f63
Support longer lines being rendered in console
...
Don't truncate console lines at 255 bytes anymore. Especially lines containing many Unicode characters would be adversely affected by this limitation.
Instead, truncate console lines after 10 wrapped lines are rendered. Rendering too many lines at once currently breaks the console scrolling. Rendering an ellipsis is currently not possible when rendering text with a maximum line count.
Increase buffer sizes to handle long (esp. invalid) command inputs.
Closes #7132 .
2023-09-06 19:16:00 +02:00
Alexander Akulich
07d8d591c8
Add NO_SKIN_CHANGE_FOR_FROZEN game info flag
...
The flag is wanted for mods which use freeze state but need or want
to keep the player skins (the skin is critical for some mods).
2023-09-06 16:50:06 +03:00
furo
f71a2e017a
Add CTRL+F in load map prompt
2023-09-06 15:29:07 +02:00
ChillerDragon
5a8e67b323
Fix 0.7 clients not being able to join after slot change
...
If the player slots update the 0.7 clients have to be informed
about it. Otherwise the client can block the join button
if the outdated playerslots are filled already.
2023-09-06 12:50:16 +02:00
heinrich5991
1abd09fbc4
Merge pull request #7112 from Robyt3/UI-Tooltip-Fix
...
Fix some menus tooltips not working anymore
2023-09-06 10:35:20 +00:00
heinrich5991
d2a12e01c1
Merge pull request #7126 from Robyt3/Graphics-Format-PixelSize
...
Add `CImageInfo::PixelSize` function, use `enum EImageFormat`
2023-09-06 09:57:59 +00:00
Harri Nieminen
4d9ff1d904
Fix typos
...
Found by codespell
2023-09-05 22:32:09 +03:00
Robert Müller
b4fa20599e
Truncate IP with ellipsis in connecting popup
2023-09-04 21:16:27 +02:00
Robert Müller
dde45f7a40
Add CImageInfo::PixelSize
function, use enum EImageFormat
...
Use `enum EImageFormat` type for image format literals and variables.
Add `PixelSize` function to get the number of bytes/color channels per pixel for a specified image format.
Remove unused store format argument of texture loading functions. All textures are automatically being stored as RGBA, so the argument was unused. Also remove the therefore unused `FORMAT_AUTO`.
Rename variables consistently to `PixelSize` and use `size_t`, instead of mixing different names like `BPP` and `ColorChannelCount`.
Validate image format loaded from maps using `CImageInfo::ImageFormatFromInt`. Add `FORMAT_ERROR` to represent invalid formats.
Remove redundant `PixelSize` parameter from graphics backends and commands, which can be derived from the texture format.
Fix memory leak when RGB image data is being converted to RGBA format when saving map in editor.
2023-09-03 20:40:28 +02:00
Dennis Felsing
3ff799770c
Merge pull request #7125 from Vy0x2/pr-fix-mv-default-zoom
...
Remove setting default zoom after leaving multiview, fixes #7113
2023-09-02 20:00:47 +00:00
devdenn
533d401ea5
Remove setting default zoom after leaving multiview
2023-09-02 16:57:24 +02:00
Robert Müller
16bc489afb
Move editor automap .rules
files to separate subfolder
...
For better organization of the `data/editor` folder.
2023-09-02 11:41:46 +02:00
Dennis Felsing
54134d6d38
Merge pull request #7119 from Robyt3/UI-Progress-Spinner-Editor
...
Add progress spinner to UI, show progress spinner while saving map in editor
2023-09-01 23:43:16 +02:00
Robert Müller
1ebd209f90
Merge pull request #7095 from Marmare314/refactor-a1
...
Refactor editor mapitems
2023-09-01 18:47:51 +00:00
Robert Müller
eac1dc4533
Show progress spinner while saving map in editor
2023-09-01 19:26:34 +02:00
marmare314
59df1d86d4
move CEditorMap::HandleMapDrop
to CEditor
2023-09-01 18:57:36 +02:00
marmare314
12d0608dfd
let CEditorImage
inherit CEditorComponent
2023-09-01 18:57:35 +02:00
marmare314
07fd8e6712
let CAutoMapper
inherit CEditorComponent
2023-09-01 18:57:13 +02:00
Dennis Felsing
4c593bc222
Merge pull request #7117 from Robyt3/Chat-Clear-Fix
...
Fix chat history disappearing with `cl_showchat 1`
2023-09-01 07:27:07 +00:00
Robert Müller
147561e281
Add CUI::RenderProgressSpinner
function
2023-08-31 22:40:09 +02:00
Robert Müller
a4232198ed
Add CUIRect::Center
convenience function
2023-08-31 21:33:17 +02:00
Robert Müller
87a0461eb6
Disable server browser hotkeys when popup menu is open
...
Closes #7088 .
2023-08-31 21:16:51 +02:00
Robert Müller
ddb9cdd251
Use DefaultTextColor
/DefaultTextOutlineColor
2023-08-31 20:14:10 +02:00
Robert Müller
cfcc2ff9bc
Remove unused include
2023-08-31 20:14:10 +02:00
Robert Müller
933b4ad2ab
Fix chat history disappearing with cl_showchat 1
...
Closes #7115 .
2023-08-31 20:14:10 +02:00
Robert Müller
cbc1044b98
Fix some menus tooltips not working anymore
...
For some tooltips, the associated UI element ID was not being set as hot item, which is required for tooltips.
The tooltip for the "Dummy settings" checkbox was only present on the tee settings page but not on the player settings page.
Closes #7107 .
2023-08-30 21:57:04 +02:00
Jupeyy
16115c204e
Merge pull request #7094 from Robyt3/Variable-Desc-Fixes
...
Remove `gfx_finish` config variable, remove `dbg_hitch` config variable, improve config variable descriptions, add missing descriptions
2023-08-30 18:28:25 +00:00
Robert Müller
98b3fe460a
Fix typo in internal name of cl_assets_entities
config variable
...
The name used in config is unchanged.
2023-08-30 20:07:12 +02:00
Robert Müller
943f98dc92
Improve config variable descriptions, add missing descriptions
2023-08-30 20:07:11 +02:00
Robert Müller
bc82a450c3
Remove CLocConstString
...
This makes it more obvious where text is localized. This class was also broken for localized strings with context, since the member variable `m_ContextHash` was uninitialized.
2023-08-30 19:24:38 +02:00
Dennis Felsing
7231d8317f
Merge pull request #7100 from Robyt3/Lineinput-Selection-Desync
...
Fix lineinput selection getting desynchronized from cursor
2023-08-29 20:37:43 +00:00
marmare314
c3a07dd977
let CEditorSound
inherit CEditorComponent
2023-08-29 22:28:07 +02:00
marmare314
d68029a252
extract CEditorSound
into separate header file
2023-08-29 22:08:12 +02:00
marmare314
5f60d68e8b
extract CEditorImage
into separate header
2023-08-29 22:08:12 +02:00
marmare314
a1ea2f1ff1
Split up io.cpp
2023-08-29 22:08:07 +02:00
Robert Müller
e3700ac4e4
Merge pull request #7016 from k-i-o/k-i-o-patch-1-3
...
Update gameclient.cpp
2023-08-29 16:10:39 +00:00
Robert Müller
b7773d2b4c
Fix lineinput selection getting desynchronized from cursor
...
When the text cursor/selection mode is set to calculate, values of `-1` are used when the selection is empty. These values were not being handled anymore due to a regression from #7028 . This was causing the selection to be set to the last position instead, which was causing text to subsequently be inserted there instead of at the cursor position.
An assertion is added to ensure that the selection cannot be desynchronized from the cursor position anymore.
Closes #7099 .
2023-08-29 18:01:09 +02:00
Samuele Radici
73f68c73f4
done i hope
2023-08-29 13:52:31 +00:00
Samuele Radici
6534728744
fix style
2023-08-29 11:01:58 +00:00
Samuele Radici
d7d635881b
I found out he didn't save himself...
2023-08-29 10:09:55 +00:00
furo
28fda865c5
Keep selection after sort
2023-08-28 21:47:48 +02:00
furo
2dcc0b9db3
Fix demo sorting
2023-08-28 21:11:12 +02:00
heinrich5991
812231449b
Merge pull request #7093 from HiRavie/master
...
Fix all envelopes being saved as bezier
2023-08-28 14:51:49 +00:00
Ravie
6705cccb72
Fix all envelopes being saved as bezier
2023-08-28 16:19:41 +02:00
Dennis Felsing
ff1a2a44d3
Merge pull request #7076 from dobrykafe/pr-fix-map-drag-and-drop
...
Add warning for unsaved editor changes when dragging a map file into the game
2023-08-28 13:49:58 +00:00
Dennis Felsing
baffa8d817
Merge pull request #7080 from heinrich5991/pr_ddnet_teehistorian_prev_game_uuid
...
Record previous game ID in teehistorian
2023-08-28 11:28:00 +00:00
Dennis Felsing
c7f3be7d75
Merge pull request #7082 from Marmare314/editor-seperate-mapitems
...
extract code from editor mapitems into separate files
2023-08-28 10:23:17 +00:00
Robert Müller
3988877e8e
Merge pull request #7002 from Marmare314/pixelart
...
Add pixelart tool to editor
2023-08-27 18:42:35 +00:00
heinrich5991
70bf739b6f
Notify antibot of round start after initializing teehistorian
...
This allows the antibot to start pushing data into teehistorian
immediately.
2023-08-27 17:35:13 +02:00
heinrich5991
a48d14fac0
teehistorian: Omit "prev_game_uuid"
instead of setting it to null
2023-08-27 16:11:45 +02:00
heinrich5991
cbdb3b1d2e
Record previous game ID in teehistorian
...
This allows to trace a complete server execution.
2023-08-27 16:11:45 +02:00
heinrich5991
330d1ebaf6
Add possibility to persist game data past map changes
2023-08-27 16:11:45 +02:00
marmare314
946be50807
Add tileart tool to editor
2023-08-27 16:07:56 +02:00
marmare314
e19b1e4da6
extract code from editor mapitems into separate files
2023-08-27 16:04:53 +02:00
marmare314
605a93787e
improve code style in proofmode, mapgrid and mapview
2023-08-27 11:38:15 +02:00
dobrykafe
758601c310
remove duplicate code
2023-08-26 22:28:19 +02:00
dobrykafe
cb29ad2b4f
dont switch to editor if loading fails
2023-08-26 22:13:13 +02:00
Dennis Felsing
c9557b2ee9
Merge pull request #7069 from furo321/pr_demo_searchbar
...
Add a searchbar for demos.
2023-08-26 19:00:31 +00:00
Dennis Felsing
48d0228428
Merge pull request #7077 from infclass/ddnet-fix-pause
...
CGameClient::Predict: Disable prediction if the game is paused
2023-08-26 18:35:17 +00:00
furo
ac775eca36
Fix style
2023-08-26 20:29:58 +02:00
Robert Müller
8effc201bd
Merge pull request #7075 from Marmare314/issue-7053
...
clamp value-range for color envelopes in popups
2023-08-26 18:14:06 +00:00
dobrykafe
8957ae99bd
remove whitespace
2023-08-26 19:44:53 +02:00
Alexander Akulich
ec7d1f89e1
CGameClient::Predict: Disable prediction if the game is paused
...
CGameClient::OnPredict() says "don't predict anything if we are paused"
and yet we predict different stuff based on CGameClient::Predict() result
which leads to flickering here and there (e.g. for projectiles and characters).
2023-08-26 20:37:55 +03:00
Alexander Akulich
63ed421e38
CGameClient: Move Predict() implementation to .cpp file and reformat it
2023-08-26 20:37:55 +03:00
dobrykafe
5e923adcc9
fix map drag and drop
2023-08-26 18:14:13 +02:00
furo
0ebc40ec80
Naming: Item -> pItem
2023-08-26 17:28:35 +02:00
marmare314
c5282682f7
clamp value-range for color envelopes in popups
...
fixes #7053
2023-08-26 17:23:37 +02:00
marmare314
c68350a08a
reset operation status after creating envelope context menu
...
fixes #7050
2023-08-26 17:14:57 +02:00
furo
1b20a9640d
Fix requested changes.
2023-08-26 13:13:12 +02:00
Robert Müller
6b6ee21338
Merge pull request #7017 from Marmare314/mapview
...
Add `CProofMode` and `CMapGrid` component
2023-08-26 08:54:38 +00:00
furo
4f3a4c4816
Whops
2023-08-26 02:10:54 +02:00
furo
6781717983
Ability to search for demos.
2023-08-26 01:55:30 +02:00
marmare314
467de92377
Add CProofMode
and CMapGrid
component
...
Also extract more code into `CMapView` and extend the `CEditorComponent`
interface.
2023-08-25 20:40:27 +02:00
Dennis Felsing
5ba1834eed
Merge pull request #7067 from Marmare314/vscpp-issue
...
fix CScorePlayerResult for visual c++ compiler
2023-08-25 17:57:40 +00:00
Marek B
5815f8c6c0
fix CScorePlayerResult for visual c++ compiler
2023-08-25 18:17:01 +02:00
Robert Müller
b6f0c59b26
Refactor editor entities layer explanations
...
Use `enum`. Organize explanations in separate functions for DDNet, FNG and Vanilla.
2023-08-25 17:49:13 +02:00
Dennis Felsing
23ed630a4e
Merge pull request #7065 from heinrich5991/pr_ddnet_teehistorian_antibot
...
Allow antibot to record data into teehistorian
2023-08-25 15:08:35 +00:00
heinrich5991
84948adad1
Allow antibot to record data into teehistorian
2023-08-25 14:26:09 +02:00
heinrich5991
548f2f6021
Merge pull request #7058 from Robyt3/Demo-Player-Pause-Indicator
...
Show indicator when pausing/unpausing in demo player
2023-08-25 11:55:03 +00:00
Robert Müller
ec0522d58f
Show indicator when pausing/unpausing in demo player
...
Render a pause/play icon in the center of the screen when pausing/unpausing while the menu is not active.
The icon fades in and out over 0.5 seconds and slightly increases in size over that time.
When starting demo rendering with initial pause, the pause indicator is rendered continuous until playback is first started, to ensure that the initial pause state is communicated clearly to the user. The initial pause indicator is not included in the rendered demo, but pausing and unpausing later during demo rendering will cause it to be included in the video, same as other UI elements. Closes #7044 .
The config variable `cl_demo_show_pause` (`0/1`, default `1`) is added to hide the pause indicator entirely, for example to render a demo with multiple pauses without the indicator.
The pause indicator and also the existing speed indicator are not rendered (anymore) while the menu is active, as the menu already contains this information.
2023-08-25 13:29:17 +02:00
heinrich5991
b739c18a86
Merge pull request #7056 from Robyt3/Base-Number-Format-Optimization
...
Add `str_from_int` function
2023-08-25 11:16:00 +00:00
heinrich5991
1f13a693a5
Merge pull request #6744 from Zwelf/pr-fix-teehistorian-mapchange
...
Fix JoinVer and Join teehistorian chunks missing in some conditions
2023-08-25 11:15:43 +00:00