Search in sources :

Example 1 with FactionEditionDialogController

use of delta.games.lotro.gui.stats.reputation.form.FactionEditionDialogController in project lotro-companion by dmorcellet.

the class CharacterReputationDialogController method actionPerformed.

@Override
public void actionPerformed(ActionEvent event) {
    // +/- buttons
    Object source = event.getSource();
    for (FactionEditionPanelController editor : _editors.values()) {
        if (source == editor.getMinusButton()) {
            Faction faction = editor.getFaction();
            _data.updateFaction(faction, false);
            updateFactionDisplay(editor);
            _deedsDisplay.update();
            _rewardsDisplay.update();
        } else if (source == editor.getPlusButton()) {
            Faction faction = editor.getFaction();
            _data.updateFaction(faction, true);
            updateFactionDisplay(editor);
            _deedsDisplay.update();
            _rewardsDisplay.update();
        } else if (source == editor.getEditButton()) {
            Faction faction = editor.getFaction();
            FactionStatus status = _data.getOrCreateFactionStat(faction);
            FactionEditionDialogController edit = new FactionEditionDialogController(this, status);
            edit.show(true);
            updateFactionDisplay(editor);
            _deedsDisplay.update();
            _rewardsDisplay.update();
        }
    }
}
Also used : FactionEditionDialogController(delta.games.lotro.gui.stats.reputation.form.FactionEditionDialogController) FactionStatus(delta.games.lotro.character.reputation.FactionStatus) Faction(delta.games.lotro.lore.reputation.Faction)

Aggregations

FactionStatus (delta.games.lotro.character.reputation.FactionStatus)1 FactionEditionDialogController (delta.games.lotro.gui.stats.reputation.form.FactionEditionDialogController)1 Faction (delta.games.lotro.lore.reputation.Faction)1