Thu, 05 Oct 2006 23:10:58 +0000(svn r6657) -Change: [depot window] sell all vehicles in depot confirm window now opens on top of depot window instead of in the middle of the screen
bjarni [Thu, 05 Oct 2006 23:10:58 +0000] rev 4745
(svn r6657) -Change: [depot window] sell all vehicles in depot confirm window now opens on top of depot window instead of in the middle of the screen

Thu, 05 Oct 2006 19:00:24 +0000(svn r6656) -Fix r6631: keep gender button lowered when clicking on 'New Face'
glx [Thu, 05 Oct 2006 19:00:24 +0000] rev 4744
(svn r6656) -Fix r6631: keep gender button lowered when clicking on 'New Face'

Thu, 05 Oct 2006 18:35:09 +0000(svn r6655) WebTranslator2 update to 2006-10-05 20:34:35
miham [Thu, 05 Oct 2006 18:35:09 +0000] rev 4743
(svn r6655) WebTranslator2 update to 2006-10-05 20:34:35
dutch - 3 fixed, 2 changed by habell (5)
german - 3 fixed, 2 changed by Neonox (5)
italian - 3 fixed by sidew (3)
ukrainian - 17 fixed, 2 changed by znikoz (19)

Thu, 05 Oct 2006 15:07:34 +0000(svn r6654) - Codechange: If no 2cc vehicles are available, hide the secondary colour choice.
peter1138 [Thu, 05 Oct 2006 15:07:34 +0000] rev 4742
(svn r6654) - Codechange: If no 2cc vehicles are available, hide the secondary colour choice.

Thu, 05 Oct 2006 14:04:24 +0000(svn r6653) -Fix r6624: [autoreplace] autoreplace will no longer replace a vehicle if the old type can refit to the cargo types being used in the refit orders and the new one lacks one or more of those refit capabilities
bjarni [Thu, 05 Oct 2006 14:04:24 +0000] rev 4741
(svn r6653) -Fix r6624: [autoreplace] autoreplace will no longer replace a vehicle if the old type can refit to the cargo types being used in the refit orders and the new one lacks one or more of those refit capabilities

Thu, 05 Oct 2006 13:11:17 +0000(svn r6652) -Feature: [depot window] depot lists are now sorted, so vehicle 1 is always first and so on
bjarni [Thu, 05 Oct 2006 13:11:17 +0000] rev 4740
(svn r6652) -Feature: [depot window] depot lists are now sorted, so vehicle 1 is always first and so on
This should not be a big slowdown as it's only called each time the list is generated and will normally be much faster than the list generation itself (only a small % of the total number of vehicles is in the depot)

Thu, 05 Oct 2006 12:59:28 +0000(svn r6651) -Coding feature: added the windowevent WE_INVALIDATE_DATA
bjarni [Thu, 05 Oct 2006 12:59:28 +0000] rev 4739
(svn r6651) -Coding feature: added the windowevent WE_INVALIDATE_DATA
This gives the ability to invalidate some window data and recalculate as needed instead of doing it for each WE_PAINT

This event is called right away when using InvalidateWindowData(), so it may be a good idea to set a bool or similar in the window
or similar and then act on that bool in WE_PAINT instead of doing a lot of stuff in WE_INVALIDATE_DATA as it might be called more than once before WE_PAINT is called

InvalidateWindowData() will not automatically repaint the window, so if you want to repaint it as well, you need to mark it dirty as well.

Made the depot windows use WE_INVALIDATE_DATA to set when to generate the engine and wagon lists instead of at each redraw
It makes no sense to regenerate the list when say using the scrollbar if we know that no vehicle have entered or left the list

NOTE: currently there is a piece of code to generate the list when it's not needed and compare it to the stored list and assert if they mismatch
This check is somewhat slow and kills the whole idea of WE_INVALIDATE_DATA, so it's a short lived one to verify that InvalidateWindowData() is used everywhere where it's needed

Thu, 05 Oct 2006 12:18:07 +0000(svn r6650) - Fix (r6619): Fix widget state setting of the rail toolbar when using hotkeys.
peter1138 [Thu, 05 Oct 2006 12:18:07 +0000] rev 4738
(svn r6650) - Fix (r6619): Fix widget state setting of the rail toolbar when using hotkeys.

