Exemple #1
0
        // -------------------------------------------

        /*
         * DayUpdated
         */
        public void DayUpdated(FlatCalendar.TimeObj _time)
        {
            DateTime newDate = new DateTime(_time.year, _time.month, _time.day, 0, 0, 0, 0, System.DateTimeKind.Utc);

            UIEventController.Instance.DispatchUIEvent(EVENT_SCREENCALENDAR_SELECT_DAY, (long)DateConverter.DateTimeToTimeStamp(newDate));
            Destroy();
        }
Exemple #2
0
 public void eventsDiscovered(FlatCalendar.TimeObj time, List <FlatCalendar.EventObj> list)
 {
     Debug.Log("You have selected a day with: " + list.Count + "events");
     for (int i = 0; i < list.Count; i++)
     {
         Debug.Log("Event: " + i + " ==> " + "Name: " + list[i].name + " Description: " + list[i].description);
     }
 }
Exemple #3
0
 void setCurrentTime(FlatCalendar.TimeObj obj)
 {
     obj.year      = System.DateTime.Now.Year;
     obj.month     = System.DateTime.Now.Month;
     obj.day       = System.DateTime.Now.Day;
     obj.dayOfWeek = System.DateTime.Now.DayOfWeek.ToString();
     obj.totalDays = System.DateTime.DaysInMonth(obj.year, obj.month);
     obj.dayOffset = getIndexOfFirstSlotInMonth(obj.year, obj.month);
 }
Exemple #4
0
 public void backHome(FlatCalendar.TimeObj time)
 {
     Debug.Log("You have come back at home");
     time.print();
 }
Exemple #5
0
 public void monthUpdated(FlatCalendar.TimeObj time)
 {
     Debug.Log("Month has changed");
     time.print();
 }
Exemple #6
0
 public void dayUpdated(FlatCalendar.TimeObj time)
 {
     Debug.Log("Day has changed");
     time.print();
 }