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]); }
private void ShowTagChoice() { List <string> choice = new List <string>(); for (int i = 0; i < EnumSystem.GetEnumCount(typeof(eTagCallOption)); i++) { eTagCallOption current = (eTagCallOption)i; choice.Add(current.ToString()); } m_TagCall.enumValueIndex = ShowAdvancedBtnChoice(choice.ToArray(), m_TagCall.enumValueIndex, 1); }
public void EDITOR_InitDic() { if (m_PlatformSpriteSheets.Count > 0) { return; } for (int i = 0; i < EnumSystem.GetEnumCount(typeof(eLanguageM_Platform)); i++) { m_PlatformSpriteSheets.Add((eLanguageM_Platform)i, null); } }
///<summary>Return all tip datas in this ScriptableObject</summary> public List <sTipGroup> GetAllTipDatas() { if (m_TipDatas == null || m_TipDatas.Count == 0) { Debug.Log("New init"); m_TipDatas = new List <sTipGroup>(); for (int i = 0; i < EnumSystem.GetEnumCount(typeof(eSceneM_TipGroup)); i++) { m_TipDatas.Add(new sTipGroup()); } } return(m_TipDatas); }
///<summary>Return all FootSounds set for audioData</summary> public List <sFootSoundWithData> GetFootSoundsData() { if (m_FootSoundsWithData == null || m_FootSoundsWithData.Count == 0) { m_FootSoundsWithData = new List <sFootSoundWithData>(); for (int i = 0; i < EnumSystem.GetEnumCount(typeof(eAudioM_GroundType)); i++) { m_FootSoundsWithData.Add(new sFootSoundWithData(true)); } } if (m_FootSoundsWithData.Count < EnumSystem.GetEnumCount(typeof(eAudioM_GroundType))) { for (int i = m_FootSoundsWithData.Count; i < EnumSystem.GetEnumCount(typeof(eAudioM_GroundType)); i++) { m_FootSoundsWithData.Add(new sFootSoundWithData(true)); } } return(m_FootSoundsWithData); }
///<summary>Return all FootSounds set for audioClip</summary> public List <sFootSound> GetFootSounds() { if (m_FootSounds == null || m_FootSounds.Count == 0) { m_FootSounds = new List <sFootSound>(); for (int i = 0; i < EnumSystem.GetEnumCount(typeof(eAudioM_GroundType)); i++) { m_FootSounds.Add(new sFootSound(true)); } } if (m_FootSounds.Count < EnumSystem.GetEnumCount(typeof(eAudioM_GroundType))) { for (int i = m_FootSounds.Count; i < EnumSystem.GetEnumCount(typeof(eAudioM_GroundType)); i++) { m_FootSounds.Add(new sFootSound(true)); } } return(m_FootSounds); }
private void ShowMaterialAvailable() { for (int i = 0; i < EnumSystem.GetEnumCount(typeof(eAudioM_GroundType)); i++) { if (i == m_GroundSelectId) { ShowAdvancedListBtn(((eAudioM_GroundType)i).ToString(), GetMaterialText((eAudioM_GroundType)i, m_AudioSelector), null, true, 2); } else { if (ShowAdvancedListBtn(((eAudioM_GroundType)i).ToString(), GetMaterialText((eAudioM_GroundType)i, m_AudioSelector), null, false, 2)) { m_GroundSelectId = i; } } } m_GroundSelect = (eAudioM_GroundType)m_GroundSelectId; }