Commit Graph

998 Commits

Author SHA1 Message Date
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
peter1138 65d77ff317 (svn r27826) -Fix (r27825): Wrong code style 2017-03-24 19:25:01 +00:00
peter1138 d934ef9b00 (svn r27825) -Feature [FS#4950]: Add option to close windows with right click (Flamefire) 2017-03-24 18:55:16 +00:00
peter1138 73ea8cdb21 (svn r27816) -Fix [FS#6421]: Do not search directories when opening ini files as we already have their full path. 2017-03-20 19:30:49 +00:00
Sergii Pylypenko b4cc822085 Merge svn r27779
Conflicts:
	src/autoreplace_gui.cpp
	src/economy.cpp
	src/fios_gui.cpp
	src/lang/spanish_MX.txt
	src/network/network_gui.cpp
	src/rev.cpp.in
	src/road_gui.cpp
	src/toolbar_gui.cpp
	src/window.cpp
2017-03-17 23:14:41 +02:00
Sergii Pylypenko f2097e7448 Fixed advanced settings UI 2017-03-17 22:41:28 +02:00
Sergii Pylypenko db042040c2 Fixed bridges not building when confirmation is disabled, rearranged tooltip position to not obscure buttons 2017-03-17 22:40:05 +02:00
pelya a724419cc9 Fixed joining stations, broken by confirmation dialog 2017-03-17 22:40:05 +02:00
pelya ff28829393 Fixed bridge GUI broken due to confirmation dialog 2017-03-17 22:40:04 +02:00
frosch dbe969087d (svn r27712) -Codechange: Reduce recursions in DrawOverlappedWindow by limiting the area to the window bounds first. (adf88) 2016-12-25 17:56:57 +00:00
frosch 3419bff4ed (svn r27712) -Codechange: Reduce recursions in DrawOverlappedWindow by limiting the area to the window bounds first. (adf88) 2016-12-25 17:56:57 +00:00
frosch 0e3e4eeb53 (svn r27628) -Codechange: Prepare for drawing cursors consisting of multiple sprites. 2016-08-15 18:33:08 +00:00