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