コード例 #1
0
        private void ShowEditTagValues()
        {
            m_EditPlatformTags = m_Data.GetTagValuesForEachPlatform(m_TagAvailables[m_CurrentTagSelectId]);


            for (int i = 0; i < EnumSystem.GetEnumCount(typeof(eLanguageM_Platform)); i++)
            {
                eLanguageM_Platform platformInUse = (eLanguageM_Platform)i;


                if (platformInUse == eLanguageM_Platform.Unknown)
                {
                    DrawSeparatorDark(true);
                }

                EditorGUILayout.BeginHorizontal();
                m_EditPlatformTags.SetNewValue(platformInUse, ShowAdvancedTextInsert(platformInUse.ToString(), m_Data.GetTagValue(m_TagAvailables[m_CurrentTagSelectId], platformInUse), 2));
                EditorGUILayout.EndHorizontal();

                if (platformInUse == eLanguageM_Platform.Unknown)
                {
                    ShowAdvancedLabelCenter("Return Unknow value if ask platform is null or empty");
                    DrawSeparatorDark(true);
                }
            }

            m_Data.EDITOR_SetPlatformTag(m_EditPlatformTags, m_TagAvailables[m_CurrentTagSelectId]);
        }
コード例 #2
0
ファイル: TagPlatformData.cs プロジェクト: thityy/ManagersHUB
        public void EDITOR_SetPlatformTag(sPlatformTag aPlatformTag, string aTag)
        {
            sPlatformTag tempValue;

            if (m_PlatformTags.TryGetValue(aTag, out tempValue))
            {
                m_PlatformTags[aTag] = aPlatformTag;
            }
            else
            {
                m_PlatformTags.Add(aTag, aPlatformTag);
            }
        }
コード例 #3
0
ファイル: TagPlatformData.cs プロジェクト: thityy/ManagersHUB
        public string GetTagValue(string aTag, eLanguageM_Platform aWantPlatform)
        {
            if (!m_PlatformTags.ContainsKey(aTag))
            {
                Debug.LogWarning("the tag '" + aTag + "' do no exist in the current Tag Platform Data");
                return("Tag do not exist");
            }
            sPlatformTag value = m_PlatformTags[aTag];

            switch (aWantPlatform)
            {
            //_____ XBOX ______________________\\

            case eLanguageM_Platform.Xbox360:
            {
                return(value.Xbox360Txt);
            }

            case eLanguageM_Platform.XboxOne:
            {
                return(value.XboxOneTxt);
            }

            case eLanguageM_Platform.XboxProjectX:
            {
                return(value.XboxProjectXTxt);
            }

            //_____ PLAYSTATION ______________________\\

            case eLanguageM_Platform.Playstation3:
            {
                return(value.Playstation3Txt);
            }

            case eLanguageM_Platform.Playstation4:
            {
                return(value.Playstation4Txt);
            }

            case eLanguageM_Platform.Playstation5:
            {
                return(value.Playstation5Txt);
            }

            //_____ PC ______________________\\

            case eLanguageM_Platform.Windows:
            {
                return(value.WindowsTxt);
            }

            case eLanguageM_Platform.Linux:
            {
                return(value.LinuxTxt);
            }

            case eLanguageM_Platform.IosComputer:
            {
                return(value.IOSComputerTxt);
            }

            //_____ MOBILE ______________________\\

            case eLanguageM_Platform.Android:
            {
                return(value.AndroidTxt);
            }

            case eLanguageM_Platform.IosMobile:
            {
                return(value.IOSMobileTxt);
            }

            //_____ NINTENDO ______________________\\

            case eLanguageM_Platform.Switch:
            {
                return(value.SwitchTxt);
            }

            //_____ GOOGLE ______________________\\

            case eLanguageM_Platform.Stadia:
            {
                return(value.StadiaTxt);
            }
            }

            return(value.UnknowTxt);
        }