public void hide() { for (int i = 0; i < WN.Count; i++) { WN[i].hide(); } mMP.Hide(); }
public void ClearGUI() { closing = true; if (hudOverlay != null) { hudOverlay.Hide(); hudOverlay.Dispose(); } if (!EngineConfig.DisplayMinimap) { return; } try { ammoContainer.Hide(); livesContainer.Hide(); scoreContainer.Hide(); hiscoreContainer.Hide(); infoContainer.Hide(); OverlayManager.Singleton.DestroyOverlayElement(ammoElement); OverlayManager.Singleton.DestroyOverlayElement(livesElement); OverlayManager.Singleton.DestroyOverlayElement(scoreElement); OverlayManager.Singleton.DestroyOverlayElement(hiscoreElement); OverlayManager.Singleton.DestroyOverlayElement(infoElement); ammoContainer.Dispose(); livesContainer.Dispose(); hiscoreContainer.Dispose(); scoreContainer.Dispose(); infoContainer.Dispose(); // sceneMgr.DestroyAllEntities(); hudNode.Dispose(); hudNode = null; fuelArrowNode.Dispose(); fuelArrowNode = null; oilArrowNode.Dispose(); oilArrowNode = null; /* * ammoElement.Hide(); * ammoElement.Dispose(); * livesElement.Hide(); * livesElement.Dispose(); * scoreElement.Hide(); * scoreElement.Dispose(); * hiscoreElement.Hide(); * hiscoreElement.Dispose();*/ } catch (Exception ex) { LogManager.Singleton.LogMessage(LogMessageLevel.LML_CRITICAL, "Exception while cleaning up indicator control (" + ex.Message + ") " + ex.StackTrace); } }
public override void Hide() { if (editorPanel.IsVisible) { editorPanel.Hide(); editor.Dispose(); } }
public OverlayContainer createMousePointer(Vector2 d, String m) { mMPo = OverlayManager.Singleton.Create("BetaGUI.MP"); mMPo.ZOrder = 649; mMP = createOverlay("bg.mp", new Vector2(0, 0), d, m, "", false); mMPo.Add2D(mMP); mMPo.Show(); mMP.Hide(); return(mMP); }
private void DisposeFullfilledImageContainer() { if (imageContainerFulfilled != null) { imageContainerFulfilled.Hide(); achievementsWindow.mI.Remove(imageContainerFulfilled); achievementsWindow.mO.RemoveChild(imageContainerFulfilled.Name); OverlayManager.Singleton.DestroyOverlayElement(imageContainerFulfilled); imageContainerFulfilled.Dispose(); imageContainerFulfilled = null; } }
private void DisposeTextContainer() { if (textContainer != null) { textContainer.Hide(); achievementsWindow.mO.RemoveChild(textContainer.Name); OverlayManager.Singleton.DestroyOverlayElement(textContainer); textContainer.Dispose(); textContainer = null; } }
public void Update(int time) { ModelEffectsManager.Instance.UpdateEffect(time, EffectType.BulletTimeEffect); float width = ModelEffectsManager.Instance.GetEffectLevel(EffectType.BulletTimeEffect) * _width; //_barOverConta.SetPosition(_startPoint.X, _startPoint.Y - (_heigth - h)); _barOverConta.SetDimensions(width, _height); _barOverConta.Show(); // todo: timer if (width < _width * _threshold) { thresholdCrossed = true; if (blinkDelay.Milliseconds > 100) { BetaGUI.Window.ChangeContainerColour(_text, _colour2); if (_text.IsVisible) { _text.Hide(); } else { _text.Show(); } blinkDelay.Reset(); } } else { if (thresholdCrossed) { blinkDelay.Reset(); BetaGUI.Window.ChangeContainerColour(_text, _colour1); if (!_text.IsVisible) { _text.Show(); } thresholdCrossed = false; } } }
public void DestroyMessageContainer() { try { MaterialPtr mat = MaterialManager.Singleton.GetByName("MessageBarIcon"); mat.GetBestTechnique().GetPass(0).GetTextureUnitState(0).SetTextureName("radio.png"); } catch (Exception) { } if (messageOverlay != null) { messageOverlay.Hide(); messageOverlay.Dispose(); messageOverlay = null; } if (backgroundElement != null) { backgroundElement.Hide(); backgroundElement.Dispose(); backgroundElement = null; } messageContainer.Hide(); OverlayManager.Singleton.DestroyOverlayElement(messageElement); messageElement = null; messageContainer.Dispose(); messageContainer = null; if (iconOverlay != null) { iconElement.Hide(); iconElement.Dispose(); iconElement = null; iconOverlay.Hide(); iconOverlay.Dispose(); iconOverlay = null; } }
public SdkTrayManager(string name) { Name = name; string nameBase = Name + "/"; nameBase = nameBase.Replace(" ", "_"); for (var i = 0; i < _widgets.Length; i++) { _widgets[i] = new List <Widget>(); } OverlayManager om = OverlayManager.Singleton; _backdropLayer = om.Create(nameBase + "BackdropLayer"); _traysLayer = om.Create(nameBase + "WidgetsLayer"); _priorityLayer = om.Create(nameBase + "PriorityLayer"); _cursorLayer = om.Create(nameBase + "CursorLayer"); _backdropLayer.ZOrder = 100;; _traysLayer.ZOrder = 200; _priorityLayer.ZOrder = 300; _cursorLayer.ZOrder = 400; // make backdrop and cursor overlay containers _cursor = (OverlayContainer)om.CreateOverlayElementFromTemplate("SdkTrays/Cursor", "Panel", nameBase + "Cursor"); _cursorLayer.Add2D(_cursor); _backdrop = (OverlayContainer)om.CreateOverlayElement("Panel", nameBase + "Backdrop"); _backdropLayer.Add2D(_backdrop); _dialogShade = (OverlayContainer)om.CreateOverlayElement("Panel", nameBase + "DialogShade"); _dialogShade.MaterialName = "SdkTrays/Shade"; _dialogShade.Hide(); _priorityLayer.Add2D(_dialogShade); string[] trayNames = new[] { "TopLeft", "Top", "TopRight", "Left", "Center", "Right", "BottomLeft", "Bottom", "BottomRight" }; for (var i = 0; i < 9; i++) // make the real trays { _trays[i] = (OverlayContainer)om.CreateOverlayElementFromTemplate ("SdkTrays/Tray", "BorderPanel", nameBase + trayNames[i] + "Tray"); _traysLayer.Add2D(_trays[i]); _trayWidgetAlign[i] = GuiHorizontalAlignment.GHA_CENTER; // align trays based on location if (i == (int)TrayLocation.Top || i == (int)TrayLocation.Center || i == (int)TrayLocation.Bottom) { _trays[i].HorizontalAlignment = GuiHorizontalAlignment.GHA_CENTER; } if (i == (int)TrayLocation.Left || i == (int)TrayLocation.Center || i == (int)TrayLocation.Right) { _trays[i].VerticalAlignment = GuiVerticalAlignment.GVA_CENTER; } if (i == (int)TrayLocation.TopRight || i == (int)TrayLocation.Right || i == (int)TrayLocation.BottomRight) { _trays[i].HorizontalAlignment = GuiHorizontalAlignment.GHA_RIGHT; } if (i == (int)TrayLocation.BottomLeft || i == (int)TrayLocation.Bottom || i == (int)TrayLocation.BottomRight) { _trays[i].VerticalAlignment = GuiVerticalAlignment.GVA_BOTTOM; } } // create the null tray for free-floating widgets _trays[9] = (OverlayContainer)om.CreateOverlayElement("Panel", nameBase + "NullTray"); _trayWidgetAlign[9] = GuiHorizontalAlignment.GHA_LEFT; _traysLayer.Add2D(_trays[9]); AdjustTrays(); ShowTrays(); ShowCursor(); }
public void hide() { mO.Hide(); }