RNOs displayed before substeps for enhanced background flag

Improved arrowing for backgrounds with RNO before substeps
This commit is contained in:
2013-10-02 10:41:58 +00:00
parent 062cf39e53
commit 2988ba9b87
2 changed files with 12 additions and 1 deletions

View File

@@ -918,6 +918,14 @@ namespace Volian.Controls.Library
// Arrow down from a Table should look for a Substep
if(ii.IsTablePart && (ii.ActiveParent as ItemInfo).Steps != null)
return TopPart((ii.ActiveParent as ItemInfo).Steps[0]);
// if this is enhanced background, the RNO is displayed after the HLS, so check
// for this, arrow down should go to the RNO. If on the RNO, then go to substeps if they exist.
if (((ii.ActiveFormat.PlantFormat.FormatData.PurchaseOptions.Value & E_PurchaseOptions.EnhancedBackgrounds) == E_PurchaseOptions.EnhancedBackgrounds))
{
if (lookAtRNO && ii.RNOs != null) return TopPart(ii.RNOs[0]);
if (ii.IsRNOPart && ii.MyHLS.Steps != null) return TopPart(ii.MyHLS.Steps[0]);
}
if (lookAtSub && ii.Tables != null) return TopPart(ii.Tables[0]);
if (lookAtSub && ii.Steps != null) return TopPart(ii.Steps[0]);
// RNOs: Use PMode (column)