Commit Graph

184 Commits (b417938f7447e0f2a0677f2f10fe93644808b90a)

Author SHA1 Message Date
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
rubidium 42fe0b65d2 (svn r15338) -Fix [FS#2598]: close all construction related windows whenever changing company. 16 years ago
peter1138 bce50498fc (svn r15312) -Codechange: Handle closing of drop down menus when clicking in a window in a single place, instead of in the OnClick event for some windows. This standardises behaviour so that clicking anywhere in a window will close its drop down menu, which happened before for some windows but not all. In addition the dubious feature of hiding a drop down menu by opening the same menu has been removed. This only caused wasted CPU cycles as a whole new list was generated and then destroyed. Breathe. 16 years ago
smatz 9021c20b5e (svn r15299) -Cleanup: remove many redundant includes 16 years ago
frosch 7014833641 (svn r15065) -Change (r14919): Allow to select a new station location by ctrl-clicking while distant-join window is open. (PhilSophus) 16 years ago
rubidium 054787f082 (svn r14943) -Cleanup: remove some rogue spaces/replace some rogue tabs with spaces 16 years ago
rubidium 7b4fba0f89 (svn r14905) -Fix (r14899): in some corner cases already freed memory could be read. 16 years ago
rubidium 567b262901 (svn r14899) -Feature: remove the window limit, but leave a configurable limit on the number of non-sticky non-vital windows.
-Fix [FS#2499]: crashes/misbehaviours when (almost) all windows are stickied.
16 years ago
rubidium aa6c7e8574 (svn r14880) -Codechange: make it clear which way the FOR_ALL_WINDOWS goes (from back to front or vice versa) and make it iterate over the Window* instead of Window**. 16 years ago
rubidium 57570c7d7c (svn r14824) -Fix [FS#1725]: mouse events could be treated twice (illogict) 16 years ago
rubidium 72d89337ee (svn r14804) -Codechange: unify opening the OSK (Zuu) 16 years ago
rubidium 1bc6b7a7a5 (svn r14794) -Document: a few functions/variables (Alberth) 16 years ago
rubidium d3144b6f04 (svn r14789) -Feature: allow scrolling with the left mouse button pressed (if enabled). Primarily useful for systems with touch screen (aapo) 16 years ago