| System/HazyRegion/HazyRegionIncidentPanel.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/HazyRegion/HazyRegionModel.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
System/HazyRegion/HazyRegionIncidentPanel.cs
@@ -58,20 +58,31 @@ if (incidents.Count > 0) { model.selectIncident = incidents[0]; var error = 0; foreach (var id in incidents) var _ids = new List<int>(incidents); _ids.Sort((x, y) => { HazyRegionModel.Incident incident; if (model.TryGotoIncident(id, false, out error) && model.TryGetIncident(id, out incident) && incident.state == HazyRegionModel.IncidentState.Processing) HazyRegionModel.Incident lhs_incident; HazyRegionModel.Incident rhs_incident; if (model.TryGetIncident(x, out lhs_incident) && model.TryGetIncident(y, out rhs_incident)) { model.selectIncident = id; break; var lhs_index = model.incidentSelectSort.IndexOf(lhs_incident.state); var rhs_index = model.incidentSelectSort.IndexOf(rhs_incident.state); if (lhs_index != rhs_index) { return lhs_index.CompareTo(rhs_index); } lhs_index = incidents.IndexOf(x); rhs_index = incidents.IndexOf(y); if (lhs_index != rhs_index) { return lhs_index.CompareTo(rhs_index); } } } return 0; }); model.selectIncident = _ids[0]; } m_CyclicScroll.Init(incidents); System/HazyRegion/HazyRegionModel.cs
@@ -11,7 +11,7 @@ Dictionary<int, Incident> m_Incidents = new Dictionary<int, Incident>(); Dictionary<int, AdventureInfo> m_AdventureInfos = new Dictionary<int, AdventureInfo>(); public List<HazyRegionIncidentType> incidentTypesSort = new List<HazyRegionIncidentType>() public readonly List<HazyRegionIncidentType> incidentTypesSort = new List<HazyRegionIncidentType>() { HazyRegionIncidentType.Adventure, HazyRegionIncidentType.Precious, @@ -20,6 +20,13 @@ HazyRegionIncidentType.DemonKing, }; public readonly List<IncidentState> incidentSelectSort = new List<IncidentState>() { IncidentState.Processing, IncidentState.UnStart, IncidentState.Complete, }; public int limitPoint { get; private set; } public int point { get; private set; } public int processingIncidentId { get; private set; }