Commit Graph

211 Commits (c3992ab7b69461189f217be73136997cd097ee62)

Author SHA1 Message Date
frosch 21fdc65ce4 (svn r17830) -Fix [FS#3276]: Some windows already need their window_number when setting up smallest size (e.g. for DParams). So assign it earlier in Window::InitializeData instead of dealing with each window separately. 15 years ago
rubidium 66721ffd36 (svn r17751) -Fix [FS#3253]: sometimes clicking on a for the user unfocused edit box would show the OSK (Zuu) 15 years ago
rubidium d6cded5380 (svn r17693) -Cleanup: remove some unneeded includes 15 years ago
rubidium e9624fe0cc (svn r17682) -Codechange: remove erroneous space before some commas 15 years ago
rubidium 0032405093 (svn r17673) -Codechange: make InvalidateThisWindowData a function of the window class 15 years ago
alberth 116c77c342 (svn r17572) -Codechange: Use the Window::GetWidget() function to access nested widgets through the nested_array. 15 years ago
rubidium e8ddf001c8 (svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos 15 years ago
frosch ebd916be3d (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 15 years ago
frosch 734edc178d (svn r17525) -Cleanup: Remove SetWindowDirty(), it is completely covered by other functions already. 15 years ago
alberth afe190a216 (svn r17504) -Codechange: un-inlining SetFocusedWidget() as it is not often used. 15 years ago
rubidium 5cb22df0f5 (svn r17375) -Codechange: remove last direct usage of scrollbar variables 15 years ago
rubidium 900aedf270 (svn r17374) -Codechange: make the town and vehicle GUIs use the scrollbar wrappers 15 years ago
rubidium b06e026f97 (svn r17365) -Codechange: introduce wrapper functions to update the position, capacity and count of scroll bars. This to (eventually) prevent the scrollbar overflowing outside of the window 15 years ago
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
alberth e6a1da11a3 (svn r17175) -Codechange: Only auto-raise push buttons. 15 years ago
smatz c5533ae470 (svn r17168) -Codechange: apply coding style to if and while statements 15 years ago
frosch 52f9b8ffbd (svn r17147) -Fix [FS#3048]: Keep vehicle news and viewports following vehicles, when autoreplacing/renewing them. 15 years ago
alberth 6a1af7f74f (svn r17024) -Codechange: Allow InitNested to be done in two parts. 15 years ago
alberth 9856cc9d0a (svn r16963) -Codechange: Added NWidgetViewport widget. 15 years ago
frosch 55e07d0606 (svn r16957) -Fix: Trigger the same window repositioning after changing font/language as it is done after resizing the main OpenTTD window. 15 years ago
alberth 8083d67780 (svn r16906) -Fix (r12939): Child windows of build toolbars were placed inconsistently. 15 years ago
alberth 1978c7dc87 (svn r16890) -Codechange: Allow raising and enabling/disabling of widgets even if they are not used. 15 years ago
alberth b6889daf8d (svn r16848) -Fix: Trying to reduce a nested widget window further than the smallest alowed size should not crash the game. 15 years ago
alberth 9be387761c (svn r16838) -Codechange: Fill Window::nested_array in SetupSmallestSize. 15 years ago
rubidium 463b96a746 (svn r16815) -Fix: reduce the toolbar's priority for handling keypresses from most important to least important, so e.g. the order windows' 'd' skips to the next order 15 years ago
alberth 9efd32d13c (svn r16798) -Fix [FS#3016]: Added several new widget distances for better widget size computations. 15 years ago
alberth 1d8e4a48b4 (svn r16779) -Fix: Take real smallest size of nested widgets into account for initial window position. 15 years ago
alberth 7f851505f9 (svn r16778) -Codechange: Split window initialization in a data part and a size/position part. 15 years ago
alberth e1a26058e9 (svn r16747) -Fix: Non-resized windows also need a post re-init SetDirty. 15 years ago
alberth d65c6cae54 (svn r16740) -Codechange: Self-sizing widgets in intro screen, town directory, and found town windows. 15 years ago
alberth 058bb5d6c3 (svn r16687) -Codechange: Perform re-initialization of windows with nested widgets after a language change. 15 years ago
alberth ec5db12adc (svn r16519) -Add: Prevent hiding of a window titlebar behind the status bar. 15 years ago
alberth 19ccf6912c (svn r16517) -Codechange: Switched intro-screen and town directory window to nested widget trees. 15 years ago
alberth b144a5451c (svn r16516) -Codechange: Added click and drag handling for nested widgets. 15 years ago
alberth 1a4934ef07 (svn r16515) -Codechange: Added scrollbar handling for nested widgets, and finding widgets by type or position in the tree. 15 years ago
alberth 5c9071fcff (svn r16514) -Codechange: Add widget flags, and drawing and invalidating. 15 years ago
alberth 1ba3755aa7 (svn r16513) -Codechange: Add nested widgets root and array to Window, and NWidgetBase::FillNestedArray() to fill the array. 15 years ago
alberth 333795bc70 (svn r16495) -Codechange: Renamed a few variables. 15 years ago
alberth bab70a823d (svn r16491) -Codechange: Added parentheses around bitwise operators for code style. 15 years ago
alberth 6c126cc5c8 (svn r16484) -Cleanup: Renamed widget variable to widget_index and introduced widget_type variable.
-Fix: Prevented out-of-bounds array access when not clicking at a widget.
15 years ago
alberth 101a6b3320 (svn r16467) -Codechange: Unduplicate setting of widget focus (with thanks to Smatz). 15 years ago
alberth bfaf610fff (svn r16466) -Codechange: Improved wording in comments. 15 years ago
alberth bfb8df3fb9 (svn r16465) -Codechange: Eliminated GetGloballyFocusedWidget(), it was used only once. 15 years ago
alberth 5eecf3e5cb (svn r16463) -Cleanup: Code style fixes. 15 years ago
smatz 6221d74644 (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 15 years ago
alberth db7e24e211 (svn r16317) -Codechange: Generalized finding a widget by type. 15 years ago
rubidium 2664f2a2d9 (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
15 years ago
alberth efde51e452 (svn r16226) -Codechange: Separating generation of a widget array from WindowDesc to the InitializeWidgetArrayFromNestedWidgets function. 15 years ago
rubidium 329cabab4f (svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing 15 years ago
alberth 9d2738b9c4 (svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback 15 years ago