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
alberth
bbd546b792
(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback
16 years ago
smatz
ce4f598cf5
(svn r15830) -Codechange: don't use fixed size of array in news_gui.cpp and news_func.h
16 years ago
alberth
8f5f39cf09
(svn r15820) -Codechange: Some windows using nested widgets
16 years ago
rubidium
2e38d7c332
(svn r15812) -Codechange: use the new DrawString API in another set of GUIs
16 years ago
rubidium
31a5457c03
(svn r15803) -Codechange: use the new text drawing API for multicenter
...
-Fix (r15800): off-by-one w.r.t. offsets
16 years ago
rubidium
2a422e3e95
(svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API.
16 years ago
rubidium
89d614deea
(svn r15790) -Codechange: remove the *Centered part of the old text drawing API.
16 years ago
rubidium
c1aabd9842
(svn r15785) -Codechange: remove the *Truncated part of the old text drawing API.
16 years ago
smatz
d28895c88b
(svn r15725) -Fix: centering on a vehicle didn't respect its z coordinate
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
f3e0fd7416
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
16 years ago
rubidium
89e1afdaa0
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
16 years ago
rubidium
a7693c6059
(svn r15425) -Codechange: some color->colour changes and type safety.
16 years ago
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
smatz
11822aa8ef
(svn r14940) -Fix: let the statusbar know the current news are invalid or bad things will happen
16 years ago
rubidium
96156a8ab1
(svn r14423) -Codechange: also do r14221 for the strings.
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
smatz
7e4e999a97
(svn r14307) -Fix: when deleting a station, remove news items regarding it
16 years ago
belugas
128df8ec8a
(svn r13897) -Codechange: Replace remaining numbers with Colours enum on news guis
...
-Fix: a few misalignements
16 years ago
belugas
7e4b1e2d84
(svn r13872) -Feature: Split the news message announcing opening and closure of industries into two news of their own
16 years ago
belugas
dc25683255
(svn r13867) -Codechange: Fix missing alignment
16 years ago
rubidium
56ad26a3aa
(svn r13730) -Fix: make a copy of the names for news messages about the deletion of companies as the removal of a company could lead to wrong names in the news messages.
16 years ago
frosch
cfdc710104
(svn r13649) -Codechange: Split the GfxFillRect() special flags from 'color' into their own parameter.
16 years ago
smatz
e1d2cd6983
(svn r13434) -Fix (r13317): news window with invalid news item could be shown
17 years ago
rubidium
bb758700a8
(svn r13389) -Codechange: remove NM_CALLBACK because that information could be gathered from the fact that a callback has been specified. Patch by Cirdan.
17 years ago
rubidium
f0f4e9d6ec
(svn r13349) -Codechange: remove a pointless flag; the flag is set before calling a function and is then reset in the function without ever reading it. Patch by Cirdan.
17 years ago
rubidium
20228809f0
(svn r13345) -Codechange: only one of all the NewsItem's instance duration variable, so move it so there is only once instance of that variable. Patch by Cirdan.
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
rubidium
d3d0432314
(svn r13317) -Codechange: make news messages use a linked list instead of a moving circular buffer. This makes it possible to store more news messages in the history. Based on a patch by Cirdan.
...
-Codechange: the number of news messages is reduced by removing every news message that is a configurable amount older than when it would not be shown in the newspaper popup/ticker, which is e.g. a month for industry production changes and half a year for subsidy offers. As a result the more important messages will stay longer in the message history (if longer than 30 messages).
17 years ago
rubidium
f88349843a
(svn r13316) -Codechange: move some functions around to make them grouped more logically.
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
peter1138
cfc45e97ab
(svn r13225) -Fix (r13041): Missing calls to FindWindowPlacementAndResize() from lots
...
of windows causing 'two stage' opening effect.
17 years ago
rubidium
162e2e074b
(svn r13185) -Codechange: remove everything related to the WindowProc callbacks.
17 years ago
rubidium
03f1292332
(svn r13181) -Codechange: make news callback handling a little simpler. Patch by Cirdan.
17 years ago
rubidium
8846d4380f
(svn r13154) -Codechange: make a window class of the news message history window.
17 years ago
rubidium
d284ba2283
(svn r13151) -Codechange: use an enum instead of bool as return type of OnKeyPress/OnCTRLStateChange to make it obvious what the return values mean.
17 years ago
rubidium
4db10034fd
(svn r13147) -Codechange: move the code to draw bankruptcy news to news_gui.cpp.
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
349aec37e6
(svn r13115) -Codechange: make a window subclass of the MessageOptionsWindow.
17 years ago
rubidium
083d7e8726
(svn r13114) -Codechange: use InvalidateData instead of direct window access to modify the state of the statusbar from outside the statusbar.
17 years ago
rubidium
01e79dde73
(svn r13111) -Documentation: update the documentation of AddNewsItem to reflect reality. Patch by Cirdan.
17 years ago
rubidium
ca8d282eff
(svn r13102) -Codechange: make a class of the NewsWindow.
17 years ago
rubidium
373343cef6
(svn r13100) -Codechange: reduce the amount of parameters passed via AddNewsMessage as there is (for each news message type) a tuple of 4 parameters that is the same for all calls.
17 years ago
rubidium
5d7851e8d6
(svn r13065) -Codechange: remove the need for the news string callbacks. Patch by Cirdan.
17 years ago
glx
dacd2c5de8
(svn r13047) -Codechange: remove vp_d
17 years ago
rubidium
4a46a5cdda
(svn r13043) -Codechange: remove some duplicate variables from news_d.
17 years ago
rubidium
f710876037
(svn r13028) -Codechange: WE_MESSAGE and WE_INVALIDATE_DATA were doing the same thing.
17 years ago
rubidium
ee0a49c91a
(svn r13021) -Codechange: free data_b for other uses when it is not used to store a second tile to skip to (in news messages). Patch by cirdan.
17 years ago
rubidium
51cda2252c
(svn r13004) -Codechange: replace AllocateWindow and AllocateWindowDesc with a Window constructor.
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
8796331d83
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
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
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
peter1138
7e70d9f09f
(svn r12952) -Cleanup: Indenting and codestyle
17 years ago
glx
2c057b318e
(svn r12842) -Codechange [FS#1604]: scale message history by map size
17 years ago
rubidium
650651064b
(svn r12805) -Codechange: remove some bit magic related to the news display states. Patch by cirdan.
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
bfd2cac6e2
(svn r12785) -Codechange: put all news-type related constants in the same array. Patch by cirdan.
17 years ago
rubidium
f4b07a78c4
(svn r12762) -Fix: tabs after the first non-tab character are generally not okay (or lines starting with a space and then tabs).
17 years ago
rubidium
c7357bee94
(svn r12750) -Fix (r12749): viewport for industry new messages was not shown properly.
17 years ago
rubidium
48d95252d5
(svn r12683) -Fix [FS#1906]: in some cases a news messages would not be shown.
17 years ago
rubidium
bb1f657076
(svn r12475) -Codechange: cleanup coding style in news_gui.cpp.
17 years ago
rubidium
2426f5342f
(svn r12459) -Codechange: split news.h into news_type.h and news_func.h.
17 years ago
peter1138
8794c5bc3c
(svn r11909) -Codechange: use dropdown widget for player livery, network lobby/setup and news settings windows
17 years ago
peter1138
1fa2285327
(svn r11848) -Codechange: New class-based drop down list functionality. Lists are now dynamically generated, and can include parameters, or be extended however needed.
17 years ago
rubidium
9c0c798dd8
(svn r11834) -Codechange: only include settings_type.h if needed.
17 years ago
rubidium
fafab82a31
(svn r11832) -Codechange: get rid of (quite) some VARDEFs.
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
64d691bacc
(svn r11787) -Codechange: more header rewrites. This time related to viewport.h.
17 years ago
rubidium
b09d957f31
(svn r11777) -Codechange: split the string header and make do not include it when it's not necessary.
17 years ago
rubidium
445a733eb6
(svn r11719) -Codechange: split sound.h in a header with types and one with functions.
17 years ago
rubidium
722613f7f3
(svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
17 years ago
rubidium
db73addb43
(svn r11702) -Codechange: move all date related stuff to date*.
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
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
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
glx
b00f621239
(svn r11588) -Codechange: use the new member introduced in r11551
17 years ago
rubidium
92cb0e45ca
(svn r11555) -Codechange: use the new members introduced in r11551.
17 years ago
skidd13
f56579e0d9
(svn r11526) -Codechange: Rename the function delta fitting to the naming style
17 years ago
rubidium
fbd234d274
(svn r11442) -Feature: make news messages related to the industry (production) changes better configurable; you can now disable news messages popping up for industries you are not servicing. Patch by Alberth.
17 years ago
belugas
7501144775
(svn r11404) -Codechange: remove 2 magical numbers
17 years ago
belugas
f26a591e6c
(svn r11399) -Feature(ette): transparency settings can now be saved and thus remembered.
...
-Codechange: Wrap all transparency settings in accessors, hiding the implementation
-Change: Clicking "transparent building" menu will toggle Houses And Trees only. The other options can be used in the transparency gui.
Initial patch by Smatz (FS#1349), with some rework by BigBB and your humble servant.
17 years ago
belugas
e2c0f1faf7
(svn r11374) -Codechange: Give meaning to the magical number that specifies the color of the text in a DrawString call.
...
Patch heavily based on BiBB's work (FS#1383)
17 years ago
rubidium
752eb0e8f5
(svn r11125) -Documentation: add/update the documentation of news*. Based on a patch by Progman.
17 years ago
rubidium
13ab17bca8
(svn r10704) -Codechange: provide an infrastructure to have resizable windows that are smaller than the default window size.
17 years ago
rubidium
df009178d4
(svn r10587) -Codechange: move the string/dparam related stuff from variables.h to strings.h
17 years ago
truelight
dc191785db
(svn r9844) -Codechange: replace zoomlevel with an enum
...
-Codechange: use predefined enums for viewport zoomlevels
18 years ago
truelight
0ac14b39af
(svn r9731) -Fix [FS#677]: in news history, newlines weren't replaced with spaces, making it look ugly from time to time
18 years ago
belugas
097b3b3c7b
(svn r9662) -Documentation: Doxygen corrections and @file omissions
18 years ago
peter1138
51d72c11c8
(svn r9563) -Feature: Add more finer control to transparency options, including a new toolbar, accessible from the map menu or Ctrl X. Patch by Wolf01.
18 years ago
belugas
8952924c64
(svn r9385) -Cleanup: doxygen changes. Today, we are exploring the letter N.
18 years ago
truelight
b1e8191040
(svn r9137) -Fix: if all news-setting buttons show 'full', make the ALL-button show 'full' too
18 years ago
truelight
de5beec61c
(svn r9097) -Fix [FS#525]: open and close messages now have their own setting, so you can hide economy changes, but do show open/close of industries
...
-Change: store news_display_opt in his own section, so it is no longer stored as uint in openttd.cfg (allows adding news-types easier)
18 years ago
belugas
b57ef910f8
(svn r9089) -Codechange: Remove the 32 widgets limit on News Options window.
...
-Codechange: Use the newly created WWT_TEXT widget.
-Cleanup: remove a lot of magic numbers, make the whole window more flexible, with now the possibility to easily add new type of news events.
Thanks glx for ideas from an old patch
18 years ago
rubidium
4169bfba06
(svn r9050) -Codechange: Foo(void) -> Foo()
18 years ago
rubidium
356c2e2c90
(svn r9001) -Codechange: remove duplication of functions and strings with respect to the news of new vehicles.
18 years ago
Darkvater
27fc1300e2
(svn r8977) -Codechange: Remove the hardcoded maximum width for some drawstrings and replace them with a portion of w->width. Only visible improvement is QueryWndProc which will not write exactly to the edge of the window anymore.
18 years ago
rubidium
2a9851a3ad
(svn r8511) -Codechange: make WindowClass an enumerated value.
18 years ago
Darkvater
783902838e
(svn r8409) -Regression (r8049): When the latest news was deleted, the news queue wrapped back to the oldest item, showing all news again.
...
-Regression [FS#573] (r8049): ShowLastNewsMessage could show an out-of-bounds news item because it did not checked if a previous item actually existed the first time it is called (forced news is INVALID_NEWS).
18 years ago
peter1138
ca9843424b
(svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit values.
...
This lets us increase the sprite width from 14 to up to 29 bits,
effectively nulling the old sprite limit. Table changes in next commit.
18 years ago
Darkvater
e29124d48b
(svn r8049) -Regression (r7369): Removing certain news windows could cause a crash due to only
...
one MoveToNextItem() in DeleteVehicleNews (added in r3757). To work correctly do not
reset _forced_news to INVALID_NEWS when a new item is added, but leave it.
-Codechange: ShowLastNewsMessage has been changed so that it actually works, wraps
around correctly (array as FIFO) and shows the previous news item if the current
news item is open (previously this was doubly shown).
18 years ago
rubidium
a7d0cdf95f
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
18 years ago
KUDr
07c30785ab
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
18 years ago