Age | Commit message (Collapse) | Author |
|
to trailing empty blocks in the list array
Since they were freed with the rest of the array, it only meant that we wasted a few bytes (max 16) while the window were open and we didn't leak memory
|
|
-Fix r6707: solved an issue where scrollcount was not always set correctly
|
|
propeller planes, jet planes or helicopters
-Codechange: the build aircraft window now generates 3 malleced lists and displays based on those list
This is preparation for sorting aircraft
|
|
|
|
vehicle type
|
|
stopped and the player gets a message (like vehicle stopped in depot)
This should prevent a vehicle from failing to be refitted and then show up and block a station with full load.
In such a case, it's better to stop in a depot (that will not stop any other vehicles) and notify the owner
|
|
against CT_NO_REFIT to checks for valid cargo IDs
This should prevent any bugs made by mixing up CT_NO_REFIT and CT_INVALID
|
|
drop downs when there are no companies
|
|
mentioned there)
-Now refit orders are copied when copying orders
-Fixed an initilation issue where CT_INVALID was used instead of CT_NO_REFIT (resulted in crashes in the order window)
-Fixed a compiler warning in the function to load TTD savegames
|
|
is not refitable or not stopped in a depot
|
|
american - 12 fixed by WhiteRabbit (12)
danish - 7 fixed by ThomasA (7)
dutch - 12 fixed by webfreakz (8), habell (4)
estonian - 13 fixed, 2 changed by vermon (15)
french - 6 fixed by belugas (6)
german - 6 fixed by Neonox (6)
polish - 7 fixed, 10 changed by meush (17)
slovak - 12 fixed, 2 changed by lengyel (14)
spanish - 6 fixed by eusebio (6)
|
|
want to get the road bits under a bridge (thanx hylje)
|
|
before... doing anything with them. (Thanks to MeusH for pointing this out...)
|
|
refit window
This was actually not a bug from unifying this window as it was incorrect even before they were merged
|
|
put 'break' after switch statements)
|
|
brazilian_portuguese - 6 fixed by tucalipe (6)
german - 6 fixed by chu (6)
hungarian - 6 fixed by miham (6)
icelandic - 2 changed by scrooge (2)
italian - 12 fixed by sidew (12)
norwegian - 7 fixed by jhsoby (7)
spanish - 6 fixed by eusebio (6)
|
|
|
|
horizontal scroll bar twice...
|
|
|
|
|
|
danish - 7 fixed, 44 changed by ThomasA (51)
french - 6 fixed by glx (6)
hungarian - 6 fixed by miham (6)
polish - 6 fixed by meush (6)
|
|
reliability instead of the lowest to make them useful even when old
-Fix: when retiring an engine design, invalidate the build windows and invalidate the build window data
-Fix: mark build windows dirty when engine reliability changes
|
|
when the window data is invalidated or the window is generated, not on each redraw
|
|
or both in the display
-Codechange: [train build window] to get rid of a really ugly hack, the train build list is now generated in one loop and stored in an array
|
|
names and fixed some incorrect indents
|
|
correct cache in the depot window
Nobody had problems so far, so we can assume that InvalidateWindowData() is used everywhere where it's needed
The check is just disabled, not deleted so it's quick to reenable if we change some code and wants to check this again
|
|
in shared orders and station lists
|
|
bulgarian - 17 fixed by kokobongo (17)
norwegian - 76 fixed, 511 changed by jhsoby (587)
slovak - 46 fixed by lengyel (46)
spanish - 3 fixed by eusebio (3)
|
|
access in widget arrays)
|
|
calculate max number of vehicles in a row with a simple read of the matrix grid
|
|
SetWindowWidgetsDisabledState() and SetWindowWidgetsHiddenState() to depot and vehicle windows
|
|
|
|
widgets, not hide them
|
|
multiple widgets in one call
|
|
in the depot window
|
|
don't use it to store data; instead, just get the widget's width.
|
|
brazilian_portuguese - 3 fixed, 2 changed by tucalipe (5)
turkish - 6 fixed by jnmbk (6)
|
|
|
|
|
|
The functions required to do so are to be found in window.h.
Rather then use the old deprecated disabled_state, hidden_state and click_state uint32 variables,
we now need to use accessors like SetWindowWidgetDisabledState, SetWindowWidgetHiddenState or SetWindowWidgetLoweredState.
This is the final commit for the merge of XTDwidget branch.
|
|
down when pressing shift.
The _fastforward and _pause bool are not exactly used as bool.
So, when doing test with them, amek it so that the will appear as such
|
|
using global hotkeys.
|
|
|
|
window now opens on top of depot window instead of in the middle of the screen
|
|
|
|
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)
|
|
secondary colour choice.
|
|
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
|
|
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)
|
|
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
|