public static IPromise <HUDConfig> InitHUD() { IPromise <HUDConfig> p = ResourceLoaderPromise.Load <HUDConfig>(HUD_CONFIG_PATH, Context.OutOfDungeon, ResourceLoadMode.Instantly); p.Then(tools => HudConfig = tools); return(p); }
public static void Init() { HUDConfig.Init(); if (!TextureManager.Started) { TextureManager.StartLoading(); } drawText = new Text("Lato", new Font(FontFamily.GenericSerif, 14f, FontStyle.Bold)); menu = Program.UtilityMenu.AddSubMenu("Teleports Tracker"); menu.CreateCheckBox("draw", "Draw Teleport End Point"); Drawing.OnEndScene += Drawing_OnEndScene; }
private void LoadHudConfig() { hudConfig = Resources.Load <HUDConfig>(ScriptableObjectData.HUD_CONFIG_PATH); }