public InfoPanel(IInfoPanel @base) : this((IUIElement)@base) { IsExpanded = @base?.IsExpanded; ExpandToggleButton = @base?.ExpandToggleButton; HeaderContent = @base?.HeaderContent; ExpandedContent = @base?.ExpandedContent; }
public void IntialisePopulator(IEquipmentMenu equipmentMenu, GameObject contentView, ICheckShipSlot slotChecker, IShipAssign assigner, IInfoPanel infoPanel) { this.equipmentMenu = equipmentMenu; this.contentView = contentView; this.slotChecker = slotChecker; this.assigner = assigner; this.infoPanel = infoPanel; weaponServicer = SessionData.instance.weaponServicer.GetComponent <IWeaponServicer>(); }
static public BotEngine.EveOnline.Interface.MemoryStruct.InfoPanel AsOldInfoPanel( this IInfoPanel infoPanel) { if (infoPanel == null) { return(null); } return(new BotEngine.EveOnline.Interface.MemoryStruct.InfoPanel(infoPanel.AsOldUIElement()) { IsExpanded = infoPanel?.IsExpanded, ExpandedContentLabel = infoPanel?.ExpandedContent?.LabelText?.AsOldUIElementLabelString()?.ToArray(), HeaderButtonExpand = infoPanel?.ExpandToggleButton?.AsOldUIElement(), HeaderLabel = infoPanel?.HeaderContent?.LabelText?.Largest()?.AsOldUIElementLabelString(), }); }
public ConsoleView() { Console.CursorVisible = false; Console.SetWindowSize(120, 41); Console.SetBufferSize(120, 41); _infoPanel = new ConsoleInfoPanel(120, 10, 0, 0); _leftPanel = new ConsoleFilePanel(60, 25, 0, 10, "pathLeftPanel"); _rightPanel = new ConsoleFilePanel(60, 25, 60, 10, "pathRightPanel"); _btnPanel = new ConsoleButtonPanel(120, 3, 0, 35); _leftPanel.Active = true; _rightPanel.Active = false; _infoPanel.Show(); _leftPanel.Show(); _rightPanel.Show(); _btnPanel.Show(); }
/// <summary> /// Select the give minion and show the info panel for that minion /// </summary> public void SelectMinion(IHasInfoPanel entity) { //Get rid of old minion callbacks if (selectedEntity != null) { selectedEntity.Stats.OnStatChanged -= currentInfoPanel.UpdateInfo; } //Destroy old panel Destroy(currentInfoPanel?.GameObject); //Create new info panel currentInfoPanel = Instantiate(prefabDictionary[entity.GetType()], infoPanelParent).GetComponent <IInfoPanel>(); //Set new callback selectedEntity = entity; selectedEntity.Stats.OnStatChanged += currentInfoPanel.UpdateInfo; currentInfoPanel.UpdateInfo(selectedEntity.Stats); //Set position and show currentInfoPanel.GameObject.SetActive(true); }
public InfoPanelRoute(IInfoPanel Base) : base(Base) { }
public InfoPanelSystem(IInfoPanel Base) : base(Base) { }
public InfoPanelMissions(IInfoPanel Base) : base(Base) { }
public InfoPanelRoute(IInfoPanel @base) : base(@base) { }
public InfoPanelMissions(IInfoPanel @base) : base(@base) { }
/*public void SetData(string stringID, string title, Sprite cellThumbnail, string cellPrice, EquipmentType type, IInfoPanel panel) * { * this.equipmentID = stringID; * this.cellTitle.text = title; * this.cellImage.sprite = cellThumbnail; * this.cellPrice.text = cellPrice; * this.equipmentType = type; * this.infoPanelInterface = panel; * }*/ public virtual void PassInterfaces(IInfoPanel infoPanel) { this.informationPanel = infoPanel; }
/// <summary> /// Passes interfaces used for the cell. /// </summary> public void PassInterfaces(IInfoPanel infoPanel, IShopTransaction shopTransaction) { this.informationPanel = infoPanel; this.shopTransaction = shopTransaction; }
public InfoPanelSystem(IInfoPanel @base) : base(@base) { }
public void InitialiseMenu(IInfoPanel informationPanel) { this.informationPanel = informationPanel; }