Thu, 05 Oct 2006 11:26:59 +0000(svn r6649) - Codechange: Show more correct capacity of articulated wagons in the train purchase list.
peter1138 [Thu, 05 Oct 2006 11:26:59 +0000] rev 4737
(svn r6649) - Codechange: Show more correct capacity of articulated wagons in the train purchase list.

Thu, 05 Oct 2006 08:39:16 +0000(svn r6648) -Codechange: simplified CmdDepotMassAutoReplace() by changing a switch-case into using a function, that was added in r6647
bjarni [Thu, 05 Oct 2006 08:39:16 +0000] rev 4736
(svn r6648) -Codechange: simplified CmdDepotMassAutoReplace() by changing a switch-case into using a function, that was added in r6647

Thu, 05 Oct 2006 08:27:40 +0000(svn r6647) -Fix: [vehicle list windows] Lists of shared orders are now no longer closed by a window event if the list is empty
bjarni [Thu, 05 Oct 2006 08:27:40 +0000] rev 4735
(svn r6647) -Fix: [vehicle list windows] Lists of shared orders are now no longer closed by a window event if the list is empty
The window is now closed when the order is deleted.
This is because removing windows from a window event is asking for problems

Thu, 05 Oct 2006 08:15:51 +0000(svn r6646) -Codechange: [vehicle list window] Cleaned up the drawing code
bjarni [Thu, 05 Oct 2006 08:15:51 +0000] rev 4734
(svn r6646) -Codechange: [vehicle list window] Cleaned up the drawing code
This moved a few of the strings and sprites a few pixels. Hopefully this will work out ok.

Thu, 05 Oct 2006 02:29:01 +0000(svn r6645) -Fix(r6631): Forgot two click_state occurences
belugas [Thu, 05 Oct 2006 02:29:01 +0000] rev 4733
(svn r6645) -Fix(r6631): Forgot two click_state occurences

Thu, 05 Oct 2006 02:26:27 +0000(svn r6644) -Fix(r6637): remove inline to allow MSVC compilation
belugas [Thu, 05 Oct 2006 02:26:27 +0000] rev 4732
(svn r6644) -Fix(r6637): remove inline to allow MSVC compilation
-Fix(r5124): Add aircraft.h to MSVC projects

Thu, 05 Oct 2006 01:43:49 +0000(svn r6643) -Fix(r6631): Adjust proper disabled and lowered states of removal button on railtoolbar
belugas [Thu, 05 Oct 2006 01:43:49 +0000] rev 4731
(svn r6643) -Fix(r6631): Adjust proper disabled and lowered states of removal button on railtoolbar

Wed, 04 Oct 2006 20:12:39 +0000(svn r6642) -Fix r6639: 2 conversions missed
glx [Wed, 04 Oct 2006 20:12:39 +0000] rev 4730
(svn r6642) -Fix r6639: 2 conversions missed

Wed, 04 Oct 2006 19:27:53 +0000(svn r6641) -Fix(6639): Wongly converted SetWidgetLoweredState
belugas [Wed, 04 Oct 2006 19:27:53 +0000] rev 4729
(svn r6641) -Fix(6639): Wongly converted SetWidgetLoweredState

Wed, 04 Oct 2006 19:15:25 +0000(svn r6640) -Fix: [autoreplace] autoreplace can now use the money for selling the old vehicle to build the new one
bjarni [Wed, 04 Oct 2006 19:15:25 +0000] rev 4728
(svn r6640) -Fix: [autoreplace] autoreplace can now use the money for selling the old vehicle to build the new one
Say we got 40k for selling the old one and the new one costs 60k, then the player only needs 20k to replace

The new engine is still built before selling the old one for various reasons, but now the player gets a loan
of the sell value, which is always repaid when replace fails or the old engine is sold. The player will never notice this loan.

Wed, 04 Oct 2006 19:11:43 +0000(svn r6639) -CodeChange : Conversion of SetWidgetLoweredState to SetWindowWidgetLoweredState, in order to follow pre-established standard
belugas [Wed, 04 Oct 2006 19:11:43 +0000] rev 4727
(svn r6639) -CodeChange : Conversion of SetWidgetLoweredState to SetWindowWidgetLoweredState, in order to follow pre-established standard

Wed, 04 Oct 2006 17:09:17 +0000(svn r6638) -Fix r5652: restored each vehicle list type to their type classes, so it's possible to redraw all lists of one vehicle type again (instead of all types)
bjarni [Wed, 04 Oct 2006 17:09:17 +0000] rev 4726
(svn r6638) -Fix r5652: restored each vehicle list type to their type classes, so it's possible to redraw all lists of one vehicle type again (instead of all types)

