Commit Graph

5689 Commits

Author SHA1 Message Date
glx b4b700a789 (svn r15865) -Codechange: New widgets for company finances windows 2009-03-27 22:59:43 +00:00
glx 7229d7d114 (svn r15864) -Codechange: add some 'invisible' widgets on company finances window, and use them to determine where to draw strings instead using some magic values 2009-03-27 01:55:25 +00:00
smatz 47036cb49e (svn r15863) -Fix (r15791): company money and game date strings were swapped on the statusbar 2009-03-26 22:13:00 +00:00
yexo 84b632d60f (svn r15862) -Codechange: New widgets for the road, rail and ship depot guis. 2009-03-26 21:12:14 +00:00
yexo d17083e429 (svn r15861) -Codechange: Add NWID_HORIZONTAL_LTR that forces the ordering from left-to-right. 2009-03-26 20:39:04 +00:00
frosch 44351cdc57 (svn r15860) -Add: AIRoad::GetRoadVehicleTypeForCargo() to tell whether a certain cargo needs a bus- or a truckstop. 2009-03-26 19:45:45 +00:00
frosch 19b47c1e89 (svn r15859) -Documentation: Meaning of AICargo::CC_PASSENGERS wrt. bus- and truckstops, and meaning of AICargo::IsFreight() wrt. freight train weight multiplier. 2009-03-26 19:44:13 +00:00
yexo 9061cd8b18 (svn r15858) -Codechange: New widgets for the road toolbars. 2009-03-26 18:55:42 +00:00
translators 350e4683b3 (svn r15857) -Update: WebTranslator2 update to 2009-03-26 18:44:31
arabic_egypt - 8 fixed by khaloofah (8)
danish     - 4 changed by beruic (4)
dutch      - 1 changed by Excel20 (1)
icelandic  - 25 fixed by scrooge (25)
luxembourgish - 10 fixed by Gubius (10)
polish     - 1 fixed by xaxa (1)
romanian   - 1 fixed, 1 changed by kkmic (2)
welsh      - 4 fixed by PlayDead (4)
2009-03-26 18:44:41 +00:00
glx b2cce8009e (svn r15856) -Fix (r15819): NWidgetLeaf constructor don't use the provided window caption string 2009-03-26 16:23:25 +00:00
glx 9965f02827 (svn r15855) -Codechange: complete the company finances window widget enum and remove unneeded magic in large window definition 2009-03-26 02:02:11 +00:00
yexo 381a20d841 (svn r15854) -Codechange: New widgets for build tree window. 2009-03-25 22:07:25 +00:00
yexo 6b095a218b (svn r15853) -Codechange: New widgets for the waypoint gui. 2009-03-25 21:38:05 +00:00
yexo 809e4f398c (svn r15852) -Codechange: New widgets for the AI windows. 2009-03-25 21:35:53 +00:00
rubidium f3262c76f0 (svn r15851) -Fix (r15849): compile failure when there's no freetype... 2009-03-25 21:35:22 +00:00
rubidium 89ceed55bf (svn r15850) -Codechange: replace some magic constants with the less magic line height constant 2009-03-25 20:16:09 +00:00
rubidium e8d76e79ee (svn r15849) -Codechange: provide easy access to the real height of the used fonts 2009-03-25 20:01:34 +00:00
peter1138 28d3123dfd (svn r15848) -Feature: Add autoclean_novehicles setting which will, when autoclean_companies is true, remove any company with no vehicles and no active client after autoclean_novehciles-months. 2009-03-25 16:30:33 +00:00
rubidium 2052850425 (svn r15847) -Fix (r15837): the 'title' text of the music gui would be drawn big and in blue instead of small and in black 2009-03-25 14:21:50 +00:00
rubidium 3e979be390 (svn r15846) -Fix: shuffle button text alignment was based on the wrong widget 2009-03-25 14:15:34 +00:00
peter1138 27714cacc5 (svn r15845) -Fix: Ancient comments 2009-03-25 14:03:29 +00:00
rubidium 3e93f8adda (svn r15844) -Codechange: allow text alignment to be forced so the console and ai debug output don't get swapped (those are untranslateable anyways) 2009-03-25 01:10:24 +00:00
rubidium 4a500bbcdb (svn r15843) -Codechange: with RTL the caret would always be drawn at the end of the textbox. 2009-03-25 00:28:57 +00:00
rubidium 4ad9dda5a0 (svn r15842) -Codechange: make DrawSortButtonState RTL. 2009-03-25 00:21:22 +00:00
rubidium 86b97f3127 (svn r15841) -Fix: the saveload window could draw directory partly outside the window 2009-03-25 00:16:28 +00:00
rubidium 716fa8b501 (svn r15840) -Codechange: complete the game option window widget enum and unify the naming. 2009-03-25 00:08:47 +00:00
rubidium 283b5bd27c (svn r15839) -Fix: high score text was (partly) off-screen when using RTL and the window was wider than 640 pixels 2009-03-24 22:18:40 +00:00
rubidium 4546be7e90 (svn r15838) -Fix: MSVC 64 bits warnings 2009-03-24 22:00:11 +00:00
rubidium 5c44bb6b63 (svn r15837) -Codechange: support SETX(Y) with RTL text, swap alignment for RTL text. 2009-03-24 21:23:56 +00:00
rubidium 8cba245791 (svn r15836) -Fix [FS#2762]: acceptance not shown in the station window (swapping top and bottom isn't a great idea) 2009-03-24 20:23:47 +00:00
yexo 84fb615344 (svn r15835) -Codechange: Prevent using the return value of DrawString as much as possible. 2009-03-24 20:03:02 +00:00
translators 306239ee3e (svn r15834) -Update: WebTranslator2 update to 2009-03-24 18:51:22
bulgarian  - 13 fixed by Ar4i (13)
korean     - 2 changed by dlunch (2)
latvian    - 2 fixed by silentKnight (2)
luxembourgish - 14 fixed by Gubius (14)
polish     - 22 fixed by xaxa (22)
2009-03-24 18:51:30 +00:00
rubidium 2347c41840 (svn r15833) -Fix: alignment of up/down arrows and closebox when in RTL 'view' 2009-03-23 22:20:23 +00:00
rubidium c9e2e22bc0 (svn r15832) -Codechange: improve the aligning of right aligned/centered strings 2009-03-23 14:10:54 +00:00
smatz abff5eacbc (svn r15831) -Fix: make sure house class/ID counters don't overflow 2009-03-23 14:09:05 +00:00
smatz c299bac5be (svn r15830) -Codechange: don't use fixed size of array in news_gui.cpp and news_func.h 2009-03-23 11:48:05 +00:00
yexo c91f965f08 (svn r15827) -Fix (r15823): line still was a bit too long 2009-03-23 00:15:35 +00:00
yexo b61a681f02 (svn r15825) -Codechange: remove the WWT_DROPDOWNIN widget type and replace it with WWT_DROPDOWN. 2009-03-23 00:08:59 +00:00
rubidium 4012549c5e (svn r15824) -Fix: determine the actual length of the strings to draw in the viewport 2009-03-22 23:54:36 +00:00
yexo 3b231810ee (svn r15823) -Codechange: prepare the WWT_FRAME and WWT_DROPDOWN(IN) widget types for rtl languages. 2009-03-22 23:44:53 +00:00
rubidium e25b2f5d60 (svn r15822) -Codechange: replace some magic numbers and improve alignment of the start server window. 2009-03-22 23:38:29 +00:00
peter1138 216a8eaac6 (svn r15821) -Fix (r15813): Wrong widget selection prevented drop down label showing in vehicle list windows. Instead of drawing the label ourselves we can set the dropdown's data property to the string to draw. 2009-03-22 21:56:40 +00:00
alberth 6567a29e18 (svn r15820) -Codechange: Some windows using nested widgets 2009-03-22 21:16:57 +00:00
alberth 12a31f3d5c (svn r15819) -Add: Nested widgets framework 2009-03-22 21:15:45 +00:00
rubidium 56e7d2944b (svn r15818) -Fix [FS#2752]: some (newer) GCCs have trouble compiling the Win32 specific part of fontcache.cpp; jumps across variable declarations (Maeyanie) 2009-03-22 21:07:55 +00:00
alberth 2fe151bd92 (svn r15817) -Codechange: Make room for additional widget types (Rubidium) 2009-03-22 18:46:56 +00:00
translators dcf7d05a66 (svn r15816) -Update: WebTranslator2 update to 2009-03-22 18:37:40
english_US - 3 fixed by WhiteRabbit (3)
german     - 2 changed by planetmaker (2)
japanese   - 43 fixed, 2 changed by nex259 (45)
portuguese - 1 fixed by SnowFlake (1)
romanian   - 1 fixed by stykat (1)
2009-03-22 18:37:47 +00:00
rubidium 9e1cd7ab64 (svn r15815) -Fix (~r15800): bridge strings got truncated too early 2009-03-22 16:52:15 +00:00
alberth b563cc0755 (svn r15814) -Fix (r1): Remove double background widget from cheat gui 2009-03-22 16:06:12 +00:00
rubidium e75e1e62cb (svn r15813) -Codechange: remove the last remnants of the old text drawing API. 2009-03-22 14:55:49 +00:00
rubidium 9038733f1a (svn r15812) -Codechange: use the new DrawString API in another set of GUIs 2009-03-22 14:39:20 +00:00
rubidium 22d4270ea8 (svn r15811) -Fix: left != right and as a result of that the ai debug window was kinda empty. 2009-03-22 14:08:53 +00:00
alberth 663c73595f (svn r15810) -Fix: Airport-type labels overlapped with first button, background did not cover whole window 2009-03-22 13:17:37 +00:00
alberth 3b2f47c470 (svn r15809) -Codechange: Add name comments to build vehicle widgets 2009-03-22 12:14:44 +00:00
rubidium 57174a9301 (svn r15808) -Codechange: use the new DrawString API in a number of GUIs 2009-03-22 12:01:21 +00:00
rubidium dfe5dad5f6 (svn r15807) -Codechange: let the build vehicle gui helper function pass around left and right instead of only left and assuming infinite width. 2009-03-22 11:06:25 +00:00
rubidium ead0a6a6e5 (svn r15806) -Codechange: pass both left and right to the vehicle details drawing functions instead of only the left. 2009-03-22 10:37:51 +00:00
alberth 8324f65b4b (svn r15805) -Codechange: Completing/fixing airportpicker widget names and adding them as comment 2009-03-22 09:58:38 +00:00
rubidium 4eaf4e6182 (svn r15804) -Fix (r15796): viewport strings weren't properly 'rendered'.
-Codechange: use the new string drawing API for the viewport.
2009-03-22 09:43:00 +00:00
rubidium e74dc1e1d6 (svn r15803) -Codechange: use the new text drawing API for multicenter
-Fix (r15800): off-by-one w.r.t. offsets
2009-03-22 09:34:06 +00:00
alberth 70d0f8857e (svn r15802) -Codechange: Complete autoreplace GUI widget numbers and add them as comment 2009-03-22 09:04:15 +00:00
peter1138 4c02622cae (svn r15801) -Fix (r15797): The new DrawStringMultiLine() now returns the new y position instead of the height, so we don't need to add it on. 2009-03-22 08:10:20 +00:00
rubidium a07fae67c3 (svn r15800) -Codechange: make the engine gui use the new multiline API. 2009-03-22 00:15:00 +00:00
peter1138 3abddfe705 (svn r15799) -Codechange: Save rail type label list to savegame and perform mapping on load if necessary. 2009-03-21 23:58:20 +00:00
yexo d1fd756755 (svn r15798) -Fix (r15795): gcc doesn't like static functions that are not declared static. 2009-03-21 23:45:46 +00:00
rubidium d837fc4d03 (svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one. 2009-03-21 23:45:34 +00:00
rubidium 676bf31e82 (svn r15796) -Codechange: unify multiline drawstrings 2009-03-21 23:23:06 +00:00
yexo 0f7b9af9fa (svn r15795) -Codechange: Move the settings table from settings.cpp to table/settings.h. Patch breaking time :) 2009-03-21 23:16:09 +00:00
rubidium f11300d1f9 (svn r15794) -Codechange: remove the DoDrawString part of the old text drawing API 2009-03-21 22:46:17 +00:00
frosch ce513b46b7 (svn r15793) -Feature: Allow train vehicles to be shorten to 1/8 length, even if not at the end of the train. 2009-03-21 22:32:51 +00:00
frosch 88a95661a3 (svn r15792) -Codechange: Use a different algorithm for train vehicles to follow the vehicle in front of them. 2009-03-21 22:25:38 +00:00
rubidium 69decac406 (svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API. 2009-03-21 22:22:00 +00:00
rubidium 9003641095 (svn r15790) -Codechange: remove the *Centered part of the old text drawing API. 2009-03-21 22:00:00 +00:00
frosch d452a0a0ec (svn r15789) -Codechange: Add DiagdirBetweenTiles() and use it. 2009-03-21 21:43:23 +00:00
rubidium fd0f0bda72 (svn r15788) -Codechange: enumify the network join status widgets and use them. 2009-03-21 21:26:10 +00:00
rubidium 2d66f8e467 (svn r15787) -Codechange: enumify the land info and about window widgets and use them. 2009-03-21 20:40:02 +00:00
rubidium 5c8906bff7 (svn r15786) -Codechange: enumify the engine preview widgets (and use them) 2009-03-21 20:39:37 +00:00
rubidium 45f189fdca (svn r15785) -Codechange: remove the *Truncated part of the old text drawing API. 2009-03-21 20:12:12 +00:00
glx 9fcff01850 (svn r15784) -Fix (r15779): TextAlignment and TA_* already exist on windows 2009-03-21 20:06:00 +00:00
rubidium 93fe44a3c5 (svn r15783) -Codechange: make the dropdown draw code pass around the left/right instead of the x and width to make drawing text at offsets easier. 2009-03-21 19:31:47 +00:00
rubidium 8a758beec3 (svn r15782) -Codechange: replace some calls to the all text drawing API to the new one. 2009-03-21 19:10:26 +00:00
yexo 971ed8d2a3 (svn r15781) -Fix [NoAI]: Missing "AIs" in the information the debug AI prints. 2009-03-21 19:08:04 +00:00
translators 42dc3bf742 (svn r15780) -Update: WebTranslator2 update to 2009-03-21 18:49:32
german     - 2 changed by planetmaker (2)
hebrew     - 18 fixed by EScake (18)
lithuanian - 27 fixed, 1 changed by Devastator (28)
polish     - 29 fixed by coolik (29)
portuguese - 9 fixed by SnowFlake (9)
russian    - 1 changed by Smoky555 (1)
spanish    - 1 fixed by erregerre (1)
2009-03-21 18:49:45 +00:00
rubidium a22559ff95 (svn r15779) -Codechange: unify (most) of the text drawing "API". 2009-03-21 18:28:01 +00:00
rubidium 529dd0867f (svn r15778) -Fix [FS#2749] (r15666): when sorting on cost don't sort on the running cost (sbr) 2009-03-21 11:16:10 +00:00
rubidium 3ef8a09e20 (svn r15777) -Add: helper functions to get the least common multiple and the greatest common divisor (Alberth) 2009-03-21 01:34:31 +00:00
yexo d2dae07595 (svn r15774) -Fix (r15708): Don't show the message about reporting an AI crash for the dummy AI. 2009-03-19 23:38:51 +00:00
rubidium ee4a660b0c (svn r15773) -Fix [FS#2475]: number of active clients wasn't always properly 2009-03-19 23:32:39 +00:00
yexo 096debebe7 (svn r15772) -Fix (r15767): MSVC can't find the right function anymore because the return value in the header was not updated. 2009-03-19 23:03:53 +00:00
yexo 5933a07a86 (svn r15771) -Fix (r13256): Settings from the [gameopt] section (from 0.6 config files) were overwritten with default values. 2009-03-19 22:37:41 +00:00
translators d405795bf1 (svn r15770) -Update: WebTranslator2 update to 2009-03-19 18:49:29
danish     - 33 fixed by ThomasA (33)
2009-03-19 18:49:31 +00:00
translators 6e5f5c5811 (svn r15769) -Update: WebTranslator2 update to 2009-03-19 18:46:01
arabic_egypt - 4 fixed, 1 changed by khaloofah (5)
brazilian_portuguese - 5 fixed by tucalipe (5)
esperanto  - 9 fixed by maristo (9)
polish     - 7 fixed by Simek (7)
slovak     - 3 fixed by James (3)
swedish    - 6 fixed by Wiggelicous (6)
2009-03-19 18:46:09 +00:00
rubidium d20b8a95dd (svn r15768) -Change: remove an "experimental" marker for something that has been working fine for a long time and remove the ununderstandable part of the description. 2009-03-19 18:23:51 +00:00
rubidium 9fd7774235 (svn r15767) -Fix: infinite loop when skipping sprites when a GRF is invalid (or truncated). 2009-03-19 17:58:25 +00:00
rubidium f5cb1873d6 (svn r15766) -Fix [FS#2744]: Crash when opening the content list window twice; inconsistencies when clicking download twice. 2009-03-19 17:56:45 +00:00
frosch 6dd04a9a78 (svn r15763) -Codechange/Fix: Add Engine::GetDisplayDefaultCapacity() and use it everywhere, so CB 36 is also used everywhere. 2009-03-18 19:32:13 +00:00
glx ea2c50281e (svn r15762) -Codechange: inlined utf8 chars are not handled properly on eastern version of windows so escape them 2009-03-18 17:55:47 +00:00
translators 3a80b4213b (svn r15761) -Update: WebTranslator2 update to 2009-03-18 17:44:55
croatian   - 10 fixed by tifached (10)
indonesian - 4 fixed by adjayanto (4)
japanese   - 60 fixed by ickoonite (60)
latvian    - 5 fixed by silentKnight (5)
russian    - 4 fixed by Smoky555 (4)
2009-03-18 17:48:58 +00:00
rubidium 35e4dc0f4b (svn r15760) -Codechange [FS#2704]: support that the resize box is at the left side of the window too (based on work by Alberth) 2009-03-18 01:06:48 +00:00
glx c0a4498518 (svn r15758) -Fix (r15757): win9x compilation 2009-03-18 00:55:10 +00:00