private void UpdateDisplayData() { if (listBoxObjects.SelectedIndices.Count == 1) { if (displayDataDisabled) { EnableDisplayData(); } ProgramIsChangingStuff = true; NumericPosX.Value = layoutSystem.GetPosX(listBoxObjects.SelectedIndex); NumericPosY.Value = layoutSystem.GetPosY(listBoxObjects.SelectedIndex); NumericPosZ.Value = layoutSystem.GetPosZ(listBoxObjects.SelectedIndex); NumericRotX.Value = layoutSystem.GetRotX(listBoxObjects.SelectedIndex); NumericRotY.Value = layoutSystem.GetRotY(listBoxObjects.SelectedIndex); NumericRotZ.Value = layoutSystem.GetRotZ(listBoxObjects.SelectedIndex); foreach (ObjectEntry o in LayoutEditorSystem.GetActiveObjectEntries()) { if (o.List == layoutSystem.GetSetObjectAt(listBoxObjects.SelectedIndex).List&& o.Type == layoutSystem.GetSetObjectAt(listBoxObjects.SelectedIndex).Type) { ComboBoxObject.SelectedItem = o; } } NumericObjLink.Value = layoutSystem.GetObjectLink(listBoxObjects.SelectedIndex); NumericObjRend.Value = layoutSystem.GetObjectRend(listBoxObjects.SelectedIndex); numericUnkB1.Value = layoutSystem.GetUnkBytes(listBoxObjects.SelectedIndex)[0]; numericUnkB2.Value = layoutSystem.GetUnkBytes(listBoxObjects.SelectedIndex)[1]; numericUnkB3.Value = layoutSystem.GetUnkBytes(listBoxObjects.SelectedIndex)[2]; numericUnkB4.Value = layoutSystem.GetUnkBytes(listBoxObjects.SelectedIndex)[3]; numericUnkB5.Value = layoutSystem.GetUnkBytes(listBoxObjects.SelectedIndex)[4]; numericUnkB6.Value = layoutSystem.GetUnkBytes(listBoxObjects.SelectedIndex)[5]; numericUnkB7.Value = layoutSystem.GetUnkBytes(listBoxObjects.SelectedIndex)[6]; numericUnkB8.Value = layoutSystem.GetUnkBytes(listBoxObjects.SelectedIndex)[7]; PropertyGridMisc.SelectedObject = layoutSystem.GetSetObjectAt(listBoxObjects.SelectedIndex); ProgramIsChangingStuff = false; } UpdateObjectAmountLabel(); }