private void RemoveTime(BudgetEntryXml entry) { TimeableList <BudgetEntryXml> config = TLMLineUtils.GetEffectiveConfigForLine(UVMPublicTransportWorldInfoPanel.GetLineID()).BudgetEntries; if (config != default) { config.RemoveAtHour(entry.HourOfDay ?? -1); m_isDirty = true; } }
private void SetBudget(BudgetEntryXml idx, float val) { idx.Value = (uint)val; RedrawList(); }
private void ValidateTime(BudgetEntryXml idx, int val) { idx.HourOfDay = val; RedrawList(); }