Commit Graph

291 Commits (b1718478c853a22481ea756ab0ea2f8b57da47f9)

Author SHA1 Message Date
michi_cc 0542e26460 (svn r23931) -Change: Scale infrastructure cost of rail tracks by the total number of all tracks and not independently for each rail type. 13 years ago
rubidium 6d6be50ae0 (svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files 13 years ago
alberth 4af8c2d5e1 (svn r23704) -Doc: Doxygen comment fixes and additions. 13 years ago
truebrain e9f584ac21 (svn r23531) -Codechange: document and rename widgets to be consistent and understandable 13 years ago
truebrain 2aa774e831 (svn r23528) -Codechange: move widget enums to widgets/NNN_type.h 13 years ago
rubidium 58423b26d1 (svn r23474) -Codechange: move the declaration error related functions to error.h 13 years ago
michi_cc 6711026011 (svn r23428) -Fix (r23415): Initial size of the infrastructure details windows was sometimes too small. 13 years ago
frosch 1f9f73d2b6 (svn r23424) -Change: Make the company GUI somewhat smaller if there are no shareholders. 13 years ago
frosch 51da427dae (svn r23420) -Change: Put the manager name directly under the picture instead of vertically centering it. 13 years ago
michi_cc d3b7b89493 (svn r23415) -Feature: Infrastructure maintenance costs. 13 years ago
michi_cc 6083d6ffb4 (svn r23410) -Add: A window with a detailed overview over the infrastructure of a company. 13 years ago
rubidium a9bdd04072 (svn r23331) -Fix [FS#4851] (rCS, r148): abort building/moving HQ when clicking on the button again, just like when building rail, stations, etc (sbr) 13 years ago
peter1138 279c651a4d (svn r23022) -Codechange: Support resized checkbox and square icons in company colour selection window. 13 years ago
frosch 1a12008fcf (svn r22982) -Cleanup: Remove CountCompanyVehicles() and use ALL_GROUP statistics instead. 13 years ago
frosch 1bc1a42ea5 (svn r22619) -Fix [FS#4662]: Consider the size of the vehicle sprite for the lineheight in the company GUI. This also makes the widget containing the sprite not skip drawing it, if the bounds of the widget are outside of the drawing area though the sprite actually needs drawing. 13 years ago
frosch 5e449b8fae (svn r22429) -Add: some constants for specific palette colours used in the GUI. 13 years ago
frosch 22286bd7b6 (svn r22421) -Fix: Replace various references to Windows palette greyscale indices with the DOS palette indices. 13 years ago
rubidium ff143c6708 (svn r22413) -Document: even more stuff 13 years ago
terkhen 10caf391a1 (svn r22343) -Change: Remove pixel limiter for query strings. 13 years ago
frosch ec9540a12a (svn r22241) -Codechange: Add additional to-be-used parameter to OnInvalidateData(). 13 years ago
rubidium cf61c2f11f (svn r21412) -Codechange: limit company name by amount of characters, not bytes 14 years ago
rubidium 9a18050646 (svn r21408) -Codechange: limit president name by amount of characters, not bytes 14 years ago
alberth f5c6fd1a25 (svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint(). 14 years ago
rubidium 30637a8340 (svn r21157) -Codechange: remove information about the text direction out of the language "list" 14 years ago
smatz 77fe95f552 (svn r20860) -Cleanup: remove some unused functions and variables 14 years ago
frosch 717fcd09c6 (svn r20849) -Change: Only display liveries in the liverywindow if they are used by some vehicle somewhen (not considering date or such). 14 years ago
rubidium 30f2afac9b (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 14 years ago
frosch d496ec65b9 (svn r20470) -Codechange: Make arrow buttons lower and raise like other buttons when clicked. 14 years ago
rubidium 3da3d131c6 (svn r20411) -Codechange: rename unmovables as quite a lot of them are actually movable; e.g. HQ and owned land are pretty movable. 14 years ago
alberth e0e66b6ed0 (svn r20390) -Codechange: Move company vehicle counting to vehicle.cpp. 14 years ago
rubidium 49cee72fa4 (svn r20328) -Codechange: unify the unmovable related commands and make building lighthouses/transmitters actually happen via a command 14 years ago
frosch ed4f806f1d (svn r20283) -Codechange: Unify start of doygen comments. 14 years ago
rubidium e356cb9405 (svn r20281) -Codechange: unify case scope closure + break coding style 14 years ago
terkhen 88ca183191 (svn r20239) -Doc: Give a common name to all fall throughs (FALL THROUGH). 14 years ago
alberth 22b9bc5157 (svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine(). 14 years ago
yexo 9683b87466 (svn r20012) -Fix: when joining a company with a password you could only enter 20 characters of the password 14 years ago
rubidium 062dd0e24c (svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int 14 years ago
smatz f051066bc4 (svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit 15 years ago
rubidium 7a73a7490d (svn r19090) -Codechange: some comment coding style fixes 15 years ago
frosch 88019e64e1 (svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick(). 15 years ago
rubidium f94c83a387 (svn r18872) -Codechange: introduce PaletteID and use it 15 years ago
rubidium 82fc28f77f (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 15 years ago
yexo fa23617380 (svn r18729) -Fix [FS#3427]: the lock in the company gui was only drawn for your own company 15 years ago
alberth ba3ef1a2d5 (svn r18664) -Fix [FS#3449]: Unshade shaded finances window when toggling size. 15 years ago
rubidium 454e124912 (svn r18652) -Fix: glitches due to having the wrong bounding boxes for the face widgets 15 years ago
alberth 3323d64f28 (svn r18606) -Codechange: Introduce several forms of zero-size stacked display planes. 15 years ago
alberth 7dbc77a1e7 (svn r18605) -Codechange: Coding style fixes, prevent useless calls to UpdateWidgetSize(). 15 years ago
alberth 91872aca48 (svn r18588) -Feature [FS#2943]: Add shading and unshading of windows. 15 years ago
rubidium ac4ef286f4 (svn r18447) -Change: make some more windows (e.g. graphs, company view) stickyable 15 years ago
alberth bb19a2e757 (svn r18346) -Codechange: Compute size of face part display buttons only once in face window. 15 years ago
alberth 548f47af58 (svn r18337) -Codechange: Remove 2x2 {SKIP} in the company finances window + strings. 15 years ago
rubidium b00a5f1069 (svn r18330) -Cleanup: remove some unneeded includes 15 years ago
rubidium 1f0da3710f (svn r18324) -Codechange: there's no need for a default size when the window isn't resizable 15 years ago
rubidium 293dfd7c3e (svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice. 15 years ago
alberth a427ab751d (svn r18317) -Codechange: Merge both face windows into a single window description and widget parts array. 15 years ago
alberth 4999a76b3e (svn r18316) -Codechange: Introduce selection widgets to enable turning parts of the face window on and off. 15 years ago
alberth 3b1d471838 (svn r18315) -Codechange: Remove fixed minimal sizes of the other widgets in both face windows. 15 years ago
alberth 692a45c352 (svn r18313) -Codechange: Decide the size of the widgets displaying values of parts in the advanced face window dynamically. 15 years ago
alberth 0be86e295b (svn r18312) -Codechange: Simplify the nested widget part arrays of both face windows, and move a bit towards merging. 15 years ago
rubidium ff32ea24fc (svn r18311) -Codechange: no need to hardcode locations of some 'random' windows 15 years ago
alberth 2dbf1d72f9 (svn r18310) -Codechange: Introduce widgets for the names of the parts in the advanced face editing window, 15 years ago
rubidium 8d6e323ef8 (svn r18280) -Codechange: remove widget indices that are not needed for custom drawing/handling input 15 years ago
rubidium 14300d309c (svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions 15 years ago
rubidium 69b6d9309a (svn r18274) -Codechange: remove the unused WDF flags 15 years ago
rubidium b6b5515335 (svn r18265) -Codechange: make the finance overview window big font aware 15 years ago
alberth 450e40b997 (svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize(). 15 years ago
alberth 2b6f792513 (svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool. 15 years ago
alberth bf93372ca2 (svn r18220) -Codechange: Reduce number of nested widget dynamic casts. 15 years ago
rubidium a95655b7c8 (svn r18217) -Codechange: make the livery window big font aware 15 years ago
rubidium 186295ca85 (svn r18215) -Codechange: make the simple face window big font aware 15 years ago
rubidium d913282e7a (svn r18212) -Codechange: remove unneeded 'parameters' for WWT_CAPTION, WWT_CLOSEBOX and WWT_STICKYBOX in the nested widget arrays 15 years ago
rubidium 77d6c4e07a (svn r18199) -Codechange: make the company view window RTL aware and somewhat big font aware 15 years ago
rubidium 64d65cc635 (svn r18187) -Codechange: make the advanced face selection, custom currency, difficulty, news settings, signal, sign and vehicle details window RTL aware (use the arrow widget) 15 years ago
rubidium c461ccfecb (svn r18166) -Codechange: make the livery colour window RTL aware 15 years ago
rubidium 5f2ddfbc5a (svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets 15 years ago
smatz c71e3548d7 (svn r18102) -Codechange: simplify Company::Get(this->window_number)->index to just this->window_number 15 years ago
alberth 7337a0553c (svn r18091) -Codechange: CompanyWindow uses pure nested widgets. 15 years ago
rubidium 3d2d7af88f (svn r18086) -Codechange: remove 'widget' from WindowDesc 15 years ago
alberth 1b72fa84e2 (svn r18085) -Codechange: Make the company face window use nested widgets. 15 years ago
rubidium 16c2e53191 (svn r18078) -Codechange: remove some duplicate (non translatable) strings 15 years ago
alberth 668a98909b (svn r18077) -Codechange: Make the livery window use pure nested widgets. 15 years ago
rubidium 9cc07a1e98 (svn r18018) -Codechange: make the 'buy company' window nested 15 years ago
alberth 44aacfc59f (svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
Gentlemen, swap your string parameters.
15 years ago
alberth 70ec375dc5 (svn r17756) -Codechange: Company finances window uses pure nested widgets. 15 years ago
alberth 402d0d05c9 (svn r17754) -Codechange: Make ExpensesList::GetHeight() return a uint. 15 years ago
alberth 2e2f3b1502 (svn r17753) -Fix (r17750): Expenses amounts were printed two pixels too low. 15 years ago
alberth ef8a3d6d94 (svn r17750) -Codechange: Financial expenses panel handles different font size, replaced magic numbers by constants. 15 years ago
alberth 429449cab8 (svn r17740) -Codechange: Extract financial expenses drawing routines. 15 years ago
alberth 95dfee1c60 (svn r17724) -Codechange: Merge magic height values toghether in finances window. 15 years ago
rubidium d6cded5380 (svn r17693) -Cleanup: remove some unneeded includes 15 years ago
alberth ceab116065 (svn r17573) -Codechange: NWID_SELECTION containers have a selected widget-plane, and optionally an index in the nested_array. 15 years ago
rubidium e8ddf001c8 (svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos 15 years ago
frosch ebd916be3d (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 15 years ago
rubidium aca7ba714a (svn r17271) -Fix: SetFill sometimes used 1/0 when it should be using true/false 15 years ago
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium 1fe3ad3288 (svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives 15 years ago
rubidium 96cc9c2de1 (svn r16954) -Codechange: make the Game Options window use the nested widget system. 15 years ago
rubidium 9980af2898 (svn r16921) -Codechange: make it more clear what strings are related to road vehicles; only ROAD isn't always enough. Also unify the way of writing it. 15 years ago
alberth d0a47fc1b4 (svn r16845) -Codechange: Introduction of constants for describing the bits in a WWT_MATRIX data field. 15 years ago
smatz 95c7993451 (svn r16809) -Fix [FS#3021](r13096): automatic resizing of SelectCompanyLiveryWindow wasn't working as expected 15 years ago
smatz 15990079ce (svn r16716) -Codechange: reduce code duplication in DrawCompanyVehiclesAmount() 15 years ago
smatz bea3fe2b8b (svn r16559) -Codechange: introduce Company::IsValidAiID() and Company::IsValidHumanID(), don't use IsHumanCompany() where possible 15 years ago
smatz 871107f529 (svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index) 15 years ago
smatz 6221d74644 (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 15 years ago
rubidium 5f81ba886c (svn r16297) -Codechange: silence more ICC warnings 15 years ago
alberth 7abcb8d368 (svn r16208) -Codechange: Added nested widgets for the buy company and show company windows. 15 years ago
alberth 553dcd02a7 (svn r16207) -Codechange: Added and applied BuyCompanyWidgets enum.
-Doc: Small fixes and additions to documentation.
15 years ago
rubidium 53887e07bb (svn r16160) -Codechange: remove the need for explicit TC_FROMSTRING for DrawString. 15 years ago
rubidium 11c6d30e77 (svn r16156) -Codechange: make the parameters of DrawStringMultiline the same as for DrawString (except the addition of the bottom parameter) 15 years ago
rubidium 59d45a04d6 (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. 15 years ago
rubidium 329cabab4f (svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing 15 years ago
glx bf354564ce (svn r15880) -Codechange: add an invisible widget on company manager face windows to position company manager face image 15 years ago
glx 5f2c5b5855 (svn r15879) -Codechange: add an invisible widget on advanced company face window to determine where to draw the strings instead refering to other widgets. Required for rtl languages. 15 years ago
peter1138 f30f5607e3 (svn r15877) -Codechange: Let drop down lists know about font height. 15 years ago
glx 83fb6b50bb (svn r15869) -Codechange: New widgets for select manager face and select livery windows 15 years ago
glx b4b700a789 (svn r15865) -Codechange: New widgets for company finances windows 15 years ago
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 15 years ago
glx 9965f02827 (svn r15855) -Codechange: complete the company finances window widget enum and remove unneeded magic in large window definition 15 years ago
rubidium 57174a9301 (svn r15808) -Codechange: use the new DrawString API in a number of GUIs 15 years ago
rubidium e74dc1e1d6 (svn r15803) -Codechange: use the new text drawing API for multicenter
-Fix (r15800): off-by-one w.r.t. offsets
15 years ago
rubidium 69decac406 (svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API. 15 years ago
rubidium 9003641095 (svn r15790) -Codechange: remove the *Centered part of the old text drawing API. 15 years ago
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. 15 years ago
rubidium f9def73be6 (svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth) 16 years ago
rubidium b25a4f8231 (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 16 years ago
rubidium 9d018723b7 (svn r15711) -Codechange: lots of whitespace cleanup/fixes 16 years ago
rubidium 05792c46a3 (svn r15429) -Change: do r15428 also for the string names. 16 years ago
rubidium c0a8d09ca7 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 16 years ago
rubidium 90e2465d7d (svn r15427) -Codechange: give w->caption_color a more sensible name as it holds the owner of whatever is shown in the window 16 years ago
rubidium ac7757324e (svn r15338) -Fix [FS#2598]: close all construction related windows whenever changing company. 16 years ago
peter1138 6899955b0c (svn r15301) -Feature [FS#104]: Add option to group and subtotal expenses list in the company finance window. Concept from Zr40. 16 years ago
smatz 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 16 years ago
rubidium 3d21639d5b (svn r15247) -Change: show a lock near the password/join button in the company window whenever the company is password protected 16 years ago
rubidium 04709f2798 (svn r15242) -Feature: allow moving clients between companies/spectators by the server and the clients themselves (dihedral) 16 years ago
rubidium 5fcf07f388 (svn r14895) -Change: move CMD_NO_WATER from all DoCommandPs to the command table 16 years ago
smatz 09cd9a8017 (svn r14815) -Codechange: separate 'highscore' code from 'company' code 16 years ago
smatz afef22e3e7 (svn r14812) -Codechange: use INVALID_TILE instead of 0 to mark company without HQ 16 years ago
rubidium 683b65ee18 (svn r14755) -Codechange: remove ending year as it can't be changed anyways. 16 years ago
rubidium 87e5a8b52b (svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter. 16 years ago
rubidium c9a82ac3e7 (svn r14423) -Codechange: also do r14221 for the strings. 16 years ago
rubidium b650a86e58 (svn r14422) -Codechange: also reflect the changes of r14421 in the filenames. 16 years ago