fix: Ausrüstungs-Panel breiter (30→45), weniger Zeilenumbrüche
This commit is contained in:
+4
-4
@@ -110,9 +110,9 @@ def render_game(engine: GameEngine) -> Panel:
|
|||||||
# === Equipment Panel ===
|
# === Equipment Panel ===
|
||||||
equip_table = Table(show_header=False, box=box.SIMPLE, padding=(0, 1), title="[bold]Ausrüstung[/]")
|
equip_table = Table(show_header=False, box=box.SIMPLE, padding=(0, 1), title="[bold]Ausrüstung[/]")
|
||||||
equip_table.add_column("Slot", style="cyan", width=10)
|
equip_table.add_column("Slot", style="cyan", width=10)
|
||||||
equip_table.add_column("Item")
|
equip_table.add_column("Item", no_wrap=False)
|
||||||
|
|
||||||
slot_names = {"weapon": "Waffe", "armor": "Rüstung", "helmet": "Helm", "boots": "Stiefel", "accessory": "Accessoire"}
|
slot_names = {"weapon": "Waffe", "armor": "Rüstung", "helmet": "Helm", "boots": "Stiefel", "accessory": "Accessoir."}
|
||||||
for slot, name in slot_names.items():
|
for slot, name in slot_names.items():
|
||||||
item = c.equipped[slot]
|
item = c.equipped[slot]
|
||||||
equip_table.add_row(name, str(item) if item else "[dim]leer[/]")
|
equip_table.add_row(name, str(item) if item else "[dim]leer[/]")
|
||||||
@@ -157,9 +157,9 @@ def render_game(engine: GameEngine) -> Panel:
|
|||||||
|
|
||||||
# Main: left=char/equip, center=log, right=quest/stats
|
# Main: left=char/equip, center=log, right=quest/stats
|
||||||
layout["main"].split_row(
|
layout["main"].split_row(
|
||||||
Layout(Panel(char_table, title="[bold]Character[/]"), name="left", size=30),
|
Layout(Panel(char_table, title="[bold]Character[/]"), name="left", size=28),
|
||||||
Layout(Panel(log_text, title="[bold]Ereignis-Log[/]"), name="center"),
|
Layout(Panel(log_text, title="[bold]Ereignis-Log[/]"), name="center"),
|
||||||
Layout(name="right", size=30),
|
Layout(name="right", size=45),
|
||||||
)
|
)
|
||||||
|
|
||||||
layout["right"].split_column(
|
layout["right"].split_column(
|
||||||
|
|||||||
Reference in New Issue
Block a user