mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- Make sure the targeting overlay menu is initialized correctly.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package forge.screens.match.menus;
|
||||
|
||||
import com.google.common.primitives.Ints;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.KeyEvent;
|
||||
@@ -147,6 +148,12 @@ public final class GameMenu {
|
||||
|
||||
SkinIcon menuIcon = MenuUtil.getMenuIcon(FSkinProp.ICO_ARCSOFF);
|
||||
|
||||
if (matchUI.getCDock().getArcState() == null) {
|
||||
final String arcStateStr = FModel.getPreferences().getPref(FPref.UI_TARGETING_OVERLAY);
|
||||
final Integer arcState = Ints.tryParse(arcStateStr);
|
||||
matchUI.getCDock().setArcState(ArcState.values()[arcState == null ? 0 : arcState]);
|
||||
}
|
||||
|
||||
SkinnedRadioButtonMenuItem menuItem;
|
||||
menuItem = getTargetingArcRadioButton("Off", FSkinProp.ICO_ARCSOFF, ArcState.OFF);
|
||||
if (menuItem.isSelected()) { menuIcon = MenuUtil.getMenuIcon(FSkinProp.ICO_ARCSOFF); }
|
||||
|
||||
Reference in New Issue
Block a user