summaryrefslogtreecommitdiff
path: root/src/script/api
AgeCommit message (Collapse)Author
2021-05-27Codechange: let SettingDesc extend SettingDescBaserubidium42
2021-05-27Codechange: just pass the SettingDesc to SetSettingValue and remove ↵rubidium42
distinction between (non)company
2021-05-16Codechange: [Network] Let NetworkClientInfo use std::stringrubidium42
2021-05-15Change: Use gender-neutral pronounsrubidium42
2021-05-13Codechange: clean up C-string support from settingsrubidium42
2021-05-13Codechange: Replace TILE_AREA_LOOP with range-based for loopsglx22
2021-05-08Change: Use gender-neutral pronouns in console command messages (and ↵William Davis
comments) (#9203)
2021-04-29Codechange: Replace FOR_ALL_CARGOSPECS with range-based for loopsglx22
2021-04-29Fix: [MinGW] Set minimum OS version to Windows XP (#9135)Loïc Guilloux
2021-04-22Codechange: Replace CMD_SET_GROUP_REPLACE_PROTECTION with generic ↵peter1138
CMD_SET_GROUP_FLAG.
2021-04-22Codechange: Replace Group::replace_protection with Group::flagspeter1138
2021-03-14Change: Heading for 1.12 now (#8862)Patric Stout
2021-02-26Fix 02e770ff: allow estimating CloneVehicle if short on money (#8748)Patric Stout
CheckCompanyHasMoney() was also executed when not using DC_EXEC, resulting in an error about shortage of money instead of the estimation. This mostly is a problem for AI players, as they will have no way to know how much it would have cost.
2021-02-14Feature: [GS] Allow non-question type windows to have no buttonsdP
2021-01-22Feature: Allow GameScripts to add additional text to Industry view windowdP
2021-01-22Feature: Add tile parameter for GSCompany.ChangeBankBalance to show text ↵Pavel Stupnikov
effect if needed (#8573)
2021-01-10Fix 218f40e: Warning about 32-bit shift implicitly converted to 64 bitsSamuXarick
2021-01-09Add: [Script] ScriptCargo::GetName, to get the human readable name of a ↵Patric Stout
cargo (#8544) Of course this translates into AICargo.GetName() for AIs and GSCargo.GetName() for GameScripts.
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2020-12-28Fix #8453: [Script] Don't truncate loan variation to 32bitglx22
2020-12-27Codechange: Replace FOR_VEHICLE_ORDERS with range-based for loopsglx22
2020-12-25Codechange: use C++11 constructs for for-each loops (#8432)Patric Stout
2020-12-25Codechange: move block a bit lower to increase readabilityPatric Stout
It was rather confusing that "library_name" was calculated, and then not used to do the FindLibrary() call. Flipping those two blocks around makes it a bit more sane to read.
2020-12-25Doc: for over 10 years now, we do not load the exact AI version first (#8431)Patric Stout
See commit fae34ee7 for details. The documentation simply never got updated.
2020-12-22Feature: Set exclusive access to industry from GS (#8115)Pavel Stupnikov
2020-12-22Feature: Influence industry production changes from GS (#7912)Niels Martin Hansen
2020-12-13Add: [CMake] Option to only build tools/docsglx22
2020-12-12Add: [CMake] targets to generate documentationglx22
2020-09-25Codechange: Make codestyle for CMake files consistent for 'control' statementsCharles Pigott
2020-07-16Change: rewrote squirrel_export in CMakeglx
2020-07-16Change: rewrote generate_widget in CMakeglx
2020-07-10Update: Disuse of STR_ERROR_INCOMPATIBLE_ROADTrevorShelton
2020-06-27Codechange: Make sure script enums are the same size as their normal ↵Charles Pigott
counterparts
2020-06-27Fix: Warning about using the wrong enum typeCharles Pigott
2020-06-05Add: introduce CMake for project managementPatric Stout
CMake works on all our supported platforms, like MSVC, Mingw, GCC, Clang, and many more. It allows for a single way of doing things, so no longer we need shell scripts and vbs scripts to work on all our supported platforms. Additionally, CMake allows to generate project files for like MSVC, KDevelop, etc. This heavily reduces the lines of code we need to support multiple platforms from a project perspective. Addtiionally, this heavily improves our detection of libraries, etc.
2020-06-01Add: [Script] Native priority queue; useful e.g. for pathfinders.Michael Lutz
2020-05-28Cleanup: Correct typographic errors in code comments.TechGeekNZ
2020-05-27Fix: Compilation warnings in story_gui and script_story_pageJonathan G Rennison
See: #7896
2020-05-22Feature: Push-buttons on storybook pages (#7896)Niels Martin Hansen
Allow more direct player-initiated interaction for Game Scripts, by letting the GS put push-buttons on storybook pages. These buttons can either trigger an immediate event, or require the player to first select a tile on the map, or a vehicle. Additionally this reworks how the storybook pages are layouted and rendered, to allow for slightly more complex layouts, and maybe speeding drawing up a bit.
2020-05-06Codechange: Use a dynamic copyright yearglx
2020-04-26Codechange: [Script] Improve copying a list into another empty list.Michael Lutz
2020-04-16Fix: [Script] ScriptMarine::AreWaterTilesConnected failed for aqueducts (#8074)SamuXarick
2020-03-31Doc: [Script] Make it clear random_deviation and CONFIG_RANDOM range upper ↵SamuXarick
bounds are inclusive
2020-03-30Fix #8039: [AI/GS] SetOrderFlags and GetOrderDestination didn't work for oil ↵SamuXarick
rigs
2020-03-14Fix: [AI/GS] Consider neutral station setting when creating tile listsSamuXarick
2020-03-13Fix: [AI/GS] CanBuildConnectedRoadPartsHere neighbours tiles were at times ↵SamuXarick
incorrect
2020-02-22Fix #7998: Crash when scripts tried to access companies with invalid IDs.frosch
2020-02-19Doc: [Script] Add a note about how wagon connectivity works for scriptsCharles Pigott
2020-02-08Change: Heading for 1.11 nowglx
2020-01-15Add: [Doxygen] Add the current version of documentation in header (#7940)Patric Stout
While at it, renamed the project names to reflect how we currently refer to them.