Commit Graph

78 Commits (b4a2e81aaedd858d92f7ae6a9aca0d549eaa03af)

Author SHA1 Message Date
Simon Jackson adb09d3481 Also added "InitialiseChildObjectsFromScene" to RemoveChild for HSS
Validated all other occurrences where this function should be called are valid.
2017-08-07 11:56:41 +01:00
Simon Jackson cdef4bdfef Horizontal Scroll Snap "AddChild" method was NOT calling "InitialiseChildObjectsFromScene()", added
Resolves #125
2017-08-07 11:53:57 +01:00
Johannes Deml 2c8550532d CHANGE tooltip to describe the actual (changed) behaviour 2017-08-02 12:28:09 +02:00
Johannes Deml 59b6c579f9 Merge branch 'master' into ScrollSnapRefactoring 2017-08-02 12:00:35 +02:00
Johannes Deml 14f42df81c REFACTOR make method more readable 2017-08-02 11:59:27 +02:00
Johannes Deml c8de1b9289 FIX fastswipe threshold
Does now what is stated it does in the tooltip: Offset for how far a swipe has to travel to initiate a page change (optional)
2017-08-02 11:57:02 +02:00
Simon Jackson 688e2edd25 Added the FancyScrollView control and Examples
Reviewed other samples and moved their code to the new "Examples" namespace
Minor fix on HSS/VSS to address issue where Next/Previous buttons didn't enable when new pages added to an empty control
2017-08-02 10:21:45 +01:00
David Gileadi 700cbc34b9 Calculate the panel dimensions in Start to avoid scale issues 2017-07-26 22:44:18 -07:00
Simon Jackson 2b5071585b Fix supplied by Anonymous user, resolves issues with fast swipe on fringe pages.
Resolves #154
2017-07-16 18:00:43 +01:00
Simon Jackson 8c2d10dccc Added CurrentPageObject functions to return the Transform of the currently selected page. 2017-07-09 10:17:32 +01:00
Simon Jackson f49c8564ac Resolves #137
WorldPositionStays argument added to:
* RemoveChild
* RemoveAllChildren

