summaryrefslogtreecommitdiff
path: root/main_gui.c
AgeCommit message (Collapse)Author
2005-04-16(svn r2209) - CodeChange: [ 1184348 ] Remove unused _newspaper_flag that was ↵Darkvater
supposed to be some ugly hack for chatting (gonewacko)
2005-04-14(svn r2201) - Fix: Crash in scenario-editor with terraforming out-of-map bounds.Darkvater
2005-04-13(svn r2192) - Add greater control to the 'message options' window. Now you ↵Darkvater
can turn off the telegraphc ticker sound for summarized messages, or turn off news-messages altogether (you get a red blot to notify you though). The [<][>] set the settings in one way, while clicking on the option itself, cycles it. This commit also 'fixes' bugs [1166973], [1121484] and patch [1169930]. - I also changed an order of strings from On, Off to Off, On, so this can be used ingame with the WWT_4 widget type. - Since the newssettings now take 2 bits per setting (off/summary/on) _news_display_opt is widened to 32 bits and the settings code changed slightly to accomodate for a maximum of 16 message-types.
2005-04-07(svn r2161) - Fix: When resizing a window, the button is also visibly depressedDarkvater
- CodeChange: Use images as arrows in the scenario-date scroller, looks better - Feature: Clicked buttons with images/text now visibly depress their contents when pressed (eg it really seems like the button is moving) - Fix: Fix sprite offsets of the arrow sprites in openttd.grf
2005-04-03(svn r2143) - Fix: [ 1175748 ] Wrong Button-Images in scenario-editors ↵Darkvater
landscape-tool (thanks chrishuebsch)
2005-04-03(svn r2141) - Fix: Keys now hopefully only activate the right windows. If ↵Darkvater
console/querybox/chatbox is open, all input goes there, if closed to game itself.
2005-04-03(svn r2140) - Fix: [ 1175726 ] Allows rails in scenario editor. Moved both ↵Darkvater
'A' autorail and 'L' Terraform toolbar to their REAL places instead of the global window.
2005-04-02(svn r2137) - CodeChange: Remove unnecessary preprocessor magicDarkvater
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-03-31(svn r2114) -Fix: fix menu with signlist in SEtruelight
2005-03-26(svn r2079) -Add: signlist, shows all signs in the map. Clicking on them, ↵truelight
and you go to the sign. Very needed for coop. You can find it under World Map.
2005-03-26(svn r2075) -Fix: added missing breaks in switchestruelight
-Fix: added const for a const variable
2005-03-24(svn r2046) -Codechange: moved all waypoint code to waypoint.c/waypoint.htruelight
-Codechange: rewrote some functions while moving waypoint-stuff -Add: added support for 64k waypoints -Fix: made the waypoint struct a bit more logic (no bit-fucking)
2005-03-12(svn r2004) - Fix: [ 1149487 ] Autosave ignoring settingsDarkvater
- Fix: [ 1153926 ] All my settings in vain... IGNORED! - Change: I hope I got it all right. Pressing 'New Game' (either choosing random or a preset scenario) and 'Create Scenario' will start a new game with the settings and difficulty in the intro menu. Using 'Load Game' and 'Play Scenario' will take the values from the savegame/scenario itself.
2005-02-22(svn r1901) - Fix: unwanted behaviour of the savegame dialog, as well as a ↵Darkvater
bug with a sloppy termination of a string. When any editbox is open, scrolling is disabled. If any new types of editboxes come up, please use SET/CLRBIT of _no_scroll with its unique identifier (ttd.h)
2005-02-21(svn r1894) - Codechange: cleaned up the console a bit, wholly unified ↵Darkvater
handling of text with that of editboxes - Codechange: Introduction of Textbuf struct which not only holds physical data as length but also pixel-constrains (width) and information about the caret - Codechange: Move Clipboard function to OS specific file. Currently only Windows has clipboard actions - Feature: Editboxes, console and exit screen also accept the numeric-enter as a yes - Feature: Navigation through text with cursor keys is possible, as well as arbitrary insertion (also paste) and deletion; both backspace and del keys. Functions DeleteTextBufferChar, InsertTextBufferChar and InsertTextBufferClipboard handle input and deletion. Navigation is done through MoveTextBufferPos. - Fix: OTTD crash when opening 'add server' editbox - CodeChange: fix up some stringwidth calculations in gfx.c. You can get the width in pixels of a character by calling GetCharacterWidth().
2005-02-13(svn r1867) Include tables/sprites.h only in files which need ittron
2005-02-13(svn r1866) -Fix: Intercepted generated maps with 0 towns on it. Currently ↵celestar
just an error() is called, some more graceful handling should be implemented later.
2005-02-11(svn r1861) Constify Get(Non)Sprite()tron
2005-02-10(svn r1854) Split GetSpritePtr() into GetSprite() for regular sprites ↵tron
(returning a Sprite*) and GetNonSprite() for "sprites" of type 0xFF (returning byte*)
2005-02-10(svn r1853) Move spritecache function declarations into a header of their ↵tron
own and use SpriteID as parameter type where appropriate
2005-02-07(svn r1840) Repel str_buffr and use local buffers where possibletron
2005-02-06(svn r1833) byte -> char transition: the resttron
2005-02-06(svn r1827) Next iteration of the byte -> char transition: some string ↵tron
drawing functions and buffers
2005-02-06(svn r1813) Declare functions implemented in strings.c in their own shiny ↵tron
new header (though i think some of these function don't belong into strings.c)
2005-01-30(svn r1734) - Fix: [ 1112253 ] hijacking of arrow keys, game also scrolled ↵darkvater
when it was out of focus (dominik)
2005-01-29(svn r1722) -Feature: Bigger maps - anyone?tron
2005-01-29(svn r1713) Split off several functions which query/set information about a ↵tron
single tile from map.h and put them into a seperate file tile.h
2005-01-28(svn r1703) - Fix: Scrolling with the arrow keys is now smooth and it now ↵dominik
also scrolls exactly in tile direction if e.g. up and left are pressed
2005-01-25(svn r1667) - Feature: Signs are now shown in the color of the player who ↵dominik
created them (Note: The player information is currently not stored in savegames. Upon loading a game the signs will all be gray again)
2005-01-24(svn r1653) -Fix: removed CTRL+A and CTRL+B cheats; thanks Hackykiddarkvater
-Removed executable bits on png files in media dir (svn pd svn:executable <file>)
2005-01-24(svn r1648) -Fix: server can now pause and unpause a game through the ↵darkvater
console. Use 'pause' and 'unpause'
2005-01-23(svn r1610) Remove trailing whitespace (last time ever, i hope)tron
2005-01-22(svn r1594) Convert all undefined parameter lists to (void) and add the ↵tron
appropriate warning flags in the Makefile
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-19(svn r1568) made an enum of train subtypes to make the code more readablebjarni
2005-01-16(svn r1545) Add TileHeight() which returns the height (not multiplied by 8)tron
Replace some direct references to _map_type_and_height with TileHeight()/IsTileType()
2005-01-16(svn r1536) Move GET_TILEHEIGHT, GET_TILETYPE and IS_TILETYPE to map.h, turn ↵tron
them into inline functions and add some asserts
2005-01-15(svn r1520) Trim 134 (!) lines with trailing whitespace ):tron
2005-01-15(svn r1515) -Removed the 'close ALL windows' from the toolbar since ↵darkvater
shift+del does this.
2005-01-14(svn r1514) -Fix: [1092474] little red box in scenario editor (Celestar). ↵darkvater
Error box is also shown in scenario editor for terraforming, thus solving the eternally-pulsating-tile problem.
2005-01-13(svn r1502) -Fix: [1101889] Crash under windows... stupid typo in ↵darkvater
player_gui.c ^ should've been & -Fix: in multiplayer clientlist can only be opened once
2005-01-13(svn r1497) -Fix: [1101179] Crash if generating land while industry window ↵darkvater
is open. This also happened for towns and the land information window -Added DeleteWindowByClass() function that deletes all windows of a given class
2005-01-12(svn r1487) -Fix: [1100736] wrong tooltip for place desert buttondarkvater
2005-01-12(svn r1486) -Codechange: moved all 'signs' stuff to signs.c/h and prepared ↵truelight
it for dynamic arrays
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-10(svn r1465) -Fix: [1099101] starting year patch goes out of range. Clamped ↵darkvater
year between 1920-2090 as wel as adding defines for it.
2005-01-07(svn r1414) Move TileIndex, TILE_MASK and GET_TILE_[XY] to map.h and turn ↵tron
the latter into inline functions names Tile[XY]
2005-01-03(svn r1353) -Fix: [1092707] placing rocks in scenario editor. You can place ↵darkvater
rocks on trees and vice versa
2005-01-03(svn r1349) -Fix: [1093485] Dissappearing rocks in Scenario Editordarkvater