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