fix(ui): update ring selection to use effects dict
Fixed AttributeError in _on_ring_selected - NexusRing now uses effects dict instead of effect_type/effect_value fields.
This commit is contained in:
parent
9decd0ba5d
commit
1db965f92a
|
|
@ -1620,12 +1620,13 @@ class LoadoutManagerDialog(QDialog):
|
||||||
|
|
||||||
def _on_ring_selected(self, ring: NexusRing):
|
def _on_ring_selected(self, ring: NexusRing):
|
||||||
"""Handle ring selection."""
|
"""Handle ring selection."""
|
||||||
|
effects_str = ", ".join([f"{k}: {v}" for k, v in ring.effects.items()]) if ring.effects else "No effects"
|
||||||
QMessageBox.information(
|
QMessageBox.information(
|
||||||
self,
|
self,
|
||||||
"Ring Selected",
|
"Ring Selected",
|
||||||
f"Selected: {ring.name}\n"
|
f"Selected: {ring.name}\n"
|
||||||
f"Effect: {ring.effect_type} {ring.effect_value}\n"
|
f"Effects: {effects_str}\n"
|
||||||
f"Slot: Left/Right Ring"
|
f"Slot: {ring.slot}"
|
||||||
)
|
)
|
||||||
|
|
||||||
def _on_clothing_selected(self, clothing: NexusClothing):
|
def _on_clothing_selected(self, clothing: NexusClothing):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue