mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-20 09:17:29 +07:00
Replace ControlPanel specific code with an observer copy
This commit is contained in:
parent
dee6066306
commit
392889b030
@ -107,12 +107,7 @@ public class SpellsQuickPanel extends Table implements Disposable, CharData.Skil
|
||||
HotkeyButton button = keyMappings.get(key);
|
||||
if (button == null) return;
|
||||
// TODO: Assign
|
||||
ControlPanel controlPanel = Riiablo.game.controlPanel;
|
||||
if (leftSkills) {
|
||||
controlPanel.getLeftSkill().copy(button);
|
||||
} else {
|
||||
controlPanel.getRightSkill().copy(button);
|
||||
}
|
||||
observer.copy(button);
|
||||
}
|
||||
};
|
||||
for (MappedKey Skill : Keys.Skill) Skill.addStateListener(mappedKeyListener);
|
||||
|
Loading…
Reference in New Issue
Block a user