private void OnUnitChange(UILengthUnit newUnit) { UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, m_NumericUpDownOrigin); UIPreference.NumericUpDownToolTip(newUnit.ToString(), this.m_NumericUpDownOrigin, this.m_ToolTip); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, m_NumericUpDownOriginY); UIPreference.NumericUpDownToolTip(newUnit.ToString(), this.m_NumericUpDownOriginY, this.m_ToolTip); }
private void OnUnitChange(UILengthUnit newUnit) { for (int i = 0; i < m_HeadNum; i++) { UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.m_NumericUpDownXs[i]); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.m_NumericUpDownYs[i]); UIPreference.NumericUpDownToolTip(newUnit.ToString(), this.m_NumericUpDownXs[i], this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnit.ToString(), this.m_NumericUpDownYs[i], this.m_ToolTip); } }
private void OnUnitChange(UILengthUnit newUnit) { UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numCappingPosX); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numCappingPosY); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numCappingPosZ); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numHomePosX); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numHomePosY); string newUnitdis = ResString.GetEnumDisplayName(typeof(UILengthUnit), newUnit); UIPreference.NumericUpDownToolTip(newUnit.ToString(), this.numCappingPosX, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnit.ToString(), this.numCappingPosY, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnit.ToString(), this.numCappingPosZ, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnit.ToString(), numHomePosX, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnit.ToString(), numHomePosY, this.m_ToolTip); this.isDirty = false; }