Commit Graph

287 Commits

Author SHA1 Message Date
alberth
d54028fde8 (svn r17572) -Codechange: Use the Window::GetWidget() function to access nested widgets through the nested_array. 2009-09-19 11:31:12 +00:00
frosch
0e36260337 (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 2009-09-13 19:15:59 +00:00
rubidium
1f3f5a8a83 (svn r17372) -Codechange: make the settings, rail and sign GUIs use the scrollbar wrappers 2009-09-02 08:28:50 +00:00
rubidium
0f6384ccee (svn r17272) -Fix [FS#3115]: game options window sub frames wouldn't resize when another did 2009-08-23 19:22:33 +00:00
rubidium
d4a98be94a (svn r17271) -Fix: SetFill sometimes used 1/0 when it should be using true/false 2009-08-23 19:03:09 +00:00
rubidium
99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 2009-08-21 20:21:05 +00:00
rubidium
11f4973cf6 (svn r17241) -Change: make a distinction between missing and corrupted data files. If (at least) one data file is missing do not consider the set to be useable. Do also no autodetect sets with missing files. 2009-08-20 17:02:44 +00:00
rubidium
9c77b0ce5d (svn r17167) -Fix: don't resize the 'base grf status' text part in the game options window when there is no base graphics set that misses files. 2009-08-13 19:54:18 +00:00
rubidium
93493827b6 (svn r17139) -Change: add the concept of sound sets 2009-08-09 19:50:44 +00:00
rubidium
dcea681cbb (svn r17138) -Fix: some MSVC 64 bits compiler warnings 2009-08-09 19:06:35 +00:00
rubidium
cdb969e164 (svn r17133) -Codechange: generalise the code that searches for base graphics 2009-08-09 16:54:03 +00:00
smatz
073e163b7f (svn r17131) -Codechange: apply coding style to some switch statements 2009-08-09 14:40:34 +00:00
rubidium
d61be2637e (svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives 2009-08-05 17:59:21 +00:00
rubidium
5bb7b8ad35 (svn r17062) -Change: unify the naming of some 125 strings 2009-08-04 18:04:33 +00:00
frosch
1969cbd6e8 (svn r16957) -Fix: Trigger the same window repositioning after changing font/language as it is done after resizing the main OpenTTD window. 2009-07-25 15:58:48 +00:00
rubidium
f49259326d (svn r16954) -Codechange: make the Game Options window use the nested widget system. 2009-07-25 15:10:52 +00:00
rubidium
4874578e79 (svn r16930) -Codechange: more StringID name unification and grouping 2009-07-23 19:31:50 +00:00
rubidium
6435dc89fe (svn r16912) -Codechange: split waypoint.h in waypoint_base.h and waypoint_func.h 2009-07-22 10:18:19 +00:00
rubidium
b4f5a1eebb (svn r16868) -Codechange: unify UpdateAll[Station|Waypoint]VirtCoords 2009-07-18 08:41:58 +00:00
rubidium
34570f4e93 (svn r16842) -Cleanup: add some spaces around a few operators 2009-07-16 10:13:33 +00:00
rubidium
79deeee323 (svn r16821) -Codechange: unify the naming of type::UpdateVirtCoord and UpdateAll[Type]VirtCoords. 2009-07-13 22:33:25 +00:00
rubidium
62f770a5fc (svn r16781) -Fix [FS#3026] (r16297): don't cast negative values to uints when the settings' range is "negative..positive". 2009-07-10 16:32:12 +00:00
alberth
194701b27a (svn r16687) -Codechange: Perform re-initialization of windows with nested widgets after a language change. 2009-06-28 20:09:40 +00:00
alberth
c52fe937d5 (svn r16677) -Codechange: Dimension width and height are unsigned. 2009-06-27 20:53:45 +00:00
yexo
679ffee940 (svn r16614) -Codechange: Make the airport min/max available year a property of the Airport class.
-Change: rename station.always_small_airport to station.never_expire_airports to make it more future-proof
2009-06-21 13:26:30 +00:00
rubidium
b7dfc3aa0b (svn r16474) -Fix [FS#2933]: could set company related settings via query window 2009-05-31 09:31:56 +00:00
yexo
272722f12f (svn r16431) -Fix (16429): Company settings can also be changed in multiplayer games 2009-05-26 12:53:34 +00:00
yexo
7eb9ad0415 (svn r16429) -Change: Make the company settings behave like all others settings: the default set in the main menu / config file is now really the default for a new company, and changing the value in game will no longer change the default for new companies. 2009-05-26 11:40:14 +00:00
smatz
d6e203ebe2 (svn r16379) -Codechange: remove GetNumTowns(), GetNumIndustries() and GetActiveCompanyCount(), use PoolItem::GetNumItems() instead 2009-05-22 15:23:47 +00:00
frosch
3f9fa18671 (svn r16342) -Feature(tte): Display base graphics description in game options window. 2009-05-17 18:21:21 +00:00
yexo
d489f93473 (svn r16315) -Codechange: move the autorenew settings to a new CompanySettings struct 2009-05-15 23:55:06 +00:00
rubidium
08655368eb (svn r16297) -Codechange: silence more ICC warnings 2009-05-13 17:39:00 +00:00
rubidium
650cb3694e (svn r16160) -Codechange: remove the need for explicit TC_FROMSTRING for DrawString. 2009-04-26 14:52:56 +00:00
alberth
a429cd8810 (svn r16152) -Codechange: Added nested widgets for advanced settings and for custom currency windows. 2009-04-26 07:43:19 +00:00
rubidium
f64e9ce4a1 (svn r16144) -Fix (r16129): setting the custom digit grouping separator required to restart OpenTTD to take effect. Now also support non 1 ASCII character custom grouping separators. 2009-04-25 20:16:56 +00:00
alberth
6e951ec614 (svn r16142) -Codechange: Use widgets in the custom currency window. 2009-04-25 17:51:10 +00:00
rubidium
5c5b357043 (svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible. 2009-04-21 23:40:56 +00:00
alberth
d6ddae77d6 (svn r16082) -Codechange: Completed the widget numbers of the advanced settings window. 2009-04-18 15:31:49 +00:00
rubidium
4c707c7414 (svn r16037) -Feature: allow (per order) to let a train stop at the near end, middle or far end of a platform from the point of view of the driver of the train that enters the station. 2009-04-12 14:11:14 +00:00
alberth
bbd546b792 (svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback 2009-03-29 09:49:11 +00:00
yexo
2336879a85 (svn r15874) -Codechange: New widgets for the game options window. 2009-03-28 11:17:38 +00:00
yexo
42d89c1efe (svn r15868) -Codechange: remove the close box from the widget array instead of doing it in the constructor of the difficulty window. This makes it work again in rtl languages. 2009-03-28 02:54:40 +00:00
yexo
8432a0b918 (svn r15866) -Codechange: New widgets for the difficulty window. 2009-03-28 02:11:41 +00:00
rubidium
2e7cab3b77 (svn r15840) -Codechange: complete the game option window widget enum and unify the naming. 2009-03-25 00:08:47 +00:00
yexo
8b873859ba (svn r15835) -Codechange: Prevent using the return value of DrawString as much as possible. 2009-03-24 20:03:02 +00:00
yexo
d8a0e59b9d (svn r15825) -Codechange: remove the WWT_DROPDOWNIN widget type and replace it with WWT_DROPDOWN. 2009-03-23 00:08:59 +00:00
rubidium
2e38d7c332 (svn r15812) -Codechange: use the new DrawString API in another set of GUIs 2009-03-22 14:39:20 +00:00
rubidium
a1088869f5 (svn r15794) -Codechange: remove the DoDrawString part of the old text drawing API 2009-03-21 22:46:17 +00:00
rubidium
89d614deea (svn r15790) -Codechange: remove the *Centered part of the old text drawing API. 2009-03-21 22:00:00 +00:00
rubidium
c1aabd9842 (svn r15785) -Codechange: remove the *Truncated part of the old text drawing API. 2009-03-21 20:12:12 +00:00
rubidium
7f468dc142 (svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth) 2009-03-15 15:12:06 +00:00
rubidium
c3e87f345d (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 2009-03-15 00:32:18 +00:00
rubidium
9f2a906bc1 (svn r15601) -Fix [FS#2615]: bridges/tunnels don't store tram owner making it possible to remove someone's tram tracks.
-Feature: allow building road stops on road/tram tracks of competitors.
2009-03-02 22:57:47 +00:00
yexo
d96b151859 (svn r15570) -Fix: Too long strings in the advanced settings window are now truncated. 2009-02-24 22:23:47 +00:00
rubidium
89e1afdaa0 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 2009-02-09 02:57:15 +00:00
rubidium
fc342a0d68 (svn r15416) -Fix (r15412): revert the removal of the road side drop down box handling. 2009-02-08 17:46:08 +00:00
peter1138
5429c5a095 (svn r15412) -Fix: Clearing custom engine names could cause desyncs due to be client-side only; GUI parts of save/load of custom engine names also removed as it was never implemented. 2009-02-08 12:58:14 +00:00
rubidium
283b3d16ab (svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability. 2009-02-08 12:25:13 +00:00
peter1138
43a8400647 (svn r15389) -Feature: Add ability to select which base graphics set is used from the Game Options window. The change takes effect when the window is closed. This option can only be used from the intro menu, as reloading graphics during a game may cause issues. 2009-02-07 01:01:02 +00:00
smatz
3a8d57816a (svn r15340) -Fix [FS#2121]: changing town road layout in-game caused ugly road networks
-Fix: use a flag instead of TL_NO_ROADS to forbid towns to build roads. The flag is ignored during world generation, so there won't be 'ghost' towns anymore
-Feature: town layout is now stored per town, so it is possible to (manually) set different layout for each town
2009-02-04 20:17:25 +00:00
rubidium
ce1fcfd8c0 (svn r15335) -Change: use the patch change mechanism to change the road side too instead of a separate command. 2009-02-04 16:09:16 +00:00
peter1138
b3f3df76e8 (svn r15301) -Feature [FS#104]: Add option to group and subtotal expenses list in the company finance window. Concept from Zr40. 2009-01-31 21:27:36 +00:00
smatz
9021c20b5e (svn r15299) -Cleanup: remove many redundant includes 2009-01-31 20:16:06 +00:00
peter1138
4812e633a2 (svn r15238) -Fix (r15236): Missed a file 2009-01-23 21:05:25 +00:00
Yexo
e3c69b7c4e (svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map. 2009-01-21 02:31:55 +00:00
Yexo
e84ff99a8b (svn r15148) -Cleanup: Remove the options "competitor start time" and "competitor intelligence" from the difficulty options because they already were unused. 2009-01-19 01:16:50 +00:00
truebrain
c2406cd42d (svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see.
NoAI is an API (a framework) to build your own AIs in. See:
   http://wiki.openttd.org/wiki/index.php/AI:Main_Page
 With many thanks to:
  - glx and Rubidium for their syncing, feedback and hard work
  - Yexo for his feedback, patches, and AIs which tested the system very deep
  - Morloth for his feedback and patches
  - TJIP for hosting a challenge which kept NoAI on track
  - All AI authors for testing our AI API, and all other people who helped in one way or another
-Remove: all old AIs and their cheats/hacks
2009-01-12 17:11:45 +00:00
rubidium
537a8b8342 (svn r14999) -Change [FS#2523]: move service at helipad to the servicing options 2009-01-12 00:06:22 +00:00
rubidium
3a7c62022d (svn r14980) -Change: shuffle around some more settings to make them more logically grouped/ordered 2009-01-10 19:48:11 +00:00
rubidium
bf744ec651 (svn r14978) -Codechange: simplify the control flow of the OnClick of the settings window 2009-01-10 19:22:05 +00:00
rubidium
6ef631d590 (svn r14974) -Change: reorder/reorganise the entries of the settings window (Alberth) 2009-01-10 17:35:19 +00:00
rubidium
ffa31d118d (svn r14973) -Codechange: recursively fold subpages (Alberth) 2009-01-10 17:27:11 +00:00
rubidium
0120505763 (svn r14970) -Change: move all (patch) settings to a single "page" (Alberth) 2009-01-10 17:14:59 +00:00
rubidium
7642fd7b34 (svn r14969) -Codechange: make drawing trees possible (Alberth) 2009-01-10 17:13:41 +00:00
rubidium
097fddc454 (svn r14967) -Codechange: split the drawing of the window into several smaller functions (Alberth) 2009-01-10 16:51:27 +00:00
rubidium
5b6489e2d3 (svn r14966) -Codechange: simplify and generalise finding patch entries (Alberth) 2009-01-10 16:49:30 +00:00
rubidium
75a776770b (svn r14965) -Codechange: remember the patch entry instead of the page and index of the entry for handling the "input box" (Alberth) 2009-01-10 16:46:10 +00:00
rubidium
b467902e65 (svn r14964) -Codechange: hide the length of a patch page behind a function (Alberth) 2009-01-10 16:44:51 +00:00
rubidium
58c5b6106e (svn r14963) -Codechange: remember what entry was clicked instead of the index (Alberth) 2009-01-10 16:42:28 +00:00
rubidium
c91930e94c (svn r14962) -Codechange: add the concept of patch entries and patch (sub) pages 2009-01-10 16:39:18 +00:00
rubidium
bc8d1d7b0d (svn r14961) -Update: remove the string from r14960 from the other languages too. 2009-01-10 16:29:31 +00:00
rubidium
a54e957416 (svn r14960) -Codechange: add some this where appropriate (Alberth) 2009-01-10 16:26:17 +00:00
rubidium
f902e3097d (svn r14938) -Fix: some small inconsistencies w.r.t. "0 is disabled" setting handling 2009-01-09 19:34:05 +00:00
rubidium
7a5798695d (svn r14919) -Feature: distant joining of stations (Frostregen and PhilSophus) 2009-01-08 16:35:45 +00:00
frosch
eb6df17b1a (svn r14902) -Feature: Advanced setting to keep various building tools active, which are usually closed after placing an object. (planetmaker) 2009-01-07 17:40:17 +00:00
rubidium
567b262901 (svn r14899) -Feature: remove the window limit, but leave a configurable limit on the number of non-sticky non-vital windows.
-Fix [FS#2499]: crashes/misbehaviours when (almost) all windows are stickied.
2009-01-07 16:11:27 +00:00
rubidium
ac0e2e6d5a (svn r14885) -Fix: if settings minimum != 1 and 0-is-disabled is enabled, one could set the setting in-game to an out-of-valid-range value. 2009-01-07 08:26:09 +00:00
smatz
65a40146f2 (svn r14839) -Fix [FS#2496](r14835): one occurence of train_income_warn wasn't updated 2009-01-04 20:41:32 +00:00
rubidium
e62e12e7f5 (svn r14827) -Feature [FS#1984]: few (optional) optimisations to making (initial) orders (sulai) 2009-01-04 14:51:49 +00:00
glx
06519a56f2 (svn r14816) -Fix: signed/unsigned warnings (MSVC) 2009-01-03 19:39:22 +00:00
smatz
7869c4ba66 (svn r14815) -Codechange: separate 'highscore' code from 'company' code 2009-01-03 18:44:20 +00:00
rubidium
f08fe262af (svn r14800) -Codechange: make the advanced settings window resizeable and scrollable (most by Alberth) 2009-01-03 11:24:27 +00:00
rubidium
8150319cb2 (svn r14799) -Codechange: move drawing a single settings entry to it's own function (Alberth) 2009-01-03 11:07:43 +00:00
rubidium
74f403b408 (svn r14798) -Codechange: move variable declaration to first use of variable (Alberth) 2009-01-03 11:03:53 +00:00
rubidium
82087f04ec (svn r14797) -Codechange: replace even more magic numbers with constants (Alberth) 2009-01-03 11:00:40 +00:00
rubidium
a8f73dbb84 (svn r14796) -Fix: if using variable, use it everywhere instead of hardcoding it's value sometimes (Alberth) 2009-01-03 10:56:38 +00:00
rubidium
183990de30 (svn r14795) -Codechange: replace a magic number with a constant (Alberth) 2009-01-03 10:53:49 +00:00
rubidium
1bc6b7a7a5 (svn r14794) -Document: a few functions/variables (Alberth) 2009-01-03 10:52:22 +00:00
rubidium
4c1c6cd8e8 (svn r14792) -Feature: make the date format for default savegame/screenshot names configurable 2009-01-03 00:58:59 +00:00
rubidium
d3144b6f04 (svn r14789) -Feature: allow scrolling with the left mouse button pressed (if enabled). Primarily useful for systems with touch screen (aapo) 2009-01-02 22:42:05 +00:00