From 8885aa3d7ea137e18770da96aea24e9599372b53 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 25 九月 2019 23:12:20 +0800
Subject: [PATCH] 0312 装备界面优化1.左右按钮可点击 2.装备标签可滑动定位
---
UI/Common/FunctionButtonGroup.cs | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/UI/Common/FunctionButtonGroup.cs b/UI/Common/FunctionButtonGroup.cs
index b4a9f78..5fa641a 100644
--- a/UI/Common/FunctionButtonGroup.cs
+++ b/UI/Common/FunctionButtonGroup.cs
@@ -50,6 +50,21 @@
}
}
+ public void ChangeHorizontal(bool move)
+ {
+ if (m_ScrollRect != null)
+ {
+ m_ScrollRect.horizontal = move;
+ }
+ }
+
+ public void ChangeHorizontalPos(float index)
+ {
+ if (m_ScrollRect != null)
+ {
+ m_ScrollRect.horizontalNormalizedPosition = index;
+ }
+ }
public void UnRegister(FunctionButton button)
{
if (functionButtons.ContainsKey(button.order))
--
Gitblit v1.8.0