smatz
a0d0206f2d
(svn r17292) -Codechange: use unified ToPercent() function to convert fract numbers to percents
15 years ago
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
alberth
b31928c033
(svn r17198) -Fix [FS#2406]: Accept monthly production values in the scenario editor.
15 years ago
alberth
0cc8cbd40d
(svn r17171) -Doc: Additions and corrections of various doxygen strings.
15 years ago
smatz
d64bdb138c
(svn r17168) -Codechange: apply coding style to if and while statements
15 years ago
rubidium
d61be2637e
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
15 years ago
rubidium
4874578e79
(svn r16930) -Codechange: more StringID name unification and grouping
15 years ago
rubidium
39e6dbd5e3
(svn r16886) -Codechange: unify naming of some string IDs related to string codes and group them logically
15 years ago
smatz
8718babe90
(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()
15 years ago
alberth
fe9f5cbc46
(svn r16845) -Codechange: Introduction of constants for describing the bits in a WWT_MATRIX data field.
15 years ago
rubidium
2832d69272
(svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts.
16 years ago
smatz
d6e203ebe2
(svn r16379) -Codechange: remove GetNumTowns(), GetNumIndustries() and GetActiveCompanyCount(), use PoolItem::GetNumItems() instead
16 years ago
smatz
0c10daa243
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
16 years ago
smatz
d495dc5dbc
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
16 years ago
rubidium
241af768f0
(svn r16242) -Codechange: rework pausing
...
-Fix [FS#2864]: autopause and manual pausing conflict with eachother
-Fix: new game + pause on new game + autopause make the game not unpause on the first join
16 years ago
rubidium
650cb3694e
(svn r16160) -Codechange: remove the need for explicit TC_FROMSTRING for DrawString.
16 years ago
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.
16 years ago
rubidium
e88cb7f70f
(svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing
16 years ago
rubidium
6f2ce87c5e
(svn r15997) -Fix [FS#2811]: multiline string truncation broke extending the industry window when there are more lines of information
16 years ago
alberth
bbd546b792
(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback
16 years ago
glx
5298b5ef68
(svn r15884) -Codechange: New widgets for the industry windows
16 years ago
rubidium
dcd5ad8b19
(svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one.
16 years ago
rubidium
c1aabd9842
(svn r15785) -Codechange: remove the *Truncated part of the old text drawing API.
16 years ago
smatz
e0fe28fdc9
(svn r15726) -Codechange: unify coding style for const pointers
16 years ago
rubidium
7f468dc142
(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)
16 years ago
rubidium
c3e87f345d
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
16 years ago
rubidium
283b3d16ab
(svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability.
16 years ago
rubidium
42fe0b65d2
(svn r15338) -Fix [FS#2598]: close all construction related windows whenever changing company.
16 years ago
rubidium
a49197f522
(svn r15336) -Fix: do not use _current_company in the GUI as there are no guarantees that _current_company is the same as _local_company.
16 years ago
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
rubidium
28ea38ae55
(svn r14949) -Cleanup: pointer coding style
16 years ago
frosch
eb6df17b1a
(svn r14902) -Feature: Advanced setting to keep various building tools active, which are usually closed after placing an object. (planetmaker)
16 years ago
rubidium
e83cca7d13
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
16 years ago
rubidium
e589c7e580
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
16 years ago
rubidium
f56e630e5c
(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
f49d5057ee
(svn r14390) -Codechange: replace magic constants with symbolic constants.
16 years ago
smatz
ffa39caf3d
(svn r14331) -Codechange: use an enum as additional parameter for ShowQueryString()
16 years ago
belugas
6532897b5a
(svn r14003) -Codechange: Replace numbers with Colours enum opn some DrawArrowButtons calls
16 years ago
rubidium
7aa97fee8c
(svn r13917) -Fix [FS#2178]: wrong tooltip for the industry directory's list.
16 years ago
belugas
a63bcef135
(svn r13879) -Codechange: Replace numbers with Colours enum on engine, industries and group gui
16 years ago
rubidium
cde65455ac
(svn r13731) -Codechange: make a pool of the array of players.
16 years ago
rubidium
6898a76c5f
(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool.
16 years ago
rubidium
5990a92bca
(svn r13387) -Fix: industry directory sorting not working correctly (= != ==)
17 years ago
rubidium
e7a501100a
(svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
17 years ago
skidd13
4f7e14b6fb
(svn r13311) -Codechange: Use GUIList for the industry directory window
...
-Codechange: Replaced the four sort buttons by a dropdown
-Codechange: Reduced the default window size
17 years ago
skidd13
6180112c90
(svn r13294) -Codechange: convert the inheritance of GUIList in IndustryDirectoryWindow to a member object
17 years ago
peter1138
44dd8955d1
(svn r13291) -Fix (r13266): qsort passed wrong sizeof data
17 years ago
peter1138
781b90ac91
(svn r13266) -Codechange: Use SmallVector in GUIList
17 years ago
rubidium
d289464d69
(svn r13255) -Codechange: move _opt to _settings.
17 years ago
rubidium
dc77647ea4
(svn r13251) -Codechange: rename _patches to _settings as that is more logic.
...
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
17 years ago
smatz
c9ef11159f
(svn r13249) -Fix [FS#2039]: make industry sorting by transported percentage more consistent
17 years ago
rubidium
162e2e074b
(svn r13185) -Codechange: remove everything related to the WindowProc callbacks.
17 years ago
glx
4e11e0785a
(svn r13175) -Fix (r13174): sorting criteria and order for industry directory was always reset on window opening
17 years ago
glx
dc1c529a31
(svn r13174) -Codechange: make a class of the IndustryDirectoryWindow.
17 years ago
rubidium
a89b5721a8
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
17 years ago
rubidium
a7db265bb6
(svn r13069) -Codechange: it is no longer needed to pass a void *data pointer with the WE_CREATE message because nothing uses it anymore.
17 years ago
glx
eb70da38d0
(svn r13060) -Codechange: update build industry window when raw_industry_construction setting is modified
17 years ago
glx
cf315d2656
(svn r13050) -Codechange: make a class of IndustryViewWindow.
17 years ago
glx
dacd2c5de8
(svn r13047) -Codechange: remove vp_d
17 years ago
rubidium
29ad1d442a
(svn r13041) -Fix: calling a virtual function on a not fully constructed object is bound to cause errors.
17 years ago
glx
d706c8b462
(svn r13036) -Codechange: make a class of the BuildIndustry Window.
17 years ago
glx
4c98a72745
(svn r13032) -Codechange: make industry view window resizable and truncate strings
17 years ago
rubidium
2c96ce4506
(svn r13027) -Codechange: use StrEmpty instead of arr[0] == '\0' and remove the need for WE_ON_EDIT_TEXT_CANCEL.
17 years ago
rubidium
0f7d925121
(svn r13024) -Codechange: do not use WE_MOUSELOOP when WE_TICK suffices, rename WE_4 to something more descriptive and correct some (completely incorrect) comments.
17 years ago
glx
5c9c8fc199
(svn r13020) -Codechange: make industry directory window horizontally resizable and truncate strings
17 years ago
rubidium
92aac531c2
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
17 years ago
rubidium
c28ce39e3c
(svn r12987) -Codechange: split viewport and tile selection.
17 years ago
rubidium
9db77e3808
(svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL.
17 years ago
rubidium
1ce0b03bf0
(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.
17 years ago
glx
1b9197d6dd
(svn r12970) -Codechange: coding style for some function names
17 years ago
glx
7da190c1e0
(svn r12965) -Codechange: add support for callback 37 in industries directory window
17 years ago
glx
7f8f70f6f0
(svn r12964) -Codechange: rewrite callback 37 related code so it will be easier to add supported windows
17 years ago
glx
15ebb1a292
(svn r12959) -Fix: don't assume no production when the first produced cargo is invalid in industries directory
17 years ago
belugas
8580edbf20
(svn r12956) -Codechange: Code-style application on switch-case aligment
17 years ago
peter1138
78c0929b18
(svn r12953) -Feature: Open a new viewport when ctrl-clicking on a 'Location' button, a town/station/industry list, or some news items.
17 years ago
rubidium
bbe13a0623
(svn r12818) -Codechange: make callbacks 31 and 37 behave like they do in TTDP according to frosch's survey.
17 years ago
rubidium
51c7ba39a4
(svn r12789) -Codechange: rename AssignWindowViewport to InitializeWindowViewport because the viewport is now part of the window struct. Patch by Alberth.
17 years ago
rubidium
18e64b28e2
(svn r12757) -Codechange: move all cheat related stuff from all over the place to a single location.
17 years ago
peter1138
2d37f4c823
(svn r12479) -Codechange [FS#1723]: Simplify the method used to resize the industry view window. The window is now shown the correct size so the resize button is also removed.
17 years ago
glx
221071d299
(svn r12455) -Codechange: Implement NewGRF callback 37 (cargo sub-type display for industries)
17 years ago
smatz
70a6179b3b
(svn r12049) -Fix (r10496)(r10619): memset on multibyte array with wrong byte count
17 years ago
rubidium
3b20e4d09a
(svn r12006) -Fix: implement FS#1697 without the nasty side effects as specified in FS#1712.
17 years ago
belugas
2ff76007b0
(svn r11987) -Feature[newGRF]: Allow the industry view window to be resized only when callback 3A (Show additional text in industry window) is available for the current industry.
...
This now allows grf authors to specify longer than 3 lines of text.
17 years ago
peter1138
04da1e1d45
(svn r11915) -Codechange: Add a function to draw a sort button's up/down arrow. Arrows are now drawn in a consistent position based on the widget, instead of randomly positioned by pixel.
17 years ago
rubidium
9c0c798dd8
(svn r11834) -Codechange: only include settings_type.h if needed.
17 years ago
rubidium
90acd52f22
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
17 years ago
rubidium
2fc62eab05
(svn r11818) -Codechange: split player.h into smaller pieces.
17 years ago
rubidium
c004cc1fd9
(svn r11801) -Codechange: remove some unneeded includes from some header files.
17 years ago
rubidium
64d691bacc
(svn r11787) -Codechange: more header rewrites. This time related to viewport.h.
17 years ago
peter1138
890296c125
(svn r11742) -Codechange [FS#1319]: Run window tick events when paused, so that news pop-ups and the about window still progress. For other windows the events are ignored when paused.
17 years ago
rubidium
db73addb43
(svn r11702) -Codechange: move all date related stuff to date*.
17 years ago
rubidium
f82aeb82c5
(svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h).
17 years ago
rubidium
81bf9f8503
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
17 years ago
rubidium
00c9d3ef20
(svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed.
17 years ago
rubidium
1f6043458c
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
17 years ago
rubidium
766551b0bc
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
17 years ago
rubidium
8427b8bad2
(svn r11675) -Codechange: split the string types from the string functions.
17 years ago
rubidium
2cf7d5b2cb
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
17 years ago
rubidium
8bfbfd0031
(svn r11667) -Codechange: split window.h into a header that defines some 'global' window related types, on that defined 'global' window functions and one that defines functions and types only used by *_gui.cpps.
17 years ago
rubidium
a510606144
(svn r11609) -Fix [FS#1524]: wrong error messages were shown when trying to build some industries in the scenario editor.
17 years ago