private void SelectTargetWindows(Kernel_bin.Target t) { Target = t; if ((t & Kernel_bin.Target.Ally) != 0 || t == Kernel_bin.Target.None || ((t & Kernel_bin.Target.Enemy) == 0 && (t & Kernel_bin.Target.Single_Side) != 0)) { TargetParty.Show(); TargetAll(TargetParty); } else { TargetParty.Hide(); } if ((t & Kernel_bin.Target.Enemy) != 0) { TargetEnemies.Show(); TargetAll(TargetEnemies); } else { TargetEnemies.Hide(); } void TargetAll(IGMData.Base i) { if ((Target & Kernel_bin.Target.Single_Target) == 0) { i.Cursor_Status |= Cursor_Status.All; } else { i.Cursor_Status &= ~Cursor_Status.All; } } }
private void SelectTargetWindows(Kernel_bin.Target t) { IGMData_TargetEnemies i = (IGMData_TargetEnemies)(((IGMDataItem_IGMData)ITEM[0, 0]).Data); IGMData_TargetParty ii = (IGMData_TargetParty)(((IGMDataItem_IGMData)ITEM[1, 0]).Data); if ((t & Kernel_bin.Target.Ally) != 0) { ii.Show(); } else { ii.Hide(); } if ((t & Kernel_bin.Target.Enemy) != 0) { i.Show(); } else { i.Hide(); } }