예제 #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);
     }
 }
예제 #2
0
파일: Patch.cs 프로젝트: romen-h/ONI-Mods
 public static void Postfix(ScheduleScreenEntry __instance)
 {
     ScheduleNameChanged?.Invoke(__instance.schedule);
 }