Commit Graph

27553 Commits (6d597879d0f1ef2ff02d02c6b1967014a8d521e8)
 

Author SHA1 Message Date
Rubidium 6d597879d0 Codechange: let ReadLine return a string instead of passing a buffer 1 year ago
Rubidium 81f957b9f8 Codechange: use std::string to find the executable's working directory 1 year ago
merni-ns 1be668c2e4
Fix #10975: Clear a non-head engine's name (#10976) 1 year ago
Rubidium 66a984afd7 Codechange: rename function to better describe its functionality 1 year ago
Rubidium 48dcb79145 Cleanup: remove seprintf and vsnprintf 1 year ago
Rubidium 13cdf5fffa Codechange: use std::filesystem::path for the language file's path 1 year ago
Rubidium 97dd84d1e0 Codechange: move saveload string fixing code to saveload 1 year ago
Rubidium 3f35787458 Codechange: replace stredup + StrMakeValidInPlace with std::string + StrMakeValid 1 year ago
Rubidium e762855201 Cleanup: remove str_strip_colours; StrMakeValid also removes the colours
Essentially str_strip_colours followed by StrMakeValid makes the calling of
str_strip_colours useless, as StrMakeValid would have removed them too.
1 year ago
mrmbernardi 35ef6c1723
Feature: [GS] Goal destination can be updated (#10817) 1 year ago
Rubidium 9408ab4799 Codechange: only one '\0' is required 1 year ago
Rubidium 2ae7367024 Codechange: replace StrMakeValidInPlace with StrValid 1 year ago
Rubidium 4ca23a19b6 Cleanup: char-pointer variant of strtolower 1 year ago
PeterN b49bd86a46
Fix dec7ff6b0c: Dropdowns couldn't be closed by pressing the parent button. (#10954)
Since dropdowns self-close, the detection of re-clicking a dropdown
button no longer worked, as the dropdown is already closed.

Instead set (and then test) a flag on the parent widget to indicate that
the dropdown closed. This method avoids looping windows on every click.
1 year ago
Rubidium b2a8d8aea4 Codechange: use std::string for Windows' ISO code mangling 1 year ago
Rubidium a541b8217d Codechange: use fmt::format to build Squirrel error message 1 year ago
Rubidium 5e9a1eb790 Codechange: use fmt::format to construct error message 1 year ago
Rubidium 4de9b8a988 Codechange: use fmt::format to create desync dump savegames 1 year ago
Rubidium d5c0d3beb7 Codechange: unify the formatting of the game's caption 1 year ago
PeterN 9fa1984ef0
Codechange: IniGroup::GetItem() can now be const. (#10966) 1 year ago
PeterN f249715db3
Fix #10964: Missing FontConfig format for language. (#10965) 1 year ago
PeterN eda3defcb5
Codechange: Pass language for font detection as std::string. (#10964) 1 year ago
PeterN 7a0b6b7ddf
Codechange: Remove Freetype bits on Win32/OSX. (#10960)
These platforms have their own specific font rendering.
1 year ago
translators 316a434933 Update: Translations from eints
english (au): 6 changes by krysclarke
russian: 4 changes by Ln-Wolf
danish: 5 changes by bscargo
portuguese: 7 changes by azulcosta
1 year ago
Rubidium 617cacd542 Fix #10961, 52a7c69: incorrect order of parameters to gamelog revision constructor 1 year ago
Rubidium a47de4b2ab Cleanup: remove DRAW_STRING_BUFFER constant 1 year ago
Rubidium 96fef9f643 Codechange: allocate enough memory to layout the strings 1 year ago
Rubidium 1fa432ca92 Codechange: replace C-style string building with C++-style building 1 year ago
Rubidium ca1e34c121 Codechange: use std::string to build ScriptText's encoded text 1 year ago
Rubidium e32f0aa20b Cleanup: minimum string length for town name generator is not needed anymore 1 year ago
Rubidium edb21620ea Cleanup: remove unneeded checks on remaining buffer size 1 year ago
Rubidium affceea0ae Codechange: switch StringBuilder to use std::string as backend 1 year ago
Rubidium ce8933d63e Add: std::back_insert_iterator<std::string> Utf8Encode function 1 year ago
Rubidium 55dfca1936 Codechange: replace seprintf with C++ style formatting 1 year ago
Rubidium fbd71a9d72 Codechange: replace C-style string processing with C++-style for the listing callbacks 1 year ago
translators 433ec6b5bd Update: Translations from eints
korean: 2 changes by telk5093
russian: 2 changes by Ln-Wolf
finnish: 2 changes by hpiirai
turkish: 2 changes by EndChapter
french: 2 changes by glx22
portuguese: 2 changes by azulcosta
1 year ago
PeterN 64d6ad50f9
Codechange: Split GetItem with GetOrCreateItem. (#10952)
`IniGroup::GetItem()` returns nullptr if the item does not exist, but does not if the create parameter is set to true. Resolve CodeQL warnings with `GetOrCreateItem()` which returns a reference to the item instead.
1 year ago
Patric Stout 3b1407d240
Feature: allow to do a hostile takeover of an AI company (in singleplayer) (#10914)
With the removal of the share-system, you could no longer make an
AI disappear in a single player game. At least, not without going
into the console.
1 year ago
PeterN f814c86389
Codechange: Reorganise hotkey initialisation. (#10951)
Hotkeys are now initialized inline, and use std::vector instead of
separate static C-arrays and std::string instead of char *. The list end
marker is no longer required.
1 year ago
rubidium42 921f5afc4d Codechange: Apply suggestions from code review 1 year ago
Rubidium 2dd2b698d2 Codechange: convert C-style GetTownName API to std::string returning API 1 year ago
Rubidium 14915526ad Cleanup: remove stre-style GetString 1 year ago
Patric Stout 772729cc7d
Fix: when syncing width of GUI items, take padding into account (#10915) 1 year ago
Rubidium 15c75e6f45 Codechange: use std::array and std::string for high scores 1 year ago
Rubidium c158089eff Codechange: use C++ style methods to combine a Utf8Encoded character and a formatted string 1 year ago
PeterN 6ae6b65edb
Cleanup: Remove doubled statements. (#10944) 1 year ago
Rubidium a4bf45729a Change: move string validation (and assignment) to textbuf 1 year ago
Rubidium 4e39a58c59 Codechange: let town name generation use StringBuilder 1 year ago
translators 6a5ab4a9fb Update: Translations from eints
french: 3 changes by glx22
1 year ago
Rubidium 820fe8c621 Codechange: use std::string and concatenation when combining multiple formatted strings 1 year ago