Commit Graph

305 Commits

Author SHA1 Message Date
rubidium 062dd0e24c (svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int 2010-05-13 10:14:29 +00:00
smatz f051066bc4 (svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit 2010-02-24 14:46:15 +00:00
rubidium 7a73a7490d (svn r19090) -Codechange: some comment coding style fixes 2010-02-10 21:06:05 +00:00
frosch 88019e64e1 (svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick(). 2010-01-30 18:34:48 +00:00
rubidium f94c83a387 (svn r18872) -Codechange: introduce PaletteID and use it 2010-01-21 01:38:13 +00:00
rubidium 82fc28f77f (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 2010-01-15 16:41:15 +00:00
yexo fa23617380 (svn r18729) -Fix [FS#3427]: the lock in the company gui was only drawn for your own company 2010-01-04 23:00:19 +00:00
alberth ba3ef1a2d5 (svn r18664) -Fix [FS#3449]: Unshade shaded finances window when toggling size. 2009-12-30 08:40:05 +00:00
rubidium 454e124912 (svn r18652) -Fix: glitches due to having the wrong bounding boxes for the face widgets 2009-12-28 13:04:18 +00:00
alberth 3323d64f28 (svn r18606) -Codechange: Introduce several forms of zero-size stacked display planes. 2009-12-22 20:43:25 +00:00
alberth 7dbc77a1e7 (svn r18605) -Codechange: Coding style fixes, prevent useless calls to UpdateWidgetSize(). 2009-12-22 19:40:23 +00:00
alberth 91872aca48 (svn r18588) -Feature [FS#2943]: Add shading and unshading of windows. 2009-12-21 16:24:29 +00:00
rubidium ac4ef286f4 (svn r18447) -Change: make some more windows (e.g. graphs, company view) stickyable 2009-12-09 17:10:57 +00:00
alberth bb19a2e757 (svn r18346) -Codechange: Compute size of face part display buttons only once in face window. 2009-11-29 21:16:37 +00:00
alberth 548f47af58 (svn r18337) -Codechange: Remove 2x2 {SKIP} in the company finances window + strings. 2009-11-29 12:52:08 +00:00
rubidium b00a5f1069 (svn r18330) -Cleanup: remove some unneeded includes 2009-11-28 20:35:25 +00:00
rubidium 1f0da3710f (svn r18324) -Codechange: there's no need for a default size when the window isn't resizable 2009-11-28 15:01:49 +00:00
rubidium 293dfd7c3e (svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice. 2009-11-28 14:42:35 +00:00
alberth a427ab751d (svn r18317) -Codechange: Merge both face windows into a single window description and widget parts array. 2009-11-28 13:47:57 +00:00
alberth 4999a76b3e (svn r18316) -Codechange: Introduce selection widgets to enable turning parts of the face window on and off. 2009-11-28 13:45:03 +00:00
alberth 3b1d471838 (svn r18315) -Codechange: Remove fixed minimal sizes of the other widgets in both face windows. 2009-11-28 13:43:53 +00:00
alberth 692a45c352 (svn r18313) -Codechange: Decide the size of the widgets displaying values of parts in the advanced face window dynamically. 2009-11-28 13:42:35 +00:00
alberth 0be86e295b (svn r18312) -Codechange: Simplify the nested widget part arrays of both face windows, and move a bit towards merging. 2009-11-28 13:40:41 +00:00
rubidium ff32ea24fc (svn r18311) -Codechange: no need to hardcode locations of some 'random' windows 2009-11-28 13:38:34 +00:00
alberth 2dbf1d72f9 (svn r18310) -Codechange: Introduce widgets for the names of the parts in the advanced face editing window, 2009-11-28 13:34:49 +00:00
rubidium 8d6e323ef8 (svn r18280) -Codechange: remove widget indices that are not needed for custom drawing/handling input 2009-11-24 21:13:36 +00:00
rubidium 14300d309c (svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions 2009-11-24 18:05:55 +00:00
rubidium 69b6d9309a (svn r18274) -Codechange: remove the unused WDF flags 2009-11-24 17:28:29 +00:00
rubidium b6b5515335 (svn r18265) -Codechange: make the finance overview window big font aware 2009-11-24 12:42:36 +00:00
alberth 450e40b997 (svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize(). 2009-11-22 18:28:14 +00:00
alberth 2b6f792513 (svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool. 2009-11-22 18:26:01 +00:00
alberth bf93372ca2 (svn r18220) -Codechange: Reduce number of nested widget dynamic casts. 2009-11-22 13:22:53 +00:00
rubidium a95655b7c8 (svn r18217) -Codechange: make the livery window big font aware 2009-11-22 13:01:07 +00:00
rubidium 186295ca85 (svn r18215) -Codechange: make the simple face window big font aware 2009-11-22 12:18:26 +00:00
rubidium d913282e7a (svn r18212) -Codechange: remove unneeded 'parameters' for WWT_CAPTION, WWT_CLOSEBOX and WWT_STICKYBOX in the nested widget arrays 2009-11-22 11:20:12 +00:00
rubidium 77d6c4e07a (svn r18199) -Codechange: make the company view window RTL aware and somewhat big font aware 2009-11-20 17:36:46 +00:00
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) 2009-11-19 17:57:27 +00:00
rubidium c461ccfecb (svn r18166) -Codechange: make the livery colour window RTL aware 2009-11-18 12:45:20 +00:00
rubidium 5f2ddfbc5a (svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets 2009-11-17 19:16:48 +00:00
smatz c71e3548d7 (svn r18102) -Codechange: simplify Company::Get(this->window_number)->index to just this->window_number 2009-11-15 18:21:17 +00:00
alberth 7337a0553c (svn r18091) -Codechange: CompanyWindow uses pure nested widgets. 2009-11-15 13:31:27 +00:00
rubidium 3d2d7af88f (svn r18086) -Codechange: remove 'widget' from WindowDesc 2009-11-15 10:26:01 +00:00
alberth 1b72fa84e2 (svn r18085) -Codechange: Make the company face window use nested widgets. 2009-11-15 09:46:40 +00:00
rubidium 16c2e53191 (svn r18078) -Codechange: remove some duplicate (non translatable) strings 2009-11-14 15:37:33 +00:00
alberth 668a98909b (svn r18077) -Codechange: Make the livery window use pure nested widgets. 2009-11-14 15:34:21 +00:00
rubidium 9cc07a1e98 (svn r18018) -Codechange: make the 'buy company' window nested 2009-11-08 19:21:18 +00:00
alberth 44aacfc59f (svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
Gentlemen, swap your string parameters.
2009-10-31 19:46:51 +00:00
alberth 70ec375dc5 (svn r17756) -Codechange: Company finances window uses pure nested widgets. 2009-10-10 15:18:20 +00:00
alberth 402d0d05c9 (svn r17754) -Codechange: Make ExpensesList::GetHeight() return a uint. 2009-10-10 13:32:44 +00:00
alberth 2e2f3b1502 (svn r17753) -Fix (r17750): Expenses amounts were printed two pixels too low. 2009-10-10 13:19:38 +00:00
alberth ef8a3d6d94 (svn r17750) -Codechange: Financial expenses panel handles different font size, replaced magic numbers by constants. 2009-10-09 19:10:05 +00:00
alberth 429449cab8 (svn r17740) -Codechange: Extract financial expenses drawing routines. 2009-10-07 19:18:36 +00:00
alberth 95dfee1c60 (svn r17724) -Codechange: Merge magic height values toghether in finances window. 2009-10-06 18:24:06 +00:00
rubidium d6cded5380 (svn r17693) -Cleanup: remove some unneeded includes 2009-10-04 17:16:41 +00:00
alberth ceab116065 (svn r17573) -Codechange: NWID_SELECTION containers have a selected widget-plane, and optionally an index in the nested_array. 2009-09-19 11:55:44 +00:00
rubidium e8ddf001c8 (svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos 2009-09-19 09:51:14 +00:00
frosch ebd916be3d (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 2009-09-13 19:15:59 +00:00
rubidium aca7ba714a (svn r17271) -Fix: SetFill sometimes used 1/0 when it should be using true/false 2009-08-23 19:03:09 +00:00
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 2009-08-21 20:21:05 +00:00
rubidium 1fe3ad3288 (svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives 2009-08-05 17:59:21 +00:00
rubidium 96cc9c2de1 (svn r16954) -Codechange: make the Game Options window use the nested widget system. 2009-07-25 15:10:52 +00:00
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. 2009-07-22 22:44:56 +00:00
alberth d0a47fc1b4 (svn r16845) -Codechange: Introduction of constants for describing the bits in a WWT_MATRIX data field. 2009-07-16 16:22:23 +00:00
smatz 95c7993451 (svn r16809) -Fix [FS#3021](r13096): automatic resizing of SelectCompanyLiveryWindow wasn't working as expected 2009-07-13 12:00:56 +00:00
smatz 15990079ce (svn r16716) -Codechange: reduce code duplication in DrawCompanyVehiclesAmount() 2009-07-01 21:33:06 +00:00
smatz bea3fe2b8b (svn r16559) -Codechange: introduce Company::IsValidAiID() and Company::IsValidHumanID(), don't use IsHumanCompany() where possible 2009-06-10 22:05:01 +00:00
smatz 871107f529 (svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index) 2009-05-17 01:00:56 +00:00
smatz 6221d74644 (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 2009-05-16 23:34:14 +00:00
rubidium 5f81ba886c (svn r16297) -Codechange: silence more ICC warnings 2009-05-13 17:39:00 +00:00
alberth 7abcb8d368 (svn r16208) -Codechange: Added nested widgets for the buy company and show company windows. 2009-05-03 08:27:12 +00:00
alberth 553dcd02a7 (svn r16207) -Codechange: Added and applied BuyCompanyWidgets enum.
-Doc: Small fixes and additions to documentation.
2009-05-03 08:13:14 +00:00
rubidium 53887e07bb (svn r16160) -Codechange: remove the need for explicit TC_FROMSTRING for DrawString. 2009-04-26 14:52:56 +00:00
rubidium 11c6d30e77 (svn r16156) -Codechange: make the parameters of DrawStringMultiline the same as for DrawString (except the addition of the bottom parameter) 2009-04-26 10:45:07 +00:00
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. 2009-04-21 23:40:56 +00:00
rubidium 329cabab4f (svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing 2009-04-19 10:31:30 +00:00
glx bf354564ce (svn r15880) -Codechange: add an invisible widget on company manager face windows to position company manager face image 2009-03-28 15:20:03 +00:00
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. 2009-03-28 14:55:11 +00:00
peter1138 f30f5607e3 (svn r15877) -Codechange: Let drop down lists know about font height. 2009-03-28 12:47:29 +00:00
glx 83fb6b50bb (svn r15869) -Codechange: New widgets for select manager face and select livery windows 2009-03-28 04:14:02 +00:00
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
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
rubidium 57174a9301 (svn r15808) -Codechange: use the new DrawString API in a number of GUIs 2009-03-22 12:01:21 +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
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
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 f9def73be6 (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 b25a4f8231 (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 2009-03-15 00:32:18 +00:00
rubidium 9d018723b7 (svn r15711) -Codechange: lots of whitespace cleanup/fixes 2009-03-14 18:16:29 +00:00
rubidium 05792c46a3 (svn r15429) -Change: do r15428 also for the string names. 2009-02-09 03:07:03 +00:00
rubidium c0a8d09ca7 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 2009-02-09 02:57:15 +00:00
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 2009-02-09 02:33:10 +00:00
rubidium ac7757324e (svn r15338) -Fix [FS#2598]: close all construction related windows whenever changing company. 2009-02-04 16:59:41 +00:00
peter1138 6899955b0c (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 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 2009-01-31 20:16:06 +00:00
rubidium 3d21639d5b (svn r15247) -Change: show a lock near the password/join button in the company window whenever the company is password protected 2009-01-23 23:56:56 +00:00
rubidium 04709f2798 (svn r15242) -Feature: allow moving clients between companies/spectators by the server and the clients themselves (dihedral) 2009-01-23 22:18:06 +00:00
rubidium 5fcf07f388 (svn r14895) -Change: move CMD_NO_WATER from all DoCommandPs to the command table 2009-01-07 14:45:07 +00:00
smatz 09cd9a8017 (svn r14815) -Codechange: separate 'highscore' code from 'company' code 2009-01-03 18:44:20 +00:00
smatz afef22e3e7 (svn r14812) -Codechange: use INVALID_TILE instead of 0 to mark company without HQ 2009-01-03 17:11:52 +00:00
rubidium 683b65ee18 (svn r14755) -Codechange: remove ending year as it can't be changed anyways. 2008-12-28 16:09:58 +00:00
rubidium 87e5a8b52b (svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter. 2008-12-28 14:37:19 +00:00
rubidium c9a82ac3e7 (svn r14423) -Codechange: also do r14221 for the strings. 2008-09-30 21:18:28 +00:00
rubidium b650a86e58 (svn r14422) -Codechange: also reflect the changes of r14421 in the filenames. 2008-09-30 20:51:04 +00:00
Renamed from src/player_gui.cpp (Browse further)