Example #1
0
        public virtual void Initialize(UIDataProvider uiDataProvider, Dictionary <UIPanelLayer, Transform> layers)
        {
            Log("Initialize");
            UiDataProvider = uiDataProvider;
            m_content      = StarPlatinum.PrefabManager.Instance;

            m_layers = layers;
        }
Example #2
0
        public virtual void Initialize(UIDataProvider uiDataProvider, UIPanelSettings settings)
        {
            m_uiDataProvider  = uiDataProvider;
            m_uiPanelSettings = settings;
            PanelType         = m_uiPanelSettings.PanelType;


            // Debug.Log(GetType());
        }
Example #3
0
        public virtual void Initialize(UIDataProvider uiDataProvider)
        {
            Log("Initialize");
            UiDataProvider = uiDataProvider;
            m_content      = StarPlatinum.PrefabManager.Instance;

            GameObject root = new GameObject(GetType().Name);

            m_container = root.AddComponent <RectTransform>();
            m_container.SetParent(transform, false);
            m_container.SetSiblingIndex(0);
            m_container.anchorMin = Vector2.zero;
            m_container.anchorMax = Vector2.one;
            m_container.offsetMin = Vector2.zero;
            m_container.offsetMax = Vector2.zero;
        }
        public void GetCustomers_Always_CallsGetCustomers()
        {
            //arrange

            CustomerService.ICustomerService serviceMock = MockRepository.GenerateMock <CustomerService.ICustomerService>();
            CustomerService.Customer[]       customers   = { new CustomerService.Customer() };
            serviceMock.Expect(c => c.GetCustomers()).Return(customers);

            UIDataProvider target = new UIDataProvider(serviceMock);

            //act
            var x = target.GetCustomers();

            //assert
            serviceMock.AssertWasCalled(c => c.GetCustomers());
            //assert failed
            //serviceMock.AssertWasNotCalled(c => c.GetCustomers());
        }
Example #5
0
 public override void Initialize(UIDataProvider uiDataProvider, UIPanelSettings settings)
 {
     base.Initialize(uiDataProvider, settings);
 }
Example #6
0
 public override void Initialize(UIDataProvider uiDataProvider)
 {
     base.Initialize(uiDataProvider);
     m_panelsSettings = UIPanelSettingProvider.BattleInfo;
 }
Example #7
0
 public override void Initialize(UIDataProvider uiDataProvider, Dictionary <UIPanelLayer, Transform> layers)
 {
     base.Initialize(uiDataProvider, layers);
     m_panelsSettings = UIPanelSettingProvider.BattleInfo;
 }
Example #8
0
 public override void Initialize(UIDataProvider uiDataProvider, UIPanelSettings settings)
 {
     base.Initialize(uiDataProvider, settings);
     m_textHelp = new TextHelp();
 }