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); } }
public static void Postfix(ScheduleScreenEntry __instance) { ScheduleNameChanged?.Invoke(__instance.schedule); }