private void EODExpandToggle(UIElement button) { if (LastEODConfig != null) { LastEODConfig.Expanded = !LastEODConfig.Expanded; if (LastEODConfig.Expanded) { ActiveEOD.OnExpand(); } else { ActiveEOD.OnContract(); } SetInEOD(LastEODConfig, ActiveEOD); } }
private void EODExpandToggle(UIElement button) { if (LastEODConfig != null) { LastEODConfig.Expanded = !LastEODConfig.Expanded; if (LastEODConfig.Expanded) { if (EODTimer.Visible == true) { EODTimer.Texture = GetTexture(0x000001BF00000002); // eod_timerback_straight.tga } ActiveEOD.OnExpand(); } else { if (EODTimer.Visible == true) { EODTimer.Texture = GetTexture(0x0000011300000002); // eod_timerback.tga } ActiveEOD.OnContract(); } SetInEOD(LastEODConfig, ActiveEOD); } }