Skip to content

feat: 添加难度轮盘 UI 和逻辑实现 - #431

Open
Chen-Luan wants to merge 11 commits into
IPOL-Studio:mainfrom
Chen-Luan:feat/添加难度轮盘

Hidden character warning

The head ref may contain hidden characters: "feat/\u6dfb\u52a0\u96be\u5ea6\u8f6e\u76d8"
Open

feat: 添加难度轮盘 UI 和逻辑实现#431
Chen-Luan wants to merge 11 commits into
IPOL-Studio:mainfrom
Chen-Luan:feat/添加难度轮盘

Conversation

@Chen-Luan

Copy link
Copy Markdown
Member

添加了难度(谱面)轮盘,确保对于任意玩家设备的 Canvas 高度,始终能完整显示 4 个 item。超出 4 个 item 的部分可向下滚动查看。并接入了 ChartModule 的谱面选择。

滚动的样式目前采用简单的三角函数,后续 PR 优化样式。

@Chen-Luan Chen-Luan added Type: 优化 Enhancement 新需求或原有功能的优化 Optimization of new requirements or existing functions ▪ UI/UX 涉及到UI或UX的问题 Questions involving UI or UX Priority: 中 Medium labels Sep 3, 2026
Comment on lines +48 to +51
/// <summary>
/// 计算椭圆上指定角度对应的局部坐标。
/// 角度从正上方开始顺时针增加:x = sin(angle) * radius * scaleX,y = cos(angle) * radius。
/// scaleX 为 1 时是正圆,否则是横向拉伸/压缩后的椭圆。

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里为什么是从正上方开始顺时针?不用常见的极坐标约定方式吗

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

让 AI 写的临时方案,下个 PR 我打算不再使用椭圆,也不再使用不等间距高度;改为先用 Unity 原生 ScrollRect 来控制 ChartPackLayout 和 ChartLayout 中的等间距纵向位移,然后手动写一个 x=f(y) 的函数来控制每个 item 的横向位移

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: 中 Medium Type: 优化 Enhancement 新需求或原有功能的优化 Optimization of new requirements or existing functions ▪ UI/UX 涉及到UI或UX的问题 Questions involving UI or UX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants