public LegacyGameInterfaceLayer( string name, GameInterfaceDrawMethod drawMethod, InterfaceScaleType scaleType = InterfaceScaleType.Game) : base(name, scaleType) { this._drawMethod = drawMethod; }
public GameInterfaceLayer(string name, InterfaceScaleType scaleType) { this.Name = name; this.ScaleType = scaleType; }
public TooltipLayer(string name, InterfaceScaleType scaleType) : base(name, scaleType) { }
public GameInterfaceLayer(string name, InterfaceScaleType scaleType) { Name = name; ScaleType = scaleType; }
private UILayer(string name, InterfaceScaleType scaleType) : base(name, scaleType) { }
public static void AddLayer(List <GameInterfaceLayer> layers, UserInterface userInterface, UIState state, int index, bool visible, InterfaceScaleType scale) { string name = state == null ? "Unknown" : state.ToString(); layers.Insert(index, new LegacyGameInterfaceLayer("StarlightRiver: " + name, delegate { if (visible) { userInterface.Update(Main._drawInterfaceGameTime); state.Draw(Main.spriteBatch); } return(true); }, scale)); }
public DoTariaInterfaceLayer(string name, InterfaceScaleType scaleType, DoTariaUIState uiState, UserInterface userInterface) : base(name, scaleType) { UIState = uiState; UserInterface = userInterface; }
public InterfaceResource(string name, InterfaceScaleType scaleType) : base(name, scaleType) { }
public RegionLayer(string name, InterfaceScaleType scaleType) : base(name, scaleType) { }
public void InsertIntoLayers(string layerName, List <GameInterfaceLayer> layers, InterfaceScaleType scaleType = InterfaceScaleType.UI) { int inventoryIndex = layers.FindIndex(layer => layer.Name.Equals(layerName)); if (inventoryIndex != -1) { layers.Insert(inventoryIndex + 1, new LegacyGameInterfaceLayer(LayerName, () => { if (Visible) { Draw(Main.spriteBatch, new GameTime()); } return(true); }, scaleType)); } }
protected MedalGaugeBase(string name, InterfaceScaleType scaleType) : base(name, scaleType) { }