Commit Graph

15 Commits

Author SHA1 Message Date
xiaji
edbbb64421 refactor(ui): table cards parent from TableLabel to TableCardRoot 2026-06-02 20:54:50 +08:00
xiaji
4fa4207f8c feat(ui): flight animation + commentary on card play 2026-06-02 20:48:46 +08:00
xiaji
8f21f4dbab feat(ui): add commentary helpers and constants 2026-06-02 20:04:31 +08:00
xiaji
8c81e0d14b feat: 添加出牌动画和牌型排序显示
- 修复 AI decide 方法参数类型为 Array[Card]
- 添加 cards_played 和 player_passed 信号
- 出牌时在桌面中央显示排序后的卡牌
- 过牌时清除桌面牌
- 添加延迟动画效果(0.8秒显示,0.5秒清除)
- 添加 TableLabel 作为出牌显示区域
- 出牌按 rank 排序显示

🤖 Generated with [Qoder][https://qoder.com]
2026-06-01 23:12:35 +08:00
xiaji
ce84fa75a0 fix: 修复 hand_area 节点路径错误
- HandArea 现在在 ScrollContainer 下,路径改为 $ScrollContainer/HandArea
- 添加按钮空值检查,防止连接信号时出错

🤖 Generated with [Qoder][https://qoder.com]
2026-06-01 23:08:37 +08:00
xiaji
b3fe03f229 feat: 优化开始训练指引并修复AI递归问题
- 修复 GameController._trigger_ai 中AI决策递归调用问题,增加 _is_processing 锁
- 修复 TrainingController 未加入场景树导致信号无法触发的问题
- 主菜单添加"游戏说明"按钮和详细指引对话框
- 训练室添加引导提示标签和操作状态反馈
- 优化提示功能显示中文牌型名称(单张、对子、顺子等)
- 优化错误信息显示,提供更具体的失败原因
- 清除调试 print 语句

🤖 Generated with [Qoder][https://qoder.com]
2026-06-01 22:55:18 +08:00
xiaji
cef2cba7a5 fix: resolve 43 GDScript warnings and fix card display
- Rename shadowed variables (round->_round, seed->_seed, is_processing->_is_processing)
- Prefix unused parameters with underscore throughout
- Add @warning_ignore for false positive integer_division warnings
- Fix unused_signal warnings in event_bus.gd
- Fix CardNode display: move setup() after add_child() so @onready works
- Redesign CardNode with Panel background, suit symbols, red/black colors
- Delete unused _current_hint in TrainingController
2026-05-30 22:38:52 +08:00
xiaji
3ca5dbba99 fix: strip all remaining tab characters from all .gd files 2026-05-29 22:54:01 +08:00
xiaji
b7e734576a fix: suppress unused_signal warning on event_bus signals 2026-05-29 22:46:44 +08:00
xiaji
c6e806a155 fix: add null guards for status_label, hand_area, and label throughout UI 2026-05-29 21:39:06 +08:00
xiaji
65315be868 fix: remove remaining tab characters in training_room.gd 2026-05-29 21:21:37 +08:00
xiaji
951634656e fix: call start_training in _ready, set training_controller after creation 2026-05-29 21:04:53 +08:00
xiaji
b6363f8310 fix: use as cast for HandArea in training_room @onready 2026-05-29 21:02:21 +08:00
xiaji
3573cc66b6 fix: add class_name to HandArea and CardNode, fix type inference in training_room 2026-05-29 20:57:37 +08:00
xiaji
3272e3dc0a feat: add basic UI scenes (card, hand, training room, main menu) 2026-05-29 09:14:42 +08:00