Ejemplo n.º 1
0
 private void onChangeDistrictColor(UIComponent component, Color value)
 {
     SVMUtils.doLog("onChangeDistrictColor");
     if (!getCurrentSelectedId(out int currentDistrict))
     {
         return;
     }
     extension.SetColorDistrict((uint)currentDistrict, value);
     eventOnColorDistrictChanged?.Invoke(value);
 }
Ejemplo n.º 2
0
        private void onChangeDistrictColor(UIComponent component, Color value)
        {
            LogUtils.DoLog("onChangeDistrictColor");
            if (!getCurrentSelectedId(out int currentDistrict))
            {
                return;
            }

            SingletonLite <T> .instance.GetExtensionDistrict().SetColor((uint)currentDistrict, value);

            eventOnColorDistrictChanged?.Invoke(value);
        }
Ejemplo n.º 3
0
 private void onDistrictChanged()
 {
     if (getCurrentSelectedId(out int currentDistrict))
     {
         mainPanel.isVisible = true;
         if (m_districtColor != null)
         {
             m_districtColor.selectedColor = Singleton <T> .instance.GetSSD().GetTransportExtension().GetColorDistrict((uint)currentDistrict);
         }
         eventOnDistrictSelectionChanged?.Invoke(currentDistrict);
     }
     else
     {
         mainPanel.isVisible = false;
     }
 }