Ejemplo n.º 1
0
    // ********************************************************************


    // ********************************************************************
    #region MonoBehaviour Methods
    // ********************************************************************
    void Start()
    {
        if (m_initOnStart)
        {
            PanelManager.AddPanel(this);
        }
    }
Ejemplo n.º 2
0
        public override void Initialize()
        {
            var btn = new TestButton(4, new Vector2(400, 300), 200, 10, Color.BurlyWood, Gd);

            btn.PanelClickEvent += btnClick;
            PanelManager.AddPanel(btn);
        }
Ejemplo n.º 3
0
 private void Awake()
 {
     PanelManager.AddPanel(this);
     SubscribeEvents();
     if (Defaults.hasInitialized)
     {
         OnDefaultsChanged();
     }
 }
Ejemplo n.º 4
0
        public override void Initialize()
        {
            sprite = new TSprite(0, "Test", "Patricia", new Vector2(50, 50));
            Objects.Add(sprite);

            var btn = new TestButton(1, new Vector2(100, 100), 200, 50, Color.White, Gd);

            var btn2 = new TestButton(2, new Vector2(100, 300), 200, 50, Color.Green, Gd);

            btn.PanelClickEvent  += Button1CLick;
            btn2.PanelClickEvent += Button2Click;

            btn.MouseEnterEvent += Button1Enter;
            btn.MouseLeaveEvent += Button1Leave;

            PanelManager.AddPanel(btn);
            PanelManager.AddPanel(btn2);
        }