For HSS/VSS ScrollSnaps
2017-07-02 14:33:57 +01:00
Simon Jackson 439242d914 Updated FastSwipe logic to measure the distance of a swipe against the container width (with threshold offset) rather than using velocity (which was messy)
Resolves #130
2017-07-02 14:22:10 +01:00
Simon Jackson 49ecdc1b0e Added Scrollbar helper to ALL current scroll snaps
Resolves #120
2017-07-02 10:09:52 +01:00
Simon Jackson 35b88a2487 Fixed Line endings on shaders (?)
Removed unnecessary usings (who knew there were so many, I'm normally so tidy :P)
2017-05-05 14:25:48 +01:00
Simon Jackson 966f82da3f Added option to NOT restart control
Also switched to the InitialiseChildObjectsFromScene (whoops)
2017-03-12 15:29:59 +00:00
Simon Jackson f89702ddc6 Minor VSS/HSS bugfixes and enhancements, resolving #114 2017-03-12 15:18:36 +00:00
Simon Jackson cc7c66f9f5 Updated Scroll Snap Base to resolve #119 2017-02-23 15:18:16 +00:00
Simon Jackson df3ff02bd5 Replicated the ScrollSnap fix (#91) to the VSS
--HG--
branch : develop_5.3
2017-02-10 16:04:24 +00:00
Chris Parton fdfd114157 Improved scroll snap containers to disable navigation buttons when appropriate.
Reordered PrevButton and NextButton to be more logical.

--HG--
branch : navigation_button_toggle
2017-02-07 21:55:38 +11:00
Simon Jackson 0d28905892 Patch for Bullet initialisation, wasn't selecting the right bullet on start.
--HG--
branch : develop_5.3
2017-01-08 12:11:13 +00:00
Simon Jackson 5820447547 Fix for #109.
Add Screen Change event to "GoToPage"

--HG--
branch : develop_5.3
2017-01-08 12:03:27 +00:00
Simon Jackson 344ca57f4b Updated VSS / HSS to handle pages with interactable components.
Interactables mess with the Pointer Down/Up events that the control used when a mouse is used, so implementation changes to suit.

--HG--
branch : develop_5.3
2017-01-04 13:18:28 +00:00
Simon Jackson 38d98a0fad Resolution for #80 issue where onPageChanged is fired multiple times for Next/Previous.
--HG--
branch : develop_5.3
2017-01-04 12:32:44 +00:00
Simon Jackson cd3f79ef7c 2 patches for HSS/VSS
* Added new overload to AddChild, allows to set WorldPositionStays for added childen
* New RemoveAllChildren function

--HG--
branch : develop_5.3
2017-01-04 12:16:11 +00:00
Simon Jackson 21ad76580e Minor patchfix on HSS/VSS - Starting screen validation failed on new scenes?
--HG--
branch : develop_5.3
2017-01-02 18:17:18 +00:00
Simon Jackson c1682b11a8 Pre-Release upload - tested and working
--HG--
branch : develop_5.3
2016-12-31 17:01:49 +00:00
Simon Jackson b2ae5db354 Update for pre-release
--HG--
branch : develop_5.3
2016-12-31 15:59:57 +00:00
Simon Jackson e0c3864fb7 Resolved issue with HSS/VSS not resizing when Rect/Scene changes
Updated HSS/VSS Visibility logic so it's more refined.

--HG--
branch : develop_5.3
2016-12-31 15:14:39 +00:00
Rahul Raman 66cbf0da23 Modified Vertical layout functions to use nested loops to minimize condition test failures
--HG--
branch : develop_5.3
2016-12-31 09:12:29 +00:00
Simon Jackson 909589e544 Updated Table Layout Group component for release and added docs
--HG--
branch : develop_5.3
2016-12-30 17:28:34 +00:00
Simon Jackson 473c0f3757 Merged in rahul_raman/unity-ui-extensions (pull request #36)
New TableLayoutGroup Component

--HG--
branch : develop_5.3
2016-12-30 16:57:54 +00:00
Simon Jackson b169e98452 Reversed clean-up, was actually used :S
--HG--
branch : develop_5.3
2016-12-30 15:56:00 +00:00
Simon Jackson df9ea42e02 Updated HSS/VSS OnSelectionChangeEndEvent to also output the landed page number (zero indexed)
Some redundant code clean-up

--HG--
branch : develop_5.3
2016-12-30 15:53:44 +00:00
Simon Jackson aadba190c8 Fixed PageChanged event for HSS/VSS
Fixed WorldSpace use of HSS/VSS (also created a new feature :D)
Minor editor options fix for boxslider

--HG--
branch : develop_5.3
2016-12-30 15:44:36 +00:00
Simon Jackson f0ba3cfae5 Minor fixes and additions
Updates to resolve reports in Issue #80

--HG--
branch : develop_5.3
2016-12-29 22:03:04 +00:00
Rahul Raman 6888cb500d Refactored CalculateLayoutInputVertical; Released memory used by temporary array for reclaiming by the GC; Added comments to help understand the script better
--HG--
branch : develop_5.3
2016-12-28 20:37:03 +00:00
Rahul Raman 1d251301eb Improved calculation of SetLayoutHorizontal and SetLayoutVertical; Renamed certain variables, removed certain others and refactored code to be more sensible; Fixed behaviour for a specific configuration of TableLayoutGroup and ContentSizeFitter
--HG--
branch : develop_5.3
2016-12-28 16:15:52 +00:00
Rahul Raman 5a64abfa80 Fixed behaviour when no column width is provided
--HG--
branch : develop_5.3
2016-12-28 06:46:38 +00:00
Rahul Raman 2e8682a491 Cleanup: Renamed "Cell Spacing" as "Column Spacing"
--HG--
branch : develop_5.3
2016-12-27 21:59:20 +00:00
Rahul Raman b8bd371232 Cleanup: Added sensible defaults. Removed all initialization errors.
--HG--
branch : develop_5.3
2016-12-27 21:54:32 +00:00
Rahul Raman 9cf482d6ed Allowed flexible row expansion as a choice, instead of a compulsion
--HG--
branch : develop_5.3
2016-12-27 21:34:16 +00:00
Rahul Raman da480b1f8b Clean up: Removed duplicate calculations and unnecessary intermediate variables.
--HG--
branch : develop_5.3
2016-12-27 20:46:57 +00:00
Rahul Raman ff95c38ee2 Fixed computation of cell positions for all start corners
--HG--
branch : develop_5.3
2016-12-27 20:28:12 +00:00
Rahul Raman 81dd26b5ef Edited SetLayoutVertical() to avoid unnecessary recomputation of maxPreferredHeightInRow
--HG--
branch : develop_5.3
2016-12-27 20:16:50 +00:00
Rahul Raman bbd5102246 Renaming "TableLayout.cs" to "TableLayoutGroup.cs" to be consistent with Unity component naming
--HG--
branch : develop_5.3
2016-12-27 20:14:03 +00:00
Rahul Raman b350b270f7 Added TableLayout component that child objects into a non-uniform grid, with fixed, user-defined column widths and flexible row heights
--HG--
branch : develop_5.3
2016-12-27 19:51:46 +00:00
Simon Jackson f98aa18981 A little tidying of the ScrollSnap base script, nothing to see here :D
--HG--
branch : develop_5.3
2016-12-21 18:50:42 +00:00
Simon Jackson 94f857d203 Remaining issues resolved.
Now to double check YT and BB for any remaining unresolved issues

--HG--
branch : develop_5.3
2016-12-21 17:51:38 +00:00
Simon Jackson a72c45e02a Almost complete:
* Scrolling - working
* Fast Swipe - working (as well as Unity can fast swipe :S)
* Mask with only visible items - working
* Jump to page - working

Just found a bug with removing / adding items

--HG--
branch : develop_5.3
2016-12-21 16:52:19 +00:00
Simon Jackson 4bd100c7e9 Initial check-in of visible ony VSS (HSS yet to be updated)
--HG--
branch : develop_5.3
2016-12-18 22:51:16 +00:00