frosch
fb10e6a19e
(svn r18306) -Codechange: Remove the need for SETX from checkboxish menu items.
15 years ago
frosch
372aa6ff5f
(svn r18305) -Codechange: Replace some 2s with WD_FRAMERECT_(LEFT|RIGHT).
15 years ago
rubidium
a14d00c478
(svn r18289) -Codechange: if using RTL draw the toolbar in the reverse direction so the buttons overlap 'nicely'
15 years ago
smatz
f7466979b9
(svn r18281) -Feature: founding towns in-game (based on work by Belugas, TheJosh, GeekToo, Terkhen and others)
15 years ago
rubidium
f8b79068e6
(svn r18274) -Codechange: remove the unused WDF flags
15 years ago
rubidium
919691da86
(svn r18261) -Codechange: center the company icons in the toolbar dropdowns
15 years ago
alberth
5bee09c924
(svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize().
15 years ago
alberth
18b33fde83
(svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool.
15 years ago
alberth
75e513d5b5
(svn r18201) -Codechange (r18092): No need anymore for initializing nested widgets for Widget* arrays.
15 years ago
rubidium
8e24df4d45
(svn r18165) -Codechange: make company dropdowns RTL aware
15 years ago
rubidium
8e11cd3a42
(svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets
15 years ago
rubidium
d4cbcc145b
(svn r18108) -Fix (r17986): crash when clicking just 'outside' of the date panel
15 years ago
rubidium
1f6f15a126
(svn r18092) -Codechange: remove support for the unnested widgets
15 years ago
rubidium
b01251092e
(svn r18086) -Codechange: remove 'widget' from WindowDesc
15 years ago
rubidium
2396f693a2
(svn r18033) -Codechange: make the padding for IMGBTN_2 the same as for IMGBTN; the image doesn't move, so the extra space at the right and bottom aren't needed
15 years ago
rubidium
b2d7edddfa
(svn r18027) -Codechange: make some unneededly global variables static and remove some unused variables
15 years ago
rubidium
6be5448536
(svn r17986) -Codechange: make the scenario 'main' toolbar nested. Also make it implement the 'switch' toolbar feature when it gets really small.
15 years ago
rubidium
c4c6ed7df0
(svn r17985) -Codechange: make the toolbar container support non-resizable widgets and subclassing of itself.
15 years ago
rubidium
752c4e30c5
(svn r17973) -Fix: 'save' toolbar button didn't change when clicking it
...
-Fix: wrong widgets (e.g. finances and company) could be visually disabled, based on the state of the zoom in/out buttons. However, they were still clickable
-Codechange: make the main toolbar a nested window
15 years ago
rubidium
9fc2e8d269
(svn r17971) -Codechange: make the code of the toolbar more uniform; give the switch bar a tooltip and unify the naming of sprites.
15 years ago
rubidium
c3243891a4
(svn r17970) -Codechange: some coding style / improvement of constant usage
15 years ago
rubidium
f6e661a3d0
(svn r17969) -Codechange: use the toolbar switch button lowered state as a way to tell which of the configurations it's showing
15 years ago
smatz
a80f582a8a
(svn r17938) -Feature: non-automatic screenshot name can be entered in console
15 years ago
rubidium
c1365b3cc1
(svn r17853) -Codechange: remove the 'delta' parameter from OnResize; it was used in ways that aren't always wanted, causing bugs and the like. Also with nested widgets most reasons for handling OnResize have gone.
15 years ago
rubidium
24dbdac0ac
(svn r17748) -Fix: crash when right clicking on the 'toggle' toolbar button
15 years ago
rubidium
982b8ee5fc
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
smatz
13437a998e
(svn r17603) -Codechange: since now, towns are 'founded' instead of 'built'
15 years ago
smatz
f85b8c4e09
(svn r17596) -Codechange: constify some tables
15 years ago
frosch
0e36260337
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
15 years ago
frosch
263952f557
(svn r17525) -Cleanup: Remove SetWindowDirty(), it is completely covered by other functions already.
15 years ago
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
alberth
9c6d5f155a
(svn r17192) -Fix (r17175): Buttons in the toolbar of the scenario editor did not raise again.
15 years ago
rubidium
d61be2637e
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
15 years ago
rubidium
5bb7b8ad35
(svn r17062) -Change: unify the naming of some 125 strings
15 years ago
rubidium
e6c1f389fc
(svn r16951) -Change: order the strings in the options dropdown slightly more logical
15 years ago
rubidium
37cd0ef443
(svn r16949) -Codechange: unify the way the DisplayOption enums are written
15 years ago
rubidium
4874578e79
(svn r16930) -Codechange: more StringID name unification and grouping
15 years ago
smatz
61e668929f
(svn r16497) -Feature [FS#2870]: Q/W/E/D will now open the landscape toolbar and select appropriate tool
16 years ago
smatz
72165d32c8
(svn r16430) -Fix: crash when a company is deleted while a dropdown with company names is open
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
f08ff3e707
(svn r16321) -Fix (r5946): in the scenario editor change the (starting) game year of the scenario, not the (starting) game year for new games/scenarios.
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
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
alberth
bbd546b792
(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback
16 years ago
glx
583c756679
(svn r15784) -Fix (r15779): TextAlignment and TA_* already exist on windows
16 years ago
rubidium
303a8f9673
(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.
16 years ago
rubidium
b3b4be2dde
(svn r15782) -Codechange: replace some calls to the all text drawing API to the new one.
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
f3e0fd7416
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
16 years ago
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.
16 years ago
peter1138
519277f980
(svn r15448) -Codechange: Don't show rail types in selection drop downs if they have no label.
16 years ago
rubidium
a7693c6059
(svn r15425) -Codechange: some color->colour changes and type safety.
16 years ago
rubidium
5080feba0d
(svn r15424) -Codechange: make it possible to have multiple windows with edit box open simultaniously (Zuu).
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
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
glx
c40406a237
(svn r15254) -Fix (r15242): of course MSVC requires a cast
16 years ago
rubidium
2722cabcce
(svn r15242) -Feature: allow moving clients between companies/spectators by the server and the clients themselves (dihedral)
16 years ago
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
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
572423d06c
(svn r14283) -Fix [FS#2281](r14175): beep only after clicking on the main toolbar, not after finishing the selection
16 years ago
peter1138
4071e36f36
(svn r14181) -Fix (r14175): Rail types are not road types
16 years ago
peter1138
c805cd6328
(svn r14175) -Codechange: Rewrite the main toolbars to use the standard dropdown menu system, allowing flexible menus instead of fixed string lists, and removing code duplication.
16 years ago
belugas
98d8501278
(svn r13970) -Codechange: Replace numbers with Colours enum on network, toolbar and dropdown guis.
...
Mostly forgotten ones.
16 years ago
belugas
7ef5369306
(svn r13919) -Codechange: Replace numbers with Colours enum on osk(forgot 2 assignations), statusbar, subsidy, terraform, timetable, toolbar, town, tree and vehicle guis.
16 years ago
rubidium
cde65455ac
(svn r13731) -Codechange: make a pool of the array of players.
16 years ago
belugas
a380976a2a
(svn r13672) -Fix(r13670): silent warnings that MSVC did not raised. Looks like enums can not be easily matched :(
16 years ago
belugas
741044e97b
(svn r13670) -Codechange : Merge some very alike events handlers.
16 years ago
belugas
490f013c58
(svn r13663) -Codechange: Use a default parameter, hoping to reduce the different signatures of functions in menus
16 years ago
frosch
cfdc710104
(svn r13649) -Codechange: Split the GfxFillRect() special flags from 'color' into their own parameter.
16 years ago
belugas
54333f5f06
(svn r13646) -Change: typos and miss-aligned enum values
16 years ago
belugas
fef077823d
(svn r13644) -Fix(r13643): compare an apple with an apple. MSVC seems to not care, but some other compilers do.
...
Thanks to glx :)
17 years ago
belugas
16e2717c0e
(svn r13643) -Codechange: Enumify some loosely related values been used in the toolbar resizing processes
17 years ago
belugas
554419d735
(svn r13642) -Documentation: Add the enum values to the widget arrays, in concordance with code style
17 years ago
belugas
5eabd09a97
(svn r13641) -Fix: Misleading enum name.
17 years ago
skidd13
3dea3cbe63
(svn r13628) -Feature: enable building of aqueducts in the scenario editor
...
-Codechange: related to this split the waterway based buttons from the landscape generation window
17 years ago
belugas
915a9ea6bd
(svn r13597) -Codechange: Enumification of the Map menu items.
...
The rework allowed to remove a function, by merging two quite similar ones.
17 years ago
belugas
84df01f00b
(svn r13590) -Codechange: Enumification of the Save/Load menu items
17 years ago
belugas
6fa570762c
(svn r13588) -Documentation: Document the function PopupMainPlayerToolbMenu. Makes it a bit clearer, don't you think?
17 years ago
belugas
0fdb8057bb
(svn r13586) -Codechange: Using default parameter, for cases where there are few exceptions.
17 years ago
belugas
424a7935ad
(svn r13562) -Codechange: Yet another enumification, which required a bit of explanation/documentation of a trickery some would call a hack
17 years ago
belugas
5e8e2709d0
(svn r13561) -Codechange: two more enumifications of widgets
17 years ago
belugas
db174b8b9b
(svn r13560) -Fix(r13550): This section widget_count did not required to be lowered. So small revert
17 years ago
belugas
b8b47dcf50
(svn r13559) -Codechange: Enumification of the Options menu items
17 years ago
belugas
4bbe69f881
(svn r13550) -Fix(r13540, r13542): widget_count did not had the same value as 27. So, it has to be lowered by one, so it can be used as a widget "pointer"
17 years ago
belugas
fb4619c8ea
(svn r13543) -Codechange: Enumification of the InGame toolbar and some leftovers of scenario editor one.
...
Still more go do
17 years ago
belugas
365705209b
(svn r13542) -Codechange: Less a few more magic numbers and a code a bit more adaptable, still
17 years ago
belugas
f5b1b5a640
(svn r13541) -Codechange: Aligning some switch case. Code cosmetics.
17 years ago
belugas
7b873ce0bc
(svn r13540) -Codechange: Less a magic number and a more adaptable code
17 years ago
belugas
b08db89d30
(svn r13536) -Codechange: Bit shifting is not really required when you know exactly the value to use.
...
Even more when it's a parameter.
17 years ago
belugas
e044910d52
(svn r13515) -Codechange: Widget enumification for scenario editor
17 years ago
belugas
cec90c1af1
(svn r13514) -Codechange: Removal of dead code (or useless, to be more exact)
17 years ago
belugas
5d2ee7ecde
(svn r13504) -Codechange: enumify some widgets for scenario editor. More work is required.
17 years ago