protected override void Awake() { base.Awake(); base.effectColor = new Color(0f, 0f, 0f, Alpha); base.effectDistance = FixedDistance; base.useGraphicAlpha = false; base.enabled = ConfigDevice.DeviceQuality() >= DeviceQualityType.High; }
private void Window_KeyDown_1(object sender, KeyEventArgs e) { if ((Keyboard.Modifiers == ModifierKeys.Control) && (e.Key == Key.E)) { ConfigDevice config = new ConfigDevice(); config.ShowDialog(); } }
public void setVisible(bool visible) { if (!this.OverrideLowEndDeviceRestriction && (ConfigDevice.DeviceQuality() <= DeviceQualityType.Med)) { this.SpriteRenderer.enabled = false; } else { this.SpriteRenderer.enabled = visible; } }
public void initialize(TaskPanelItemType type, Content content) { this.ActiveContent = content; this.Type = type; this.IconRectTransform.anchoredPosition = this.ActiveContent.IconOffset; RectTransformExtensions.SetSize(this.IconRectTransform, this.ActiveContent.IconSize); this.Sparkles.startColor = this.ActiveContent.SparklesColor; this.Sparkles.gameObject.SetActive(ConfigDevice.DeviceQuality() >= DeviceQualityType.Med); this.Glow.SetActive(ConfigDevice.DeviceQuality() >= DeviceQualityType.Med); this.refresh(null, null, 1, content.IconSprite); }
public void setVisible(bool visible) { if (ConfigDevice.DeviceQuality() <= DeviceQualityType.Low) { this.SpriteRenderer.enabled = false; this.Billboard.enabled = false; } else { this.SpriteRenderer.enabled = visible; this.Billboard.enabled = visible; } }
public void initializeRenderTexture() { this.releaseRenderTexture(); if (ConfigDevice.DeviceQuality() <= DeviceQualityType.Low) { this.RenderTexture = new UnityEngine.RenderTexture(0x200, 0x200, 0x18, RenderTextureFormat.ARGB32); } else { this.RenderTexture = new UnityEngine.RenderTexture(0x500, 0x500, 0x18, RenderTextureFormat.ARGB32); } this.RenderTexture.filterMode = FilterMode.Bilinear; this.Camera.targetTexture = this.RenderTexture; }
public void cleanUpForReuse() { bool flag = false; if (this.BannerImage.texture != null) { UnityEngine.Object.DestroyImmediate(this.BannerImage.texture); this.BannerImage.texture = null; flag = true; } if ((ConfigDevice.DeviceQuality() <= DeviceQualityType.Low) && flag) { Resources.UnloadUnusedAssets(); } }
protected override void onCleanup() { bool flag = false; if (this.m_inputParameters.DisposableBackgroundTexture != null) { UnityEngine.Object.Destroy(this.m_inputParameters.DisposableBackgroundTexture); this.m_inputParameters.DisposableBackgroundTexture = null; this.RawBg.texture = null; flag = true; } if ((ConfigDevice.DeviceQuality() <= DeviceQualityType.Low) && flag) { Resources.UnloadUnusedAssets(); } }
public void onOkButtonClicked() { if (!PlayerView.Binder.MenuSystem.InTransition) { Player player = GameLogic.Binder.GameState.Player; if (player.SocialData.HeroNamingCount > 1) { this.onCustomCloseButtonClicked(); } else if (player.SocialData.HeroNamingCount == 1) { ConfirmationPopupContent.InputParameters parameters; ConfirmationPopupContent.InputParameters parameters2; if (ConfigDevice.IsAndroid()) { parameters2 = new ConfirmationPopupContent.InputParameters(); parameters2.TitleText = _.L(ConfigLoca.HERONAMING_TITLE, null, false); parameters2.DescriptionText = this.m_customName; parameters2.LeftButtonText = _.L(ConfigLoca.UI_PROMPT_CANCEL, null, false); parameters2.RightButtonText = _.L(ConfigLoca.UI_PROMPT_CONFIRM, null, false); parameters2.RightButtonCallback = new System.Action(this.completeRenaming); parameters2.NavigateBackEqualsToLeftButton = true; parameters = parameters2; } else { parameters2 = new ConfirmationPopupContent.InputParameters(); parameters2.TitleText = _.L(ConfigLoca.HERONAMING_TITLE, null, false); parameters2.DescriptionText = this.m_customName; parameters2.LeftButtonText = _.L(ConfigLoca.UI_PROMPT_CONFIRM, null, false); parameters2.RightButtonText = _.L(ConfigLoca.UI_PROMPT_CANCEL, null, false); parameters2.LeftButtonCallback = new System.Action(this.completeRenaming); parameters = parameters2; } PlayerView.Binder.MenuSystem.transitionToMenu(MenuType.ThinPopupMenu, MenuContentType.ConfirmationPopupContent, parameters, 0f, false, true); } else { this.completeRenaming(); } } }
private void BtnConfig_Click(object sender, RoutedEventArgs e) { ConfigDevice configDevice = new ConfigDevice(); configDevice.ShowDialog(); }