Commit Graph

196 Commits (b21edb5c61b389914f5bc06847c9747b3e970a77)

Author SHA1 Message Date
smatz d64bdb138c (svn r17168) -Codechange: apply coding style to if and while statements 15 years ago
frosch e44a69b92f (svn r17147) -Fix [FS#3048]: Keep vehicle news and viewports following vehicles, when autoreplacing/renewing them. 15 years ago
alberth eeaa337a21 (svn r17024) -Codechange: Allow InitNested to be done in two parts. 15 years ago
alberth 84507dc358 (svn r16963) -Codechange: Added NWidgetViewport widget. 15 years ago
frosch 1969cbd6e8 (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 2399f91f62 (svn r16906) -Fix (r12939): Child windows of build toolbars were placed inconsistently. 15 years ago
alberth 05cbe62ba2 (svn r16890) -Codechange: Allow raising and enabling/disabling of widgets even if they are not used. 15 years ago
alberth 832c116b5b (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 62fc8bd6c5 (svn r16838) -Codechange: Fill Window::nested_array in SetupSmallestSize. 15 years ago
rubidium fd980be463 (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 95ac767add (svn r16798) -Fix [FS#3016]: Added several new widget distances for better widget size computations. 15 years ago
alberth 99455ffb49 (svn r16779) -Fix: Take real smallest size of nested widgets into account for initial window position. 15 years ago
alberth b417938f74 (svn r16778) -Codechange: Split window initialization in a data part and a size/position part. 15 years ago
alberth 36ce7e09ef (svn r16747) -Fix: Non-resized windows also need a post re-init SetDirty. 15 years ago
alberth 43ee12137b (svn r16740) -Codechange: Self-sizing widgets in intro screen, town directory, and found town windows. 15 years ago
alberth 194701b27a (svn r16687) -Codechange: Perform re-initialization of windows with nested widgets after a language change. 15 years ago
alberth e77b0adb53 (svn r16519) -Add: Prevent hiding of a window titlebar behind the status bar. 15 years ago
alberth e47ca002d2 (svn r16517) -Codechange: Switched intro-screen and town directory window to nested widget trees. 15 years ago
alberth cbf2d24ebb (svn r16516) -Codechange: Added click and drag handling for nested widgets. 15 years ago
alberth 24b2876cb5 (svn r16515) -Codechange: Added scrollbar handling for nested widgets, and finding widgets by type or position in the tree. 15 years ago
alberth ed0a0a681a (svn r16514) -Codechange: Add widget flags, and drawing and invalidating. 15 years ago
alberth bb075195b9 (svn r16513) -Codechange: Add nested widgets root and array to Window, and NWidgetBase::FillNestedArray() to fill the array. 15 years ago
alberth 53c60be207 (svn r16495) -Codechange: Renamed a few variables. 15 years ago
alberth 580e478e4e (svn r16491) -Codechange: Added parentheses around bitwise operators for code style. 15 years ago
alberth 5207900285 (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 3e78641156 (svn r16467) -Codechange: Unduplicate setting of widget focus (with thanks to Smatz). 15 years ago
alberth c9e3d041fb (svn r16466) -Codechange: Improved wording in comments. 15 years ago
alberth b96e1dc80c (svn r16465) -Codechange: Eliminated GetGloballyFocusedWidget(), it was used only once. 15 years ago
alberth feaaf78a63 (svn r16463) -Cleanup: Code style fixes. 15 years ago
smatz d495dc5dbc (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 15 years ago
alberth b46d9079ce (svn r16317) -Codechange: Generalized finding a widget by type. 15 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
15 years ago
alberth adfc9c968c (svn r16226) -Codechange: Separating generation of a widget array from WindowDesc to the InitializeWidgetArrayFromNestedWidgets function. 15 years ago
rubidium e88cb7f70f (svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing 15 years ago
alberth bbd546b792 (svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback 15 years ago
yexo 5fa59bab6f (svn r15867) -Codechange: remove the assumption that the first widgets are the close box/title bar.
Most work already done by r15756.
15 years ago
alberth 4ac600e2cf (svn r15819) -Add: Nested widgets framework 15 years ago
alberth 82a171f175 (svn r15817) -Codechange: Make room for additional widget types (Rubidium) 15 years ago
rubidium 1ba5811024 (svn r15760) -Codechange [FS#2704]: support that the resize box is at the left side of the window too (based on work by Alberth) 15 years ago
rubidium f7155ed34a (svn r15756) -Codechange: remove the assumption that the second windget is always the title bar. Also replace a few magic numbers with a const. 15 years ago
smatz d28895c88b (svn r15725) -Fix: centering on a vehicle didn't respect its z coordinate 15 years ago
rubidium 7f468dc142 (svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth) 15 years ago
rubidium c3e87f345d (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 15 years ago
rubidium f3e0fd7416 (svn r15711) -Codechange: lots of whitespace cleanup/fixes 15 years ago
yexo fbe159ab9e (svn r15669) -Change: Key presses that are not handles by an input box are no longer marked as handled but given to other OnKeyPress handlers. This makes the global shortcuts like F1 work again when an input box is open. 16 years ago
belugas ef4476d92d (svn r15627) -Documentation: Add two Doxygen strings (Alberth). 16 years ago
rubidium 89e1afdaa0 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 16 years ago
rubidium c7f3daacbf (svn r15427) -Codechange: give w->caption_color a more sensible name as it holds the owner of whatever is shown in the window 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 66cb1fe1ff (svn r15423) -Codechange: split widget related types to their own header and add a bit of type strictness. 16 years ago