Ejemplo n.º 1
0
 protected void CloseChildPicker()
 {
     if (m_ChildColorPicker != null)
     {
         m_ChildColorPicker.Dispose();
         m_ChildColorPicker = null;
         m_huesTexture      = HueData.CreateHueSwatch(1, 1, new int[1] {
             m_hues[Index]
         });
     }
 }
Ejemplo n.º 2
0
 protected override void OnInitialize()
 {
     if (m_huesTexture == null)
     {
         if (IsChild) // is a child
         {
             m_huesTexture = HueData.CreateHueSwatch(m_hueWidth, m_hueHeight, m_hues);
             IResourceProvider provider = ServiceRegistry.GetService <IResourceProvider>();
             m_selectedIndicator = provider.GetUITexture(6000);
         }
         else
         {
             m_huesTexture = HueData.CreateHueSwatch(1, 1, new int[1] {
                 m_hues[Index]
             });
         }
     }
 }
Ejemplo n.º 3
0
 protected override void OnInitialize()
 {
     if (_huesTexture == null)
     {
         if (IsChild) // is a child
         {
             var provider = Service.Get <IResourceProvider>();
             _huesTexture       = HueData.CreateHueSwatch(_hueWidth, _hueHeight, _hues);
             _selectedIndicator = provider.GetUITexture(6000);
         }
         else
         {
             _huesTexture = HueData.CreateHueSwatch(1, 1, new int[1] {
                 _hues[Index]
             });
         }
     }
 }