Beispiel #1
0
 private void OnPaintDragged(ScheduleScreenEntry entry, float ratio)
 {
     if (!((Object)selectedPaint == (Object)null))
     {
         int idx = Mathf.FloorToInt(ratio * (float)entry.schedule.GetBlocks().Count);
         entry.schedule.SetGroup(idx, selectedPaint.group);
     }
 }
Beispiel #2
0
 public static void Postfix(ScheduleScreenEntry __instance)
 {
     ScheduleNameChanged?.Invoke(__instance.schedule);
 }