Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1,6d0
- < // Decompiled with JetBrains decompiler
- < // Type: UnityEngine.UIElements.ScrollView
- < // Assembly: UnityEngine.UIElementsModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
- < // MVID: 5A4BA647-01D0-4AA8-BC09-D8E52AC02995
- < // Assembly location: /Applications/Unity/Hub/Editor/2021.2.0f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.UIElementsModule.dll
- <
- 19c13
- < public class ScrollView : VisualElement
- ---
- > public class ConfigurableScrollView : VisualElement
- 25c19
- < private float m_SingleLineHeight = UIElementsUtility.singleLineHeight;
- ---
- > private float m_SingleLineHeight = 18f;
- 32c26
- < private float m_ScrollDecelerationRate = ScrollView.k_DefaultScrollDecelerationRate;
- ---
- > private float m_ScrollDecelerationRate = ConfigurableScrollView.k_DefaultScrollDecelerationRate;
- 34c28
- < private float m_Elasticity = ScrollView.k_DefaultElasticity;
- ---
- > private float m_Elasticity = ConfigurableScrollView.k_DefaultElasticity;
- 358c352
- < private void UpdateContentViewTransform()
- ---
- > public void UpdateContentViewTransform()
- 477c471
- < public ScrollView()
- ---
- > public ConfigurableScrollView()
- 489c483
- < public ScrollView(ScrollViewMode scrollViewMode)
- ---
- > public ConfigurableScrollView(ScrollViewMode scrollViewMode)
- 842,843c836,849
- < vector2_1.x = ScrollView.ComputeElasticOffset(vector2_2.x, this.m_StartPosition.x, this.m_LowBounds.x, this.m_LowBounds.x - this.contentViewport.resolvedStyle.width, this.m_HighBounds.x, this.m_HighBounds.x + this.contentViewport.resolvedStyle.width);
- < vector2_1.y = ScrollView.ComputeElasticOffset(vector2_2.y, this.m_StartPosition.y, this.m_LowBounds.y, this.m_LowBounds.y - this.contentViewport.resolvedStyle.height, this.m_HighBounds.y, this.m_HighBounds.y + this.contentViewport.resolvedStyle.height);
- ---
- > vector2_1 = Vector2.Min(Vector2.Max(this.m_StartPosition - (new Vector2(evt.position.x, evt.position.y) - this.m_PointerStartPosition), this.m_LowBounds), this.m_HighBounds);
- > if (this.mode == ScrollViewMode.Horizontal || this.mode == ScrollViewMode.VerticalAndHorizontal)
- > {
- > vector2_1.x = ConfigurableScrollView.ComputeElasticOffset(vector2_2.x, this.m_StartPosition.x,
- > this.m_LowBounds.x, this.m_LowBounds.x - this.contentViewport.resolvedStyle.width, this.m_HighBounds.x,
- > this.m_HighBounds.x + this.contentViewport.resolvedStyle.width);
- > }
- >
- > if (this.mode == ScrollViewMode.Vertical || this.mode == ScrollViewMode.VerticalAndHorizontal)
- > {
- > vector2_1.y = ConfigurableScrollView.ComputeElasticOffset(vector2_2.y, this.m_StartPosition.y,
- > this.m_LowBounds.y, this.m_LowBounds.y - this.contentViewport.resolvedStyle.height, this.m_HighBounds.y,
- > this.m_HighBounds.y + this.contentViewport.resolvedStyle.height);
- > }
- 895c901
- < this.m_PostPointerUpAnimation = this.schedule.Execute(new Action(this.PostPointerUpAnimation)).Every(30L);
- ---
- > this.m_PostPointerUpAnimation = this.schedule.Execute(new Action(this.PostPointerUpAnimation)).Every(16L);
- 968c974
- < if (!this.needsVertical || (double) this.scrollableHeight <= 0.0)
- ---
- > /*if (!this.needsVertical || (double) this.scrollableHeight <= 0.0)
- 972c978
- < this.horizontalScroller.value = 0.0f;
- ---
- > this.horizontalScroller.value = 0.0f;*/
- 1050c1056
- < public new class UxmlFactory : UnityEngine.UIElements.UxmlFactory<ScrollView, ScrollView.UxmlTraits>
- ---
- > public new class UxmlFactory : UnityEngine.UIElements.UxmlFactory<ConfigurableScrollView, ConfigurableScrollView.UxmlTraits>
- 1085c1091
- < ScrollView scrollView = (ScrollView) ve;
- ---
- > ConfigurableScrollView scrollView = (ConfigurableScrollView) ve;
- 1136c1142
- < attributeDescription9.defaultValue = ScrollView.k_DefaultScrollDecelerationRate;
- ---
- > attributeDescription9.defaultValue = ConfigurableScrollView.k_DefaultScrollDecelerationRate;
- 1140c1146
- < attributeDescription10.defaultValue = ScrollView.k_DefaultElasticity;
- ---
- > attributeDescription10.defaultValue = ConfigurableScrollView.k_DefaultElasticity;
- 1143d1148
- < base.\u002Ector();
Add Comment
Please, Sign In to add comment