private void Start() { I = this; DPSettings.OnLoad(() => { //TODO: Renable // LoadApps(true); }); AppIcon.appSelectEvent += LaunchAppIcon; }
private void Start() { OverlayManager.onInitialized += OnOverlaysInitialized; StartCoroutine(LoadBuiltInApps()); SteamVRManager.I.onHeadsetStateChanged.AddListener(OnHeadsetStateChanged); blackoutDP.onInitialized += delegate { blackoutDP.SetOverlayTransform(new Vector3(0f, 0f, 0.13f), Vector3.zero, true, true); }; closeDP.onInteractedWith += delegate(bool b) { if (b) { closeDP.TransitionOverlayWidth(0.07f, 0.3f); } else { closeDP.TransitionOverlayWidth(0.065f, 0.2f); } }; DPSettings.OnLoad((() => { SetBlackoutOpacity(DPSettings.config.dimGameAmount); })); gameArtDP.onInteractedWith += delegate(bool b) { CUIManager.Animate(gameHoverGroup, b); if (b) { gameArtDP.TransitionOverlayWidth(0.205f, 0.2f); } else { gameArtDP.TransitionOverlayWidth(0.2f, 0.1f); } }; WindowListButton.onPress += LaunchAppToMainSnap; WindowListButton.onHeldClose += CloseApp; LoadAllSnapPoints(); }
//UnityEvent<RectTransform> ytay = new //[ShowInInspector] public BetterEvent<string> testEvent = new BetterEvent<string>(); protected override void Start() { base.Start(); //testEvent.Invoke("yay"); bool isElevated = UACHelper.IsProcessElevated; adminText.SetText("ADMIN: " + isElevated.ToString()); enableAdminMsg.gameObject.SetActive(!isElevated); #if !UNITY_EDITOR DPSettings.OnLoad(SetupWelcomeScreen); #endif }
private void Init() { try { SteamClient.Init(appID); isConnected = true; } catch (System.Exception e) { // Couldn't init for some reason (steam is closed etc) Debug.Log("Could not connect to steamworks: " + e); } var q = Steamworks.Ugc.Query.All .WithTag("Fun") .WithTag("Movie") .MatchAllTags(); //var result = await q.GetPageAsync( 1 ); /*foreach ( Steamworks.Ugc.Item entry in result.Value.Entries ) * { * Console.WriteLine( $" {entry.Owner.Name}" ); * }*/ SteamFinder.FindSteam(); DPSettings.OnLoad(delegate { if (DPSettings.config.overrideOverlayRenderQuality) { ToggleRigidLoops(true); } }); //if (enableRigidLoops) ToggleRigidLoops(enableRigidLoops); GetAvatar(); }
private void Start() { I = this; DPSettings.LoadConfigJson(); //StartCoroutine(DPSettings.AutoSave()); DPSettings.OnLoad(HandleMinimizeAtStartup); // TemplateWindowItem.selectedEvent += delegate(UwcWindow window) { NewDPWindowOverlay(window); }; WindowSelectListElement.onPressed += delegate(WindowSelectListElement element) { DPDesktopOverlay desktopDP; if (!element.isDesktop) { desktopDP = NewDPWindowOverlay(element.window); } else { desktopDP = NewDPMonitorOverlay(element.monitor); } TheBarManager.I.LaunchAppToMainSnap(desktopDP.dpAppParent.appKey); }; //SteamVRManager.I.onSteamVRConnected.AddListener(LoadDefaultLayout); //StartCoroutine(HandleOverlayRendering()); StartCoroutine(DPOverlayBase.HandleRendering()); TouchInjector.InitializeTouchInjection(); }
private void Start() { DPSettings.OnLoad((() => { if (DPSettings.config.isFirstTime) { DPSettings.config.isFirstTime = false; CUIManager.Animate(firstGroup, true); } })); version.SetText("ver." + Application.version + ""); SteamVRManager.I.onHeadsetStateChanged.AddListener(OnHeadsetStateChanged); /* * dpMain.overlay.visibilityUpdatedEvent += b => { * CalculateShouldBeActive(); * }; */ StartCoroutine(LoopCheckShouldBeActive()); }