46 Commits
Author SHA1 Message Date
Henrik Rydgard 35b6c7341b Fix a bunch of memory leaks, after enabling file+line-number memory leak tracking for the MS Debug CRT.
Few of these were serious, most were on-exit, but good to have a cleaner memory report after running.
2016-02-10 15:36:10 +01:00
Unknown W. Brackets b2a3b5c7b8 UI: Allow a degree of "pull" in scroll views.
Also, fix a clamp issue that could've shown up for a frame while dragging.
Fixes #8505.
2016-01-25 21:53:41 -08:00
Unknown W. Brackets 8d41664bb1 UI: Fix clipping with margins.
Affected text views, like "No screenshot." in save states.
2016-01-23 11:45:55 -08:00
Unknown W. Brackets 68a6f8186d UI: Avoid scroll to top on tab restore.
Oops, missed this case.

Fixes #7975, savedata manager scrolling on delete.
2016-01-23 10:52:16 -08:00
Unknown W. Brackets c1812ae7d7 UI: Clamp scroll pos on render.
This way we don't clamp wrongly when views don't have sizes yet, and we
also do clamp when we need to.

We can allow a little flex by tracking the down state too.
2016-01-23 10:10:43 -08:00
Unknown W. Brackets 705ab497f2 UI: Oops, use tag for focus too. 2016-01-23 09:20:53 -08:00
Unknown W. Brackets 60f00820f8 UI: Move scrollviews to top on hide.
This seems like a common scrolling decision.
2016-01-23 09:15:50 -08:00
Unknown W. Brackets 2176920d5d UI: Disable scroll-to-top on resize of scrollview. 2016-01-23 09:07:14 -08:00
Unknown W. Brackets 1318f29c8d UI: Update layout on recreate to focus subviews. 2016-01-23 09:07:13 -08:00
Unknown W. Brackets f26d682e14 UI: Persist the last focused view on resize. 2016-01-23 09:07:13 -08:00
Unknown W. Brackets 78aae01cd4 UI: Allow scroll views to persist their position.
It'll be clamped as necessary.
2016-01-22 23:02:44 -08:00
Unknown W. Brackets 1c2ac798cd UI: Persist selected tab on resize. 2016-01-22 22:40:36 -08:00
Unknown W. Brackets f6772ec526 UI: Add a simple means of persisting data. 2016-01-22 22:40:16 -08:00
Unknown W. Brackets 9fa6777c3e Fix copy/paste mistake with growing views. 2016-01-04 06:46:06 -08:00
Henrik Rydgard f7f9f321a0 Qt fixes 2016-01-03 15:03:08 +01:00
Henrik Rydgård 21bf73a612 Merge pull request #8281 from unknownbrackets/ui-tweaks
Add feature to auto-hide buttons after X seconds
2015-12-24 23:15:59 +01:00
Henrik Rydgård 1e2f45ec4f Merge pull request #8291 from unknownbrackets/ui-tweaks2
Show a scroll view inside the devtools window
2015-12-24 23:15:46 +01:00
Unknown W. Brackets 2389ef589e Fix a mistaken string compare. 2015-12-23 15:26:29 -08:00
Unknown W. Brackets d6cd3bd5ad Remove some unused variables. 2015-12-23 15:22:28 -08:00
Unknown W. Brackets 8923bd46e7 Support AT_MOST for WRAP_CONTENT. 2015-12-22 20:45:50 -08:00
Unknown W. Brackets 85ad28d4cd Prettify fake RTTI for layout params.
Better not to make the RTTI/non-RTTI thing a problem in lots of places.
2015-12-22 20:45:49 -08:00
Unknown W. Brackets e7f70ff8d0 Handle weighted LinearLayout children better.
This allows them to not stretch the parent completely, but still increase
the size of the parent.
2015-12-22 20:45:49 -08:00
Unknown W. Brackets f64159a3f2 Respect AT_MOST when measuring ScrollViews. 2015-12-22 19:53:31 -08:00
Unknown W. Brackets 5c9cf65939 Allow AnchorLayouts to prevent overflow.
This is useful to propagate the bounds into children.
2015-12-22 19:52:23 -08:00
Unknown W. Brackets 08ebbb4a60 Customize labels for zero in config sliders. 2015-12-20 13:13:44 -08:00
Henrik Rydgard 13515bf235 Use the hardware scaler again on Android. Move all DPI handling code from java to app-android.cpp. 2015-12-16 14:52:44 +01:00
Henrik Rydgard 5d6d4a08f4 Change approach somewhat to avoid adding drawing code in the screen manager. 2015-11-18 14:18:35 +01:00
Henrik Rydgard 758ec5a027 Avoid clearing the backbuffer before actually doing any rendering to fbo on every frame - instead, clear when stretching the framebuffer into place. May save quite a bit of bandwidth on tiler GPUs with naive GL drivers. 2015-11-18 12:13:35 +01:00
Henrik Rydgard 2634f7344a Fix some focus/dragging issues with the sliders 2015-11-12 19:25:11 +01:00
Carl Kenner bf84fda058 Improve pop-up UI for integer slider screens. Add a text entry box and units.
# Conflicts:
#	UI/GameSettingsScreen.cpp
2015-11-06 18:55:36 +10:30
Carl Kenner 064a09bda4 Improve PopupSliderChoiceFloat to make it more usable for VR settings.
It now has a text input box.
+/- buttons are on the next line so you can cursor along slider.
And the units are optionally displayed.

# Conflicts:
#	UI/GameSettingsScreen.cpp
2015-11-06 18:42:34 +10:30
Henrik Rydgård 452ed71e68 Couple of LLVM compiler warnings 2015-11-04 12:46:38 +01:00
Henrik Rydgard ea69adb68b Fix scrolling in Combo Key setup. Fixes #8097. 2015-10-31 13:45:57 +01:00
Henrik Rydgård 1c58cb203e Oops 2015-09-23 17:39:52 +02:00
Henrik Rydgård 28b6cdf0de Hack around #7991 - will investigate later. 2015-09-23 17:34:16 +02:00
Henrik Rydgard c2ac933dab Do not cache translation category objects in UI objects. Fixes #7996 2015-09-23 12:44:49 +02:00
Henrik Rydgard 2aba7e0373 Symbian buildfix 2015-09-19 12:34:55 +02:00
Henrik Rydgård c219793803 Remove the old UI texture class 2015-09-19 11:05:00 +02:00
Henrik Rydgård 7979b6378e Remove old UI framework 2015-09-19 10:58:50 +02:00
Henrik Rydgård df47f41db6 Remove scoped_ptr (now unique_ptr), midi 2015-09-19 10:26:27 +02:00
Henrik Rydgård 9636e4cef4 Fix assorted key mapping issues affecting Shield and probably pads in general on Android. See #7976 2015-09-17 22:46:59 +02:00
Henrik Rydgard aa4a33e6db Fix "ANY" device keydefs (used for ui nav). 2015-09-17 22:07:22 +02:00
Henrik Rydgård a71fbccfbc Warning fixes for new LLVM on mac (warns on inconsistent usage of override) 2015-09-17 20:29:37 +02:00
Henrik Rydgard dc4fb4ca76 Fix #7884 by fixing silly UI layout bug 2015-09-07 23:51:25 +02:00
Unknown W. Brackets dbfc5385c3 Fix line-endings in ui/screen. 2015-09-06 12:29:23 -07:00
Unknown W. Brackets f279c2a3c2 Merge remote repo native into ext/native/. 2015-09-06 12:24:17 -07:00