Commit Graph

959 Commits

Author SHA1 Message Date
Sergii Pylypenko
aa4b5de6e1 Fixed compilaiton in window and widget code 2020-03-19 21:23:50 +02:00
Sergii Pylypenko
3ba683874b Merge remote-tracking branch 'origin/master' into HEAD 2019-04-23 18:16:24 +03:00
peter1138
4e17e2bc6e Codechange: Implement OnTooltip event for custom window tooltips.
This avoids windows from needing to know or care about tooltip delay settings.
2019-03-24 15:24:21 +01:00
peter1138
56a6d7aec8 Fix #7227: Don't apply mouse-hasn't-moved test to scrollbars. 2019-02-22 21:32:12 +00:00
Peter Nelson
de9f54ccc1 Codechange: Change scrolling_scrollbar to mouse_capture_widget, and dispatch OnClick() event if widget is not a scrollbar.
This allows any widget to support mouse capture.
2019-02-21 08:11:35 +00:00
Joan Josep
548ec05a48 Add: News menu entry and shortcut for deleting all messages. (#7240) 2019-02-16 23:15:58 +00:00
Peter Nelson
9dc36057eb Fix #7058, Fix #7161: Network chat messages did not expire. 2019-02-02 16:58:04 +00:00
J0an Josep
9ce92521c1 Fix: If screen size changes, windows are relocated and dropdown may not fit the screen. 2019-01-20 21:43:00 +00:00
nikolas
d8ccad91f9 Fix: Some code and comment typos
Found with codespell
2019-01-17 22:01:07 +00:00
PeterN
89f0017a67 Fix #7050: Missing guard around network chat message function for compiling with networking disabled. (#7058) 2019-01-13 16:50:21 +00:00
PeterN
5ff0c24993 Fix #6780: Some windows didn't get updated from OnTick() (#7048) 2019-01-12 23:23:23 +00:00
Peter Nelson
c693463c29 Fix: Always draw dirty blocks, else fast-forward is super fast. 2019-01-11 11:56:21 +00:00
Peter Nelson
806e7d25dd Change: Use GUITimer class instead of bare int/uints. 2019-01-11 11:56:21 +00:00
Peter Nelson
59fe4f28c8 Change: Animate text effects by real time instead of game ticks. 2019-01-11 11:56:21 +00:00
Peter Nelson
ead9c9eab5 Change: Switch various window timers to real time instead of game ticks. 2019-01-11 11:56:21 +00:00
Peter Nelson
2a8fa5fef9 Change: Split up Window::OnTick into OnGameTick and OnRealtimeTick. Adjust timers to work with milliseconds instead of ticks. 2019-01-11 11:56:21 +00:00
Juanjo
9e30054de9 Codechange: Use window class as expected. 2019-01-04 23:55:07 +01:00
Charles Pigott
ca5f73b196 Codechange: Turn a define into a constant 2018-10-31 12:41:49 +01:00
Charles Pigott
b5028efc1f Fix: Protect against a few out of bounds or uninitialised usage errors 2018-10-31 12:41:49 +01:00
Charles Pigott
f5b1115039 Doc: Lots and lots of doxymentation fixes 2018-10-31 12:35:54 +01:00
Niels Martin Hansen
2a868b9f3b Feature: Framerate display window (#6822)
Frame rate and various game loop/graphics timing measurements and graphs. Accessible via the Help menu, and can print some stats in the console via the fps command.
2018-07-19 21:17:07 +02:00
Sergii Pylypenko
66e3334f0e Merge upstream branch 1.8 2018-05-31 22:59:50 +03:00
Sergii Pylypenko
a6fb9d3fe9 JGRPP patch sync 2018-05-31 22:09:18 +03:00
pelya
450858784e Toned down window closing by dragging, dim window when it's closed 2018-05-31 21:57:30 +03:00
pelya
cd0032e33d Fixed minimap. That's good enough for release 2018-05-31 21:57:30 +03:00
pelya
db2bf71269 Fixed windows unable to be dragged beyond the right part of the screen 2018-05-31 21:57:30 +03:00
pelya
d0ebbd329b no-toolbars: misclicks should be fixed 2018-05-31 21:57:30 +03:00
pelya
d098c1654d Fix for main menu dragged off screen 2018-05-31 21:55:29 +03:00
pelya
61a7972a44 no-titlebars: fixed windows not draggable over the top of the screen, for real now 2018-05-31 21:55:29 +03:00
pelya
25db807f7f no-titlebars: fixed dragon droppings 2018-05-31 21:55:29 +03:00
pelya
2c3d320457 Added back old mouse processing code for reference 2018-05-31 21:55:29 +03:00
pelya
85d5d964ec Clicking widgets is broken, the focus changes at random 2018-05-31 21:55:29 +03:00
pelya
6887b52d0a no-titlebars: Fixed windows not dragged above the top of the screen 2018-05-31 21:55:29 +03:00
pelya
9d01d66923 Edge ornaments, not finished 2018-05-31 21:55:29 +03:00
pelya
1c7dc8320b no-titlebars: allow window to be dragged above top of the screen 2018-05-31 21:55:29 +03:00
pelya
bb71a37ab3 Partial fix for building bridges 2018-05-31 21:55:28 +03:00
pelya
94fb054554 Put tooltip above the cursor 2018-05-31 21:55:28 +03:00
pelya
ee32654324 Close windows by dragging them off screen 2018-05-31 21:55:28 +03:00
pelya
a75f8da8c8 no-titlebars: Fixed scrollbars dragging whole windows 2018-05-31 21:55:28 +03:00
pelya
4f25c5ac61 no-titlebars: fixed toolbar buttons missing first click 2018-05-31 21:55:28 +03:00
pelya
a037e003d6 no-toolbars: move all windows by dragging anywhere, this breaks drag&drop, and toolbar buttons do not respond on the first click 2018-05-31 21:55:28 +03:00
pelya
d0c2cde7a1 no-toolbars: Send OnClick event to window on mouse-up 2018-05-31 21:55:28 +03:00
pelya
5153fba5e0 All windows can cover status bar 2018-05-31 21:55:27 +03:00
Alexander Weiss
2406500140 Fix: [OSX] Minor 2D scrolling fixes (#6793)
* Codechange: Check for scrollwheel_scrolling first when scrolling viewport instead of first setting normal values and then overwriting them.

* Fix #6558: [OSX] Reset 2D scrolling values when not scrolling to prevent unintended window focus changes

* Change: [OSX] Include initial scrolling movement when using 2D scrolling to make it more responsive

* Fix: [OSX] 2D scrolling not working when setting viewport scroll behaviour to use left mouse button
2018-05-29 09:44:33 +01:00
Alexander Weiss
e1a164b531 Change: [OSX] Setting mouse-wheel to scroll the map does not disable pinch to zoom 2018-05-24 21:31:37 +02:00
PeterN
cfe6a8ea4f Add: Replace independment map scrolling GUI settings with single option, and add choice to not lock cursor position when scrolling. (#6756) 2018-04-28 22:27:14 +01:00
michi_cc
e856e3cca8 (svn r27934) -Fix (r27900): Warning about unsigned unary minus. 2017-12-09 19:21:41 +00:00
frosch
09abccd316 (svn r27901) -Codechange: GetWindowZPriority only needs a WindowClass; this way it can also be used for WindowDesc before a Window instance is created. (3298) 2017-08-27 13:14:37 +00:00
frosch
80dffae130 (svn r27900) -Change [FS#6568]: Remove the gap between windows when positioning them after opening.
-Fix: Make automatic window-positioning RTL-aware.
-Fix: Automatic window-positioning now uses GUI-scale/style dependent sizes/distances instead of fixed pixel values.
2017-08-27 11:48:38 +00:00
frosch
b4b98e5165 (svn r27893) -Codechange: Use fallthrough attribute. (LordAro) 2017-08-13 18:38:42 +00:00