Repository navigation
Conversation
- 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 两处查找统一走它
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.