Commit Graph

82 Commits (jgrpp)

Author SHA1 Message Date
Jonathan G Rennison 4fac6b295c Merge branch 'master' into jgrpp
# Conflicts:
#	.github/workflows/release-linux.yml
#	src/base_consist.h
#	src/blitter/32bpp_optimized.cpp
#	src/blitter/32bpp_optimized.hpp
#	src/blitter/32bpp_sse2.hpp
#	src/blitter/8bpp_optimized.hpp
#	src/gfx_func.h
#	src/industry_cmd.cpp
#	src/industrytype.h
#	src/linkgraph/linkgraphjob.cpp
#	src/mixer.cpp
#	src/newgrf_callbacks.h
#	src/openttd.cpp
#	src/os/macosx/macos.mm
#	src/os/windows/win32.cpp
#	src/pathfinder/npf/npf.cpp
#	src/road_cmd.cpp
#	src/saveload/afterload.cpp
#	src/saveload/saveload.h
#	src/saveload/vehicle_sl.cpp
#	src/sound.cpp
#	src/spritecache.cpp
#	src/spriteloader/spriteloader.hpp
#	src/station_map.h
#	src/timetable_cmd.cpp
#	src/timetable_cmd.h
#	src/timetable_gui.cpp
#	src/town_cmd.cpp
#	src/vehicle_cmd.cpp
#	src/vehicle_gui_base.h
#	src/video/opengl.cpp
#	src/video/opengl.h
#	src/viewport.cpp
5 months ago
Peter Nelson ddd609ce9b
Feature: Randomize direction of rail vehicle on build based on probability callback. (#11489)
This allows NewGRF authors to indicate that the game should randomly flip rail vehicles on build, without needing to use random bits nor duplicate sprites to handle it themselves.

To use this functionality, test for callback 162 (CBID_VEHICLE_BUILD_PROBABILITY)  and var10 = 0 (values other than 0 are reserved for future use), and return a value between 0 and 100 inclusive.

The return value is a percentage chance of reversing the vehicle. A value of 0 will always build a forward facing vehicle, and 100 will always build a reverse facing vehicle.
6 months ago
Jonathan G Rennison 87e4258fe3 Allow selecting individual ship parts in refit window
Add callback to name ship parts in refit window
1 year ago
Jonathan G Rennison ae99f667b0 NewGRF: Add generic town callback to set town zone radii 1 year ago
Jonathan G Rennison 4c1406a4b5 Add: NewGRF road stops 1 year ago
Michael Lutz 07c923eceb Feature: [NewGRF] Engine name callback.
(cherry picked from commit 05ed9f56fd)
1 year ago
Michael Lutz 05ed9f56fd Feature: [NewGRF] Engine name callback. 1 year ago
Jonathan G Rennison dbc55274e2 Debug: Show callback ID names in sprite dump 2 years ago
Jonathan G Rennison 23c472d2a0 Add support for road stop animation, availability callback
Add animation, callback mask, general flags properties
Add animation frame variables
2 years ago
S. D. Cloudt 13cc8a0cee Cleanup: Removed SVN headers 5 years ago
frosch c30e137685 (svn r26747) -Feature: [NewGRF] Advanced visual effects with multiple effect sprites independent of spawning model. 10 years ago
frosch 16b310d8ce (svn r24186) -Feature: [NewGRF] Callback to set industry production level on construction. (andythenorth) 12 years ago
rubidium fd559171b4 (svn r23527) -Codechange: unify colo(u)r as far as it goes 13 years ago
rubidium 3d88c74389 (svn r23526) -Codechange: unify cargos vs cargoes 13 years ago
frosch b98c7763de (svn r23146) -Change: [NewGRF v8] Make callback 22 return a probability to use instead of property 18. 13 years ago
frosch f97fa89f1a (svn r23137) -Change: [NewGRF v8] New result format for callback 16. 13 years ago
michi_cc 707b0f48e6 (svn r23114) -Feature: [NewGRF] Ambient sound effect callback. 13 years ago
michi_cc b9841bba81 (svn r23086) -Feature: [NewGRF] Callback to change refit cost depending on old and new cargo type. 13 years ago
michi_cc e094d7db62 (svn r23072) -Feature: [NewGRF] House callback 0x148. 13 years ago
michi_cc d579af11e8 (svn r22659) -Add: [NewGRF] Support for the land slope check callback for stations. 13 years ago
terkhen 4d7a413eda (svn r22591) -Doc: Callback 0x18 (AI purchase selection) is implemented for stations. 13 years ago
rubidium 61ff042460 (svn r21238) -Feature: [NewGRF] Support callback 0x10 for RVs and ships (Hirundo) 14 years ago
rubidium 5a503d505b (svn r21231) -Codechange: Generalize the naming of some settings and variables related to visual effects (Hirundo) 14 years ago
rubidium 7b16c7650b (svn r20670) -Add: support for action F
-Add: a window to select (NewGRF) objects
14 years ago
rubidium 3e67b4fe5f (svn r20667) -Codechange: implement the autoslope callback for objects 14 years ago
rubidium ca7fe458a2 (svn r20664) -Codechange: implement the land slope callback for objects 14 years ago
rubidium 60fe27db50 (svn r20662) -Codechange: implement object animation 14 years ago
rubidium ee8c37c3d9 (svn r20661) -Codechange: implement the "decide colour" callback for objects 14 years ago
rubidium 34da98f2b1 (svn r20647) -Codechange: update some of the object spec information 14 years ago
yexo 00902294b3 (svn r20373) -Feature: [NewGRF] callback 0x156 to use another name for airport layouts than the default "Layout x" 14 years ago
yexo d6fa76b044 (svn r20372) -Feature; [NewGRF] callback 0x155 to display extra information about an airport in the build gui 14 years ago
michi_cc fff8524fb9 (svn r20355) -Fix (r20353): Stale comment. 14 years ago
frosch 4bd32799f1 (svn r20286) -Codechange: Unify end of doxygen comments. 14 years ago
frosch ed4f806f1d (svn r20283) -Codechange: Unify start of doygen comments. 14 years ago
rubidium 398418b8fa (svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int 14 years ago
rubidium bc925c0016 (svn r19565) -Fix: some NewGRF callbacks were named incorrectly 14 years ago
yexo 7ca4c31cf5 (svn r19197) -Codechange: introduce animation callbacks for airport tiles 14 years ago
yexo 880fedc192 (svn r19195) -Codechange: actually draw newgrf airport tiles 14 years ago
rubidium 430ce19418 (svn r17558) -Feature [NewGRF]: callbacks for houses to disable drawing foundations and to disable slope changes, like industry tile callbacks 30 and 3C. 15 years ago
rubidium 962598451b (svn r17553) -Update: some documentation about the callbacks 15 years ago
rubidium 23252c99bb (svn r17547) -Feature: [NewGRF] Implement callback 145 (custom station rating) 15 years ago
rubidium 64bafcbe18 (svn r17534) -Codechange: unify the naming of callback masks/flags 15 years ago
rubidium 50e424ba24 (svn r17518) -Document: some of the callback 'masks' 15 years ago
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium c0a8d09ca7 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 16 years ago
peter1138 43121fc2cb (svn r15280) -Cleanup: ancient and vastly out of date comment... 16 years ago
belugas cef4103137 (svn r15172) -Feature: Allow a grf to customize house name via callback 0x14D, during Tile Inquiry process 16 years ago
rubidium 3b798599b6 (svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with. 16 years ago
rubidium d03994098b (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description. 16 years ago
frosch 173ac52da5 (svn r12820) -Documentation: Mark callbacks as 8 or 15 bit in 'newgrf_callbacks.h'. 16 years ago