summaryrefslogtreecommitdiff
path: root/table/sprites.h
AgeCommit message (Collapse)Author
2006-06-07(svn r5155) - Remove the bridge branch merge (revision r5070)tron
2006-06-02(svn r5070) Merged the bridge branchcelestar
-Feature: Bridges can now be placed above: Any railway track combination (excluding depots and waypoints) Any road combination (excluding depots) Clear tiles (duh), including fields Tunnel entrances Bridge heads Thanks to Tron for idea and implementation, KUDr for the yapf synchronization and many others for hours of testing There are still a number of visual problems remaining, especially when electric railways are on or under the bridge. DO NOT REPORT THOSE BUGS FOR THE TIME BEING please.
2006-05-31(svn r5055) -Fix: Correct some errors in the bridge sprite numberscelestar
2006-04-24(svn r4564) CodeChange : Constify the sprites of _cargo_types_base_valuesbelugas
2006-03-29(svn r4150) -Feature: Merged elrails into trunk. Thanks to Tron for lots of ↵celestar
code and proofreading, thanks to peter1138 for another lot of code and ideas.
2006-03-24(svn r4092) CodeChange : Named sprites instead of magic numbers plus ↵belugas
create/use helper macro/enum for recoloring scheme
2006-03-21(svn r4004) -CodeChange : Renaming sprites and functionsbelugas
2006-03-01(svn r3717) - [2cc] Add 2cc colour maps and use for newgrf engines requiring ↵peter1138
them. Currently the second colour is fixed to be the player's colour.
2006-02-01(svn r3510) Fiddle with whitespace and parenthesestron
2006-01-28(svn r3464) - Fix: restate some of the sprites in their old spaces. Was ↵Darkvater
missed out because the patch was so huge. Thanks to Tron for pointing out the command of diff to ignore whitespace-only changes (--diff-cmd diff -x -ub)
2006-01-26(svn r3447) - CodeChange: [ 1360866 ] station_land.h Naming ALL sprites. ↵Darkvater
Also replaced the SPTR_STATUE_GROUND by the more obvious SPR_CONCRETE_GROUND in unmovable_cmd.c. No functional changes except for commenting out PALETTE_RECOLOR_SPRITE in table/sprites.h. (Belugas)
2005-11-14(svn r3181) -Bracingtron
-Indentation -Whitespace -DeMorgan's Law -Test with NULL or 0 for non-booleans -'\0' instead of 0 for chars -Remove redundantly redundant comments (like DoFoo(); // Do foo) -Join multiple short lines with a single statement -Split single lines with multiple statements -Avoid assignments in if
2005-11-02(svn r3118) Name 3 palette modifiers properly (belugas)tron
2005-11-01(svn r3114) Close two gaps in the sprite array when loading openttd.grf. ↵tron
That's seven more free sprite slots, yay!
2005-10-31(svn r3108) Confine the use of SPR_OPENTTD_BASE to table/sprites.h by ↵tron
adding/using some sprite enums
2005-10-29(svn r3102) - Fix (regression): Newly added sprite had problems when ↵Darkvater
newgrf's where loaded. Thanks Tron for explaining what the problem was and how it should be solved.
2005-10-28(svn r3096) - Feature: 'HOME' icon to saveload dialogs that jumps to the ↵Darkvater
default save/load directory based on the dialog (added icon to openttd.grf, introduced FIOS_TYPE_DIRECT that allows arbitrary directory jumping). - Fix: on Win32 capitalize the drive-letter in the saveload dialog windows when it is first opened.
2005-10-22(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in ↵tron
comments, excess empty lines, minor other changes nothing spectacular, just some stuff, which piled up
2005-10-19(svn r3064) Replace some numbers by sprite namestron
2005-10-15(svn r3046) Replace some numbers with sprite names and fix a typo in the ↵tron
sprite list
2005-10-14(svn r3040) Don't deduce the cursor sprites when building rails from magic ↵tron
numbers, but fetch them from the central rail info array.
2005-10-13(svn r3037) Don't deduce the sprites for tunnels and level crossings from ↵tron
magic numbers, but fetch them from the central rail info array. This is a preparation step for electrified rails
2005-07-31(svn r2764) -Feature: Clone vehiclesbjarni
-This allows a player to clone an excisting vehicle of his own -[fix]: this uncovered an excisting bug in CmdBuildRailVehicle() where depots could build trains of the wrong track type. This is fixed -Thanks to Celestar for drawing the sprites and _luca_ for including them in openttd.grf
2005-07-28(svn r2736) -Codechange: De-mystified GfxDrawFillRect a bit, and used enums ↵celestar
from table/sprites.h. You can now change the number of bits used for sprites and switches in the SpriteSetup enum and the rest should work automagically. Can be used to increase the number of active sprites to 2^19 in case there are no colortables (recolor sprites) in any newgrf. We should possibly move the the colortables to an own list, but how to detect them in a newgrf.
2005-07-24(svn r2702) -Codechange: Cleaned up the sprite code and replaced many magic ↵celestar
numbers by enums. There remains work in gfx.c to move the "transparency" and "recolor" bits around to make space for more sprites. However, 2800 additional sprites can now be loaded. There also remains cleanup and Doxygen work on many of the header files.
2005-07-24(svn r2701) Insert Id tags into all source filestron
2005-07-04(svn r2516) - Feature: [pbs] Implement path-based-signalling. This allows ↵hackykid
multiple trains within the same signal block, provided their paths dont intersect. For this the block must have all exit and entry signals be pbs signals. Place these by ctrl-clicking 4 times on a normal signal. - Feature: [pbs] Implement autoplacement of pbs blocks, when a block has an entry and an exit pbs signal, covert the entire block to pbs. Can be turned off in the patch settings. - Feature: [pbs] Allow showing of reserved status by making the tracks darker, when the pbs debug level is at least 1.
2005-07-04(svn r2515) -Codechange: Removed a good deal of magic sprite numbers in the ↵celestar
rail drawing code, and placed neatly into arrays and enums. This also makes way to implement more railtypes without having to do tons of ugly hacks.
2005-06-06(svn r2424) - Fix: backport the smallmap_gui.c changes from the map/ branch ↵Darkvater
into trunk. This also implicitely fixes the bug where the game would crash in certain resolutions with certain minimap masks when dragged partly outside the game-area.
2005-06-06(svn r2421) - how come you didn't get committed you evil file? Be gone!Darkvater
2005-04-02(svn r2136) - Fix: [ 1174313 ] terrain hotkeys nonfunctional in scenario ↵Darkvater
editor (D,Q,W,E,R,T,Y,U fltr) - Fix: 'L' no longer opens ingame terraform bar in scenario editor bar, but the land generator one - Feature: [ 1095110 ] Create Lake and draggable Create Desert tools (initial implementation GoneWacko), also added sticky buttons to land generator and town generator - CodeChange: moved around some of the draggable tools, demystifying them - CodeChange: change CmdBuildCanal to allow for XANDY dragging not only X or Y (only scenario editor) - CodeChange: add some more enums to sprites. - TODO: merge most of the ingame and scenario editor land terraform code. This can only be done after OnClickButton function is changed so it also includes the backreference to the widget being clicked, postponed to after 0.4.0
2005-02-14(svn r1875) Effect vehicle overhaul: enumerate sprites, descriptive names ↵tron
for functions and miscellaneous improvements
2005-02-13(svn r1868) Improve readability of the bulldozer movement codetron
2005-01-19(svn r1571) Feature: Visually enhanced autorail placingdominik
When using the autorail tool, the rail pieces which are going to be build are highlighted. If a piece is shown in red, this indicates that the slope/rail combination is impossible. It does not tell you if the rail line construction might not be possible because of other obstacles, e.g. houses or water.
2005-01-11(svn r1479) -Added highscore chart (accessible from the difficulty window) ↵darkvater
with top5 companies for a given difficulty (select the difficulty in the menu) -Added endgame score on 1 jan 2051 where you are added to the highscore if sufficiently large points have been accumulated. Game is paused while -These values are saved in hs.dat; added read/write functions for it -Added code to delete all windows to show charts. There is one issue left: somehow a news-gui pops up in front of the the chart at the end of the game.
2005-01-04(svn r1369) -Feature(ish): Added sprites for up/down and left/right arrows. ↵darkvater
Anywhere where there are horizontal scrollers these are now left/right arrows
2005-01-03(svn r1343) -Fix: [Graphic] Autorail icon is now correct (Darkvater)truelight
-Fix: [Graphic] Added resize icon (tnx tokai)
2004-12-23(svn r1254) - Fix: [ 993500 ] High bridge rendering errordominik
- Changed button to open landscaping toolbar
2004-12-15(svn r1121) -Feature: Added sticky windows feature. A small pin allows the ↵darkvater
user to set the window as undeletable and can only be closed by hand. As an example the viewport window has been stickied (thanks to Neko-San) -To use the feature add WDF_STICKY_BUTTON to the widget description and update all widget-ID's since sticky button will be widget 2.
2004-12-12(svn r1030) Some toolbar icons are arranged differently:dominik
- Landscaping buttons have to be accessed from the landscaping toolbar - Landscaping toolbar can be opened from all other toolbars - The order of buttons in the docks toolbar now matches the other toolbars - Landscaping toolbar has new keyboard shortcuts
2004-12-09(svn r1001) -Changed the title name to OpenTTD. Don't know how this was ↵darkvater
missed all this time; but is fixed now.
2004-12-09(svn r999) New icons for the network interface, newgrf gui and the tiny eurodominik
2004-11-26(svn r828) Everyone welcome table/sprites.h in trunk - so far not in use ↵pasky
besides enum AnimCursors migrated from viewport.h and tiny fragment of enum Sprites migrated from ttd.h (we should slowly convert trunk to use the symbolic names instead of sprite numbers too to reduce the delta to map). Ported from the map branch, where the work was done by Darkvater, Celestar and Tron.