Commit Graph

151 Commits (jgrpp)

Author SHA1 Message Date
rubidium42 2e0297b0fa Add: GetString that returns std::string instead of filling a passed buffer 3 years ago
rubidium42 6bca9e090d Codechange: add SetDParamStr that accepts std::string& 3 years ago
Jonathan G Rennison 7154f8859d Merge tag '1.11.0-beta1' into jgrpp
# Conflicts:
#	src/console_cmds.cpp
#	src/gfx_func.h
#	src/industry.h
#	src/lang/czech.txt
#	src/lang/estonian.txt
#	src/lang/german.txt
#	src/lang/indonesian.txt
#	src/lang/japanese.txt
#	src/lang/norwegian_bokmal.txt
#	src/lang/russian.txt
#	src/lang/slovak.txt
#	src/saveload/saveload.h
#	src/station_gui.cpp
#	src/town_gui.cpp
#	src/vehicle_gui.cpp
#	src/video/sdl2_v.cpp
#	src/waypoint_gui.cpp
3 years ago
Jonathan G Rennison 6c3e5642f8 Merge branch 'master' into jgrpp
# Conflicts:
#	cmake/CompileFlags.cmake
#	src/crashlog.cpp
#	src/fileio.cpp
#	src/fileio_func.h
#	src/fios_gui.cpp
#	src/ini_load.cpp
#	src/ini_type.h
#	src/lang/english.txt
#	src/lang/german.txt
#	src/lang/korean.txt
#	src/network/network_client.cpp
#	src/order_base.h
#	src/order_cmd.cpp
#	src/os/windows/win32.cpp
#	src/road_cmd.cpp
#	src/saveload/saveload.cpp
#	src/saveload/saveload.h
#	src/settings.cpp
#	src/station_cmd.cpp
#	src/stdafx.h
#	src/table/settings.ini
#	src/tree_cmd.cpp
#	src/tree_gui.cpp
#	src/vehicle_base.h
#	src/video/cocoa/cocoa_v.mm
#	src/video/cocoa/event.mm
#	src/video/cocoa/wnd_quartz.mm
#	src/viewport.cpp
#	src/widgets/tree_widget.h
3 years ago
Patric Stout 98400974a9 Codechange: nobody was using "str" parameter, so remove it 3 years ago
Charles Pigott 860c270c73 Codechange: Replace assert_compile macro with static_assert 3 years ago
Jonathan G Rennison 0fa37bcad9 Add function to get GRF ID of string ID 4 years ago
Jonathan G Rennison cbdd9f84d8 Merge branch 'master' into jgrpp
# Conflicts:
#	src/console_gui.cpp
#	src/lang/korean.txt
#	src/video/sdl2_v.cpp
#	src/video/sdl2_v.h
#	src/window.cpp
#	src/window_gui.h
5 years ago
S. D. Cloudt 13cc8a0cee Cleanup: Removed SVN headers 5 years ago
Jonathan G Rennison dbc5f1baed Merge branch 'master' into jgrpp-nrt
# Conflicts:
#	src/fontcache.cpp
#	src/game/game_text.cpp
#	src/lang/korean.txt
#	src/os/macosx/crashlog_osx.cpp
#	src/os/windows/crashlog_win.cpp
#	src/station_cmd.cpp
#	src/viewport.cpp
5 years ago
Michael Lutz d2ed426077 Codechange: [Win32] Pass a native GDI font description around when we have one, instead of repeatedly guessing the font. 5 years ago
Jonathan G Rennison bd2fdde759 Merge branch 'master' into jgrpp
# Conflicts:
#	src/core/sort_func.hpp
#	src/rail_cmd.cpp
#	src/timetable_cmd.cpp
#	src/video/sdl_v.cpp
#	src/video/win32_v.cpp
5 years ago
glx 8899272614 Codechange: use std::vector for _language_dropdown 5 years ago
Jonathan G Rennison 674732cd68 Merge: Codechange: Use null pointer literal instead of the NULL macro 5 years ago
Henry Wilson 7c8e7c6b6e Codechange: Use null pointer literal instead of the NULL macro 5 years ago
Jonathan G Rennison a6168dd2f0 Merge branch 'master' into jgrpp
# Conflicts:
#	src/saveload/company_sl.cpp
7 years ago
frosch 2bb80d280c (svn r27758) -Change: Increase the maximum number of GameScript texts to 64k, and NewGRF texts to 512k. 7 years ago
frosch ce32ca4dc6 (svn r27758) -Change: Increase the maximum number of GameScript texts to 64k, and NewGRF texts to 512k. 7 years ago
frosch a56e2bccd0 (svn r27756) -Codechange: Add StringTab enum 7 years ago
frosch 49b940f69c (svn r27756) -Codechange: Add StringTab enum 7 years ago
frosch f4da8ece0c (svn r27755) -Codechange: Move TAB_SIZE to strings_type.h and use it consistently. 7 years ago
frosch b54a79f13e (svn r27755) -Codechange: Move TAB_SIZE to strings_type.h and use it consistently. 7 years ago
frosch 9ad09627ad (svn r27754) -Codechange: Add GetStringTab(), GetStringIndex() and MakeStringID() to access the structure of StringIDs. 7 years ago
frosch 02967c3c08 (svn r27754) -Codechange: Add GetStringTab(), GetStringIndex() and MakeStringID() to access the structure of StringIDs. 7 years ago
Jonathan G Rennison 8ec1b2200e Change tracerestrict weight ratio properties to use decimals, and the weight unit.
Add {POWER_WEIGHT_RATIO} and {FORCE_WEIGHT_RATIO} string codes.
8 years ago
frosch 5ab39cc651 (svn r26238) -Codechange: Use StringParameters::GetDataLeft to check for left space in the param array. 11 years ago
frosch 68c8aa93cd (svn r26238) -Codechange: Use StringParameters::GetDataLeft to check for left space in the param array. 11 years ago
frosch bc86bf9b12 (svn r26237) -Cleanup: Remove unused SCC_STRING_ID. 11 years ago
frosch cb6aee2f27 (svn r26237) -Cleanup: Remove unused SCC_STRING_ID. 11 years ago
frosch ce110eed32 (svn r25313) -Fix: Do not assume '8' to be the broadest digit, but test all of them. 11 years ago
frosch ddf817e8f3 (svn r25313) -Fix: Do not assume '8' to be the broadest digit, but test all of them. 11 years ago
frosch b533523258 (svn r24801) -Codechange: Add functions to set integral DParams to suitable values for size computations. 12 years ago
frosch eb20798aae (svn r24801) -Codechange: Add functions to set integral DParams to suitable values for size computations. 12 years ago
yexo 2f042ea198 (svn r24593) -Fix [FS#5333]: crash when a gamescript provided too many parameters to a GSText object 12 years ago
yexo c0462c034e (svn r24593) -Fix [FS#5333]: crash when a gamescript provided too many parameters to a GSText object 12 years ago
michi_cc 76344163c7 (svn r23945) -Fix: Better rounding when converting internal speed to displayed speed. 12 years ago
michi_cc b1471b4ec2 (svn r23945) -Fix: Better rounding when converting internal speed to displayed speed. 12 years ago
rubidium c02aabf1b8 (svn r23644) -Fix [FS#4899]: prevent game scripts using StringIDs that are not coming from themselves, so the game script doesn't "accidentally" try to display an invalid string or try to display a town name in from an unknown town name generator 13 years ago
rubidium 9d7aec3fe7 (svn r23644) -Fix [FS#4899]: prevent game scripts using StringIDs that are not coming from themselves, so the game script doesn't "accidentally" try to display an invalid string or try to display a town name in from an unknown town name generator 13 years ago
rubidium c06a3555fb (svn r23478) -Codechange: add a method to copy string parameters *and* its raw strings 13 years ago
rubidium 87045ae4ee (svn r23478) -Codechange: add a method to copy string parameters *and* its raw strings 13 years ago
rubidium 462b875b4a (svn r23276) -Codechange: add the answer for the question whether we're looking for monospace fonts in the searcher 13 years ago
rubidium e82325e5c6 (svn r23276) -Codechange: add the answer for the question whether we're looking for monospace fonts in the searcher 13 years ago
rubidium 0a4a75b0af (svn r23273) -Codechange: allow passing a MissingGlyphSearcher to CheckForMissingGlyphs (default to the language pack strings) 13 years ago
rubidium 1713d1ad3e (svn r23273) -Codechange: allow passing a MissingGlyphSearcher to CheckForMissingGlyphs (default to the language pack strings) 13 years ago
rubidium 4e1c4f9079 (svn r23267) -Codechange: unify the font name setting of the font cache 13 years ago
rubidium 2ce44dc201 (svn r23267) -Codechange: unify the font name setting of the font cache 13 years ago
rubidium 447884fddb (svn r23265) -Codechange: replace the setfallbackfont callback function with a class to call back 13 years ago
rubidium e3905eecbb (svn r23265) -Codechange: replace the setfallbackfont callback function with a class to call back 13 years ago
rubidium 881d6d25fd (svn r23242) -Codechange: allow ignoring the sprite font completely when checking whether the font supports a language 13 years ago
rubidium 54dc2babe4 (svn r23242) -Codechange: allow ignoring the sprite font completely when checking whether the font supports a language 13 years ago
yexo 42e40a2ab0 (svn r23042) -Codechange: make case_index an explicit parameter of GetStringWithArgs instead of hiding it in the stringid parameter 13 years ago
yexo ddaa502c00 (svn r23042) -Codechange: make case_index an explicit parameter of GetStringWithArgs instead of hiding it in the stringid parameter 13 years ago
rubidium 46c242b1dc (svn r22385) -Fix [FS#4603]: strnatcmp is in string.cpp, so it ought to be declared in string_func.h. 13 years ago
rubidium 6cc9a2884d (svn r22385) -Fix [FS#4603]: strnatcmp is in string.cpp, so it ought to be declared in string_func.h. 13 years ago
frosch f3ea5524d2 (svn r22313) -Cleanup (r22312): Remove some dead code. 13 years ago
frosch 40d7a2da71 (svn r22313) -Cleanup (r22312): Remove some dead code. 13 years ago
yexo 0e17cbc9f8 (svn r22258) -Codechange: introduce a wrapper class to clean up the arguments to FormatString 13 years ago
yexo 210d58ac7c (svn r22258) -Codechange: introduce a wrapper class to clean up the arguments to FormatString 13 years ago
alberth f65a9a5515 (svn r21593) -Codechange: endif comment correcttions. 14 years ago
alberth 0b0127b13d (svn r21593) -Codechange: endif comment correcttions. 14 years ago
yexo 475ac872c9 (svn r21444) -Codechange: compute the type of elements in the argv string array on the fly and compare it with the type set by strgen 14 years ago
yexo 510f875265 (svn r21444) -Codechange: compute the type of elements in the argv string array on the fly and compare it with the type set by strgen 14 years ago
yexo 12e0f28229 (svn r21440) -Codechange: pass a pointer to just past the end of the argv array around in FormatString and friends 14 years ago
yexo 6c32eef05d (svn r21440) -Codechange: pass a pointer to just past the end of the argv array around in FormatString and friends 14 years ago
terkhen 4b944cb13e (svn r21343) -Add: Function that compares strings using case insensitive natural sort. 14 years ago
terkhen 5139fa9a23 (svn r21343) -Add: Function that compares strings using case insensitive natural sort. 14 years ago
rubidium 8aba642ed5 (svn r21164) -Codechange: replace the hardcoded array of language metadata with a list 14 years ago
rubidium 9c792914f0 (svn r21164) -Codechange: replace the hardcoded array of language metadata with a list 14 years ago
rubidium 68b94e61e0 (svn r21163) -Codechange: pass a LanguageMetadata struct instead of its index to ReadLanguagePack, and simplify one of its callers 14 years ago
rubidium 97735fca1e (svn r21163) -Codechange: pass a LanguageMetadata struct instead of its index to ReadLanguagePack, and simplify one of its callers 14 years ago
rubidium 30637a8340 (svn r21157) -Codechange: remove information about the text direction out of the language "list" 14 years ago
rubidium 5ec2bcc0d9 (svn r21157) -Codechange: remove information about the text direction out of the language "list" 14 years ago
rubidium d5d2354296 (svn r17790) -Feature: translatable base sound/graphics set descriptions 15 years ago
rubidium 0ee61a16ef (svn r17790) -Feature: translatable base sound/graphics set descriptions 15 years ago
smatz 1da745c9ad (svn r17612) -Feature: possibility to choose (randomise or enter custom) town name before its creation (original patch by Terkhen) 15 years ago
smatz ad2c641bca (svn r17612) -Feature: possibility to choose (randomise or enter custom) town name before its creation (original patch by Terkhen) 15 years ago
rubidium ca91a97826 (svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary 15 years ago
rubidium 2e5596025c (svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary 15 years ago
rubidium 45e3141444 (svn r17526) -Codechange: use QSortT instead of qsort for sorting the language list in the network GUI 15 years ago
rubidium fd04d4ed00 (svn r17526) -Codechange: use QSortT instead of qsort for sorting the language list in the network GUI 15 years ago
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium 99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
alberth 59c48fee8b (svn r16946) -Doc: Adding docs for some string parameter manipulation functions. 15 years ago
alberth 8dd249469a (svn r16946) -Doc: Adding docs for some string parameter manipulation functions. 15 years ago
smatz 7368c740a6 (svn r14828) -Codechange: move most of save/load-specific code to separate files 16 years ago
smatz 91233ea596 (svn r14828) -Codechange: move most of save/load-specific code to separate files 16 years ago
rubidium e635df8d53 (svn r14410) -Codechange: one can't inject a negative number of parameters, so enforce this by using a uint. 16 years ago
rubidium fc1ad68714 (svn r14410) -Codechange: one can't inject a negative number of parameters, so enforce this by using a uint. 16 years ago
rubidium ab234cf90c (svn r13715) -Fix [FS#2129]: C-like strings had to be rebound each time they were printed, otherwise the text could change due to the few number of slots that could be used to bind.
-Codechange: remove all BindCString and related functions and replace it by RAW_STRING which prints the C-string raw pointer that is on the 'print stack'.
16 years ago
rubidium 5a94972c2d (svn r13715) -Fix [FS#2129]: C-like strings had to be rebound each time they were printed, otherwise the text could change due to the few number of slots that could be used to bind.
-Codechange: remove all BindCString and related functions and replace it by RAW_STRING which prints the C-string raw pointer that is on the 'print stack'.
16 years ago
rubidium 49cfba55bb (svn r12782) -Codechange: remove some functions from functions.h and do not statically 'waste' memory when the old name array is not needed anymore. 16 years ago
rubidium 136e26925e (svn r12782) -Codechange: remove some functions from functions.h and do not statically 'waste' memory when the old name array is not needed anymore. 16 years ago
peter1138 fb8973c64a (svn r12015) -Fix [FS#1716] (Revert r11422): Patch in FS#1430 avoided instead of fixed the problem. GetStringWithArgs() discards information that SCC_GENDER_LIST needs to work. Now use pointers to retrieve GRF strings, so that GetStringPtr() will work correctly. This is advantageous as now no buffer copy is made when using all GRF strings. 17 years ago
peter1138 3e017833b2 (svn r12015) -Fix [FS#1716] (Revert r11422): Patch in FS#1430 avoided instead of fixed the problem. GetStringWithArgs() discards information that SCC_GENDER_LIST needs to work. Now use pointers to retrieve GRF strings, so that GetStringPtr() will work correctly. This is advantageous as now no buffer copy is made when using all GRF strings. 17 years ago
glx 4f31704e2e (svn r11896) -Fix (r11886): a missing const broke compilation with MSVC 17 years ago
glx 82727a8713 (svn r11896) -Fix (r11886): a missing const broke compilation with MSVC 17 years ago
glx 69c18efdca (svn r11886) -Add: sort the strings in languages dropdown 17 years ago
glx 2ad9edda91 (svn r11886) -Add: sort the strings in languages dropdown 17 years ago
rubidium 433a9f3c09 (svn r11675) -Codechange: split the string types from the string functions. 17 years ago