From 1c52e8157043f6fe67dce27306d1517be0248449 Mon Sep 17 00:00:00 2001
From: ZXW <826696702@qq.com>
Date: 星期五, 10 八月 2018 17:14:08 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/Role/PropertyBehaviour.cs | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/System/Role/PropertyBehaviour.cs b/System/Role/PropertyBehaviour.cs
index aede67e..a9ad694 100644
--- a/System/Role/PropertyBehaviour.cs
+++ b/System/Role/PropertyBehaviour.cs
@@ -32,6 +32,17 @@
config.ISPercentage == 1 ? "%" : string.Empty);
}
}
+
+ public void DisplayColon(int _property, int _value)
+ {
+ var config = ConfigManager.Instance.GetTemplate<PlayerPropertyConfig>(_property);
+ if (config != null)
+ {
+ m_PropertyName.text = StringUtility.Contact(config.Name, "锛�");
+ m_PropertyValue.text = StringUtility.Contact("+", UIHelper.ReplaceLargeNum(UIHelper.ReplacePercentage(_value, config.ISPercentage)),
+ config.ISPercentage == 1 ? "%" : string.Empty);
+ }
+ }
}
}
--
Gitblit v1.8.0