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