make action chain

This commit is contained in:
bridge
2025-09-13 22:45:46 +08:00
parent 50da151334
commit 244e428d81
9 changed files with 200 additions and 59 deletions

View File

@@ -143,6 +143,11 @@ def draw_tooltip_for_avatar(pygame_mod, screen, colors, font, avatar: Avatar):
lines.append("思考:")
thinking_lines = wrap_text(avatar.thinking, 20)
lines.extend(thinking_lines)
if getattr(avatar, "objective", None):
lines.append("")
lines.append("目标:")
objective_lines = wrap_text(avatar.objective, 20)
lines.extend(objective_lines)
draw_tooltip(pygame_mod, screen, colors, lines, *pygame_mod.mouse.get_pos(), font)