Skip to content

Ponder UI - #5

Merged
mmyddd merged 4 commits into
devfrom
ponderUI
Oct 1, 2026
Merged

mmyddd merged 4 commits into
devfrom
ponderUI

Conversation

@mmyddd

@mmyddd mmyddd commented Oct 1, 2026

Copy link
Copy Markdown
Member

No description provided.

mmyddd added 4 commits October 1, 2026 17:02
- ui/:MachineUI 门面(showFullUI / scale / fitToPanel / showCircuit / 红框 outline*)、MachineUiPlacement、
  MachineUiElement(场景元素)、MachineUiOverlay(绘制与红框)、MachineUiPanel 与 MachineUiPanelBuilder(面板搭建)、
  MachineUiWrites(槽位与储罐写入)、RecipeFiller(按配方 id 自动填充并接进度条)、ConfiguratorTabs、
  MachineUiInteraction(点击转发与开关还原)
- machine/:MachineEdit 指令体系与 MachineEdits(覆盖板、工作/待机模型、自动输出口,指令结束自动还原)
- PonderUiButtons 与 mixin/PonderUIMixin:思索界面底部「查看 UI 详情」按钮——点开冻结场景、把左下配置器
  整列转发给 GT 原版,关闭时还原观众拨过的开关并收起展开中的配置器;锚点每帧重贴并限定在左半边
- attach 之后先把按钮藏起来,并隐藏同屏遗留的孤儿按钮:PonderButton 默认可见,而 afterRender 只校正
  button 字段指向的那一个,重挂/换屏留下的旧对象会一直停在构造位置(屏幕正中)压住「思索结束」
- 按 fork 的接口适配:电路槽改取 ProgrammableCircuitSlotTrait(新增 CircuitSlots 反射助手)、
  自动输出改走 AutoOutputTrait(带 hasAutoOutputItem/Fluid 守卫)、RecipeHelper 调用补上 simulate 参数
- MachineUiPlacement 补 forMachine(BlockPos);lang 补 ctnhlib.tooltip.slot_index / tank_index 与
  ctnhlib.ponder.ui.ui_details;ctnhlib.mixins.json 登记 PonderUIMixin
- CTNH 用的 fork 里 GT 把配方拆成两层:注册进 RecipeManager 的是 GTRecipeDefinition
  (同样实现原版 Recipe,带 id/inputs/outputs/duration/tier),运行时用 toRuntime() 转成 GTRecipe;
  官方 GTCEu 放的直接就是 GTRecipe
- 我们原来的 if (!(recipe instanceof GTRecipe)) 在这个形态下永不成立,于是任何配方都报
  「there is no GT recipe with this id」
- 新增 runtime(Recipe) 助手:两种形态都认,needsCircuit 与 find 两处查找统一走它
@mmyddd
mmyddd merged commit 5d2ccb1 into dev Oct 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant