Пример #1
0
 public InfoPanel(IInfoPanel @base)
     : this((IUIElement)@base)
 {
     IsExpanded         = @base?.IsExpanded;
     ExpandToggleButton = @base?.ExpandToggleButton;
     HeaderContent      = @base?.HeaderContent;
     ExpandedContent    = @base?.ExpandedContent;
 }
Пример #2
0
		public InfoPanel(IInfoPanel @base)
			:
			this((IUIElement)@base)
		{
			IsExpanded = @base?.IsExpanded;
			ExpandToggleButton = @base?.ExpandToggleButton;
			HeaderContent = @base?.HeaderContent;
			ExpandedContent = @base?.ExpandedContent;
		}
Пример #3
0
        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>();
        }
Пример #4
0
        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(),
            });
        }
Пример #5
0
        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();
        }
Пример #6
0
    /// <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);
    }
Пример #7
0
 public InfoPanelRoute(IInfoPanel Base)
     :
     base(Base)
 {
 }
Пример #8
0
 public InfoPanelSystem(IInfoPanel Base)
     :
     base(Base)
 {
 }
Пример #9
0
		public InfoPanelMissions(IInfoPanel Base)
			:
			base(Base)
		{
		}
Пример #10
0
 public InfoPanelRoute(IInfoPanel @base)
     :
     base(@base)
 {
 }
Пример #11
0
		public InfoPanelMissions(IInfoPanel @base)
			:
			base(@base)
		{
		}
Пример #12
0
        /*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;
        }
Пример #13
0
		public InfoPanelRoute(IInfoPanel Base)
			:
			base(Base)
		{
		}
Пример #14
0
		public InfoPanelSystem(IInfoPanel Base)
			:
			base(Base)
		{
		}
Пример #15
0
 public InfoPanelMissions(IInfoPanel Base)
     :
     base(Base)
 {
 }
Пример #16
0
 /// <summary>
 /// Passes interfaces used for the cell.
 /// </summary>
 public void PassInterfaces(IInfoPanel infoPanel, IShopTransaction shopTransaction)
 {
     this.informationPanel = infoPanel;
     this.shopTransaction  = shopTransaction;
 }
Пример #17
0
		public InfoPanelSystem(IInfoPanel @base)
			:
			base(@base)
		{
		}
Пример #18
0
 public InfoPanelSystem(IInfoPanel @base)
     :
     base(@base)
 {
 }
Пример #19
0
		public InfoPanelRoute(IInfoPanel @base)
			:
			base(@base)
		{
		}
Пример #20
0
 public InfoPanelMissions(IInfoPanel @base)
     :
     base(@base)
 {
 }
Пример #21
0
 public void InitialiseMenu(IInfoPanel informationPanel)
 {
     this.informationPanel = informationPanel;
 }