少年修仙传客户端代码仓库
client_Wu Xijin
2018-10-15 cdf398244e3960f95572142577518b57e7da2bef
4121  【前端】【1.2.0】登录界面新增客服中心入口和功能界面
1 文件已重命名
2个文件已修改
8个文件已添加
305 ■■■■■ 已修改文件
Core/GameEngine/Model/Config/ContactConfig.cs 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/ContactConfig.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/HelpInfoConfig.cs 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/HelpInfoConfig.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/ConfigManager.cs 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Launch/LaunchWin.cs 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/UserHelp.meta 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/UserHelp/UserHelpWin.cs 114 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/UserHelp/UserHelpWin.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/UserHelp/UserIssueBehaviour.cs 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/UserHelp/UserIssueBehaviour.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/ContactConfig.cs
New file
@@ -0,0 +1,44 @@
//--------------------------------------------------------
//    [Author]:            第二世界
//    [  Date ]:           Monday, October 15, 2018
//--------------------------------------------------------
using UnityEngine;
using System;
namespace TableConfig {
    public partial class ContactConfig : ConfigBase {
        public string appid { get ; private set; }
        public string qq { get ; private set; }
        public string phone { get ; private set; }
        public override string getKey()
        {
            return appid.ToString();
        }
        public override void Parse() {
            try
            {
                appid = rawContents[0].Trim();
                qq = rawContents[1].Trim();
                phone = rawContents[2].Trim();
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
        }
    }
}
Core/GameEngine/Model/Config/ContactConfig.cs.meta
New file
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 8ecbb84f62ba262448b74256777f91ec
timeCreated: 1539586414
licenseType: Pro
MonoImporter:
  serializedVersion: 2
  defaultReferences: []
  executionOrder: 0
  icon: {instanceID: 0}
  userData:
  assetBundleName:
  assetBundleVariant:
Core/GameEngine/Model/Config/HelpInfoConfig.cs
New file
@@ -0,0 +1,41 @@
//--------------------------------------------------------
//    [Author]:            第二世界
//    [  Date ]:           Monday, October 15, 2018
//--------------------------------------------------------
using UnityEngine;
using System;
namespace TableConfig {
    public partial class HelpInfoConfig : ConfigBase {
        public string title { get ; private set; }
        public string help { get ; private set; }
        public override string getKey()
        {
            return title.ToString();
        }
        public override void Parse() {
            try
            {
                title = rawContents[0].Trim();
                help = rawContents[1].Trim();
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
        }
    }
}
Core/GameEngine/Model/Config/HelpInfoConfig.cs.meta
New file
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: d24d3981de1e03147b38f9ebab77daca
timeCreated: 1539586423
licenseType: Pro
MonoImporter:
  serializedVersion: 2
  defaultReferences: []
  executionOrder: 0
  icon: {instanceID: 0}
  userData:
  assetBundleName:
  assetBundleVariant:
Core/GameEngine/Model/ConfigManager.cs
@@ -36,13 +36,15 @@
    {
        StartSyncTask<PriorBundleConfig>(AssetPath.Resource);
        StartSyncTask<PriorLanguageConfig>(AssetPath.Resource);
        StartSyncTask<ContactConfig>(AssetPath.Resource);
        StartSyncTask<HelpInfoConfig>(AssetPath.Resource);
    }
    List<ConfigTask> configTasks = new List<ConfigTask>();
    public IEnumerator Co_LoadConfigs()
    {
        StartSyncTask<LoginSeverListConfig>(AssetSource.refdataFromEditor ? AssetPath.ResourceOut : AssetPath.External);
        AddAsyncTask<LoginSeverListConfig>();
        AddAsyncTask<IconConfig>();
        AddAsyncTask<ItemConfig>();
        AddAsyncTask<SkillConfig>();
@@ -50,6 +52,7 @@
        AddAsyncTask<TASKINFOConfig>();
        AddAsyncTask<mapnpcConfig>();
        AddAsyncTask<LanguageConfig>();
        AddAsyncTask<DienstgradConfig>();
        AddAsyncTask<PlayerPropertyConfig>();
        AddAsyncTask<RealmConfig>();
@@ -534,8 +537,6 @@
        }
        var task = new ConfigTask(typeof(T), _assetPath, path);
        configTasks.Add(task);
        task.contentLines = lines;
        if (lines != null && lines.Length > 3)
        {
System/Launch/LaunchWin.cs
@@ -8,6 +8,7 @@
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TableConfig;
namespace Snxxz.UI
{
@@ -23,6 +24,7 @@
        [SerializeField] Text m_IosProgressTip;
        [SerializeField] Text m_BuildTime;
        [SerializeField] Text m_Version;
        [SerializeField] Button m_Service;
        bool assetBuildTimeShowed = false;
@@ -55,14 +57,19 @@
            m_AlphaTween.SetStartState();
            m_Version.text = StringUtility.Contact(VersionConfig.Get().version, "_", VersionConfig.Get().buildIndex);
            if (VersionConfig.Get().debugVersion)
            m_BuildTime.text = VersionConfig.Get().debugVersion ? VersionConfig.Get().buildTime : "";
            var hasContact = false;
            foreach (var item in Config.Instance.GetAllValues<ContactConfig>())
            {
                m_BuildTime.text = VersionConfig.Get().buildTime;
                if (item.appid == VersionConfig.Get().appId)
                {
                    hasContact = true;
                    break;
                }
            }
            else
            {
                m_BuildTime.text = "";
            }
            m_Service.gameObject.SetActive(hasContact);
            if (Application.platform == RuntimePlatform.IPhonePlayer)
            {
System/UserHelp.meta
File was renamed from Core/NetworkPackage/DTCFile/ClientPack/ClientToMapServer.meta
@@ -1,7 +1,7 @@
fileFormatVersion: 2
guid: a75d33f87d2bafb4191666d4978b2e08
guid: eac3e6e851e862848b53dc6a427f4ac3
folderAsset: yes
timeCreated: 1539228128
timeCreated: 1539587065
licenseType: Pro
DefaultImporter:
  userData: 
System/UserHelp/UserHelpWin.cs
New file
@@ -0,0 +1,114 @@
//--------------------------------------------------------
//    [Author]:           第二世界
//    [  Date ]:           Monday, October 15, 2018
//--------------------------------------------------------
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TableConfig;
namespace Snxxz.UI
{
    public class UserHelpWin : Window
    {
        [SerializeField] Button m_Close;
        [SerializeField] Button m_Issues;
        [SerializeField] Button m_Contact;
        [SerializeField] RectTransform m_IssueContainer;
        [SerializeField] UserIssueBehaviour m_IssueBehaviourPattern;
        [SerializeField] RectTransform m_ContactContainer;
        [SerializeField] Text m_QQ;
        [SerializeField] Text m_Phone;
        [SerializeField] Button m_CopyQQ;
        [SerializeField] Button m_CopyPhone;
        #region Built-in
        protected override void BindController()
        {
        }
        protected override void AddListeners()
        {
            m_Issues.SetListener(DisplayIssues);
            m_Contact.SetListener(DisplayContact);
            m_CopyQQ.SetListener(CopyQQ);
            m_CopyPhone.SetListener(CopyPhone);
        }
        protected override void OnPreOpen()
        {
        }
        protected override void OnAfterOpen()
        {
        }
        protected override void OnPreClose()
        {
        }
        protected override void OnAfterClose()
        {
        }
        #endregion
        private void InitIssues()
        {
            var configs = Config.Instance.GetAllValues<HelpInfoConfig>();
            var needCount = configs.Count;
            var behaviours = new List<UserIssueBehaviour>();
            behaviours.Add(m_IssueBehaviourPattern);
            for (var i = 0; i < needCount; i++)
            {
                var instance = GameObject.Instantiate(m_IssueBehaviourPattern.gameObject) as GameObject;
                var behaviour = instance.GetComponent<UserIssueBehaviour>();
                behaviours.Add(behaviour);
            }
        }
        private void InitContact()
        {
        }
        private void DisplayIssues()
        {
            m_IssueContainer.gameObject.SetActive(true);
            m_ContactContainer.gameObject.SetActive(false);
        }
        private void DisplayContact()
        {
            m_IssueContainer.gameObject.SetActive(false);
            m_ContactContainer.gameObject.SetActive(true);
        }
        private void CopyQQ()
        {
        }
        private void CopyPhone()
        {
        }
    }
}
System/UserHelp/UserHelpWin.cs.meta
New file
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: a87e195085aa9aa439b6b66d8b0282ba
timeCreated: 1539587097
licenseType: Pro
MonoImporter:
  serializedVersion: 2
  defaultReferences: []
  executionOrder: 0
  icon: {instanceID: 0}
  userData:
  assetBundleName:
  assetBundleVariant:
System/UserHelp/UserIssueBehaviour.cs
New file
@@ -0,0 +1,28 @@
//--------------------------------------------------------
//    [Author]:           第二世界
//    [  Date ]:           Monday, October 15, 2018
//--------------------------------------------------------
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
namespace Snxxz.UI
{
    public class UserIssueBehaviour : MonoBehaviour
    {
        [SerializeField] Text m_Title;
        [SerializeField] Text m_Content;
        public void Display(string title, string content)
        {
            this.m_Title.text = title;
            this.m_Content.text = content;
        }
    }
}
System/UserHelp/UserIssueBehaviour.cs.meta
New file
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 730822a53ac23f442ad087f645e3176c
timeCreated: 1539587636
licenseType: Pro
MonoImporter:
  serializedVersion: 2
  defaultReferences: []
  executionOrder: 0
  icon: {instanceID: 0}
  userData:
  assetBundleName:
  assetBundleVariant: