示例#1
0
 public void SetHighlight(HighlightType type, uint thingId)
 {
     if (currentReport != null)
     {
         paths.SetHighlight(type, thingId);
         if (type == HighlightType.None)
         {
             ui.SetHighlightData(null, 0);
         }
         else
         {
             ui.SetHighlightData(currentReport.CountEntiesTypes(type, thingId), currentReport.allEntities.Length);
         }
     }
 }
示例#2
0
        internal void OnGotReport(Report report)
        {
            currentReport   = report;
            base.ToolCursor = m_cursor;
            paths.SetReport(report);

            if (report == null)
            {
                ui.SetSelectedData(null);
                ui.SetHighlightData(null, 0);
            }
            else
            {
                ui.SetSelectedData(report.CountEntiesTypes());

#if DEBUG
                report.Save("report.xml");
#endif
            }
        }
示例#3
0
        internal void OnGotReport(Report report)
        {
            currentReport = report;
            base.ToolCursor = m_cursor;
            paths.SetReport(report);

            if (report == null)
            {
                ui.SetSelectedData(null);
                ui.SetHighlightData(null, 0);
            }
            else
            {
                ui.SetSelectedData(report.CountEntiesTypes());

            #if DEBUG
                report.Save("report.xml");
            #endif
            }
        }