/*private void LoadConfig(string configName) * { * m_LoadedFlag.Add(GameFramework.Utility.Text.Format("Config.{0}", configName), false); * GameEntry.Config.LoadConfig(configName, LoadType.Bytes, this); * } * * private void LoadDataTable(string dataTableName) * { * m_LoadedFlag.Add(GameFramework.Utility.Text.Format("DataTable.{0}", dataTableName), false); * GameEntry.DataTable.LoadDataTable(dataTableName, LoadType.Bytes, this); * } * * private void LoadDictionary(string dictionaryName) * { * m_LoadedFlag.Add(GameFramework.Utility.Text.Format("Dictionary.{0}", dictionaryName), false); * GameEntry.Localization.LoadDictionary(dictionaryName, LoadType.Text, this); * }*/ private void LoadFont(string fontName) { m_LoadedFlag.Add(GameFramework.Utility.Text.Format("Font.{0}", fontName), false); GameEntry.Resource.LoadAsset(AssetUtility.GetFontAsset(fontName), Constant.AssetPriority.FontAsset, new LoadAssetCallbacks( (assetName, asset, duration, userData) => { m_LoadedFlag[GameFramework.Utility.Text.Format("Font.{0}", fontName)] = true; UGuiForm.SetMainFont((Font)asset); Log.Info("Load font '{0}' OK.", fontName); }, (assetName, status, errorMessage, userData) => { Log.Error("Can not load font '{0}' from '{1}' with error message '{2}'.", fontName, assetName, errorMessage); })); }
public static void CloseUIForm(this UIComponent uiComponent, UGuiForm uiForm) { uiComponent.CloseUIForm(uiForm.UIForm); }