Wed, 04 Oct 2006 12:01:59 +0000(svn r6637) -Codechange: merged all (vehicle type)EnterDepot into VehicleEnterDepot()
bjarni [Wed, 04 Oct 2006 12:01:59 +0000] rev 4725
(svn r6637) -Codechange: merged all (vehicle type)EnterDepot into VehicleEnterDepot()
This revealed duplicated code like aircraft lists got invalidated twice
Moved invalidation of the vehicle detail window to VehicleServiceInDepot() as it should always be updated when serviced

Wed, 04 Oct 2006 07:10:35 +0000(svn r6636) WebTranslator2 update to 2006-10-04 09:10:08
miham [Wed, 04 Oct 2006 07:10:35 +0000] rev 4724
(svn r6636) WebTranslator2 update to 2006-10-04 09:10:08
french - 24 changed by glx (24)
icelandic - 6 changed by scrooge (6)

Wed, 04 Oct 2006 01:08:25 +0000(svn r6635) -Fix r6634: incomplete/incorrect assignment
glx [Wed, 04 Oct 2006 01:08:25 +0000] rev 4723
(svn r6635) -Fix r6634: incomplete/incorrect assignment

Wed, 04 Oct 2006 00:51:13 +0000(svn r6634) -Fix(r6377): Do not change a widget state after a DrawWindowWidgets, as it is a bit useless
belugas [Wed, 04 Oct 2006 00:51:13 +0000] rev 4722
(svn r6634) -Fix(r6377): Do not change a widget state after a DrawWindowWidgets, as it is a bit useless
-Fix(r6562): Use the correct widget index for enabling

Wed, 04 Oct 2006 00:27:31 +0000(svn r6633) -Fix r6631: climate selector now shows the current selected climate (and only this one)
glx [Wed, 04 Oct 2006 00:27:31 +0000] rev 4721
(svn r6633) -Fix r6631: climate selector now shows the current selected climate (and only this one)

Tue, 03 Oct 2006 21:11:42 +0000(svn r6632) WebTranslator2 update to 2006-10-03 23:11:07
miham [Tue, 03 Oct 2006 21:11:42 +0000] rev 4720
(svn r6632) WebTranslator2 update to 2006-10-03 23:11:07
american - 3 fixed, 2 changed by WhiteRabbit (5)
catalan - 3 fixed, 2 changed by arnaullv (5)
norwegian - 50 fixed by brygge_2 (50)
polish - 3 fixed, 2 changed by meush (5)
swedish - 3 fixed, 2 changed by cjw (5)

Tue, 03 Oct 2006 20:16:20 +0000(svn r6631) -Codechange: Use accessors for click_state.
belugas [Tue, 03 Oct 2006 20:16:20 +0000] rev 4719
(svn r6631) -Codechange: Use accessors for click_state.
Another step toward merging XTDwidget.
The only two files not converted (window.h and widget.c) will be done at the very last commit)

Tue, 03 Oct 2006 17:39:36 +0000(svn r6630) WebTranslator2 update to 2006-10-03 19:38:59
miham [Tue, 03 Oct 2006 17:39:36 +0000] rev 4718
(svn r6630) WebTranslator2 update to 2006-10-03 19:38:59
danish - 6 fixed by ThomasA (6)
french - 3 fixed, 3 changed by belugas (6)
hungarian - 5 fixed by miham (5)
icelandic - 10 fixed, 17 changed by scrooge (27)
italian - 24 fixed, 2 changed by sidew (26)

Tue, 03 Oct 2006 16:25:03 +0000(svn r6629) - Fix (r6628): One check for the number of players got misplaced by patch...
peter1138 [Tue, 03 Oct 2006 16:25:03 +0000] rev 4717
(svn r6629) - Fix (r6628): One check for the number of players got misplaced by patch...

Tue, 03 Oct 2006 16:15:34 +0000(svn r6628) - Feature: Add the ability to pause a server if not enough players are connected. The setting for this is 'min_players' and can be set in the config and via the console. If the number of players drops below this number, the server will pause the game.
peter1138 [Tue, 03 Oct 2006 16:15:34 +0000] rev 4716
(svn r6628) - Feature: Add the ability to pause a server if not enough players are connected. The setting for this is 'min_players' and can be set in the config and via the console. If the number of players drops below this number, the server will pause the game.