Resource Override
基本信息
| 属性 | 值 |
|---|---|
| 资源域 | thaumcraft(非 modid ThaumcraftResearchTweaks) |
| 资源根 | src/main/resources/assets/thaumcraft/ |
| 覆盖语言键 | 9 个(全部是 TC 本体的 tc. 键) |
| 覆盖贴图 | 3 张 PNG |
TRT 不拥有自己的命名空间——它直接在 assets/thaumcraft/ 下投放文件以覆盖神秘时代本体的资源。
覆盖的语言键
src/main/resources/assets/thaumcraft/lang/en_us.lang(文件名为全小写 en_us,非通用的 en_US)。
研究页正文替换(8 个键)
| 键 | 作用 |
|---|---|
tc.research_page.RESEARCH.6 |
替换为新界面的元素面板教学 |
tc.research_page.RESEARCH.7 |
拖放与组合教学 |
tc.research_page.RESEARCH.8 |
首要研究(Primary Research)教学 |
tc.research_page.RESEARCH.9 |
研究笔记获取与放置教学 |
tc.research_page.RESEARCH.10 |
激活元素与消耗研究点数教学 |
tc.research_page.RESEARCHER1.1 |
研究大师 I:返还 25% 研究点、悬停提示、Ctrl 批量组合至多 10 个 |
tc.research_page.RESEARCHER2.1 |
研究大师 II:返还 50%、10% 免费放置、Shift-左击推导、Ctrl 批量 |
tc.research_page.RESEARCHDUPE.1 |
研究复制按钮说明 |
这些是 Thaumcraft 自带的研究页文本,TRT 覆写它们以匹配新界面。RESEARCH.6–RESEARCH.10 内嵌 <IMG> 标签引用本模组自己的贴图:
<IMG>thaumcraft:textures/research/table/research-table-tutorial-schematic.png:0:0:256:227:.45</IMG>
<IMG>thaumcraft:textures/research/table/research-table-tutorial-filled.png:0:0:256:200:.50</IMG>
<IMG>thaumcraft:textures/misc/research3.png:0:0:150:80:.65</IMG>
新增键(1 个命名空间)
| 键 | 值 |
|---|---|
researchtable.usagehint.header |
How to use |
researchtable.usagehint.description |
Drag & drop or drag & right-click aspects to draw and combine |
researchtable.usagehint.research_expertise |
Hold ctrl while combining to make up to 10 aspects. Works with research mastery. |
⚠️
research_expertise键带「需研究大师」限定:批量组合 10 个需要已获得研究大师(Research Mastery)。lang 原文 “Works with research mastery.” 明确了这一点——见 Aspect Combination。
3 张贴图
| 文件 | 用途 |
|---|---|
textures/research/table/research-table.png |
新研究台 GUI 背景本体 |
textures/research/table/research-table-tutorial-schematic.png |
教学插图(空面板示意) |
textures/research/table/research-table-tutorial-filled.png |
教学插图(已填充示意) |
research-table.png 是 ResearchTableInventoryTexture 的底图;其坐标系常量(inventoryOrigin、AspectPools.leftBound 等)直接决定 GUI 尺寸与槽位位置。见 Research Table GUI。
语言文件命名
⚠️ 本仓库用 en_us.lang(全小写)。Minecraft 1.7.10 的资源加载对语言代码大小写不敏感,但与本 wiki 其它条目常见的 en_US.lang 写法不同——按 en_US.lang 查找会找不到文件。
纹理坐标可读自源码
ResearchTableInventoryTexture.kt 中的关键坐标(均为源码常量,非猜测):
| 常量 | 值 | 行号 |
|---|---|---|
scribeToolsOrigin |
Vector2D(x = 91, y = 10) |
:16 |
notesOrigin |
Vector2D(x = 235, y = 10) |
:17 |
onMouseOverOrigin |
Vector2D(x = 114, y = 10) |
:53 |
复制按钮贴图 CopyButtonActiveTexture / CopyButtonNotActiveTexture 的 textureScale 均为 Scale(310, 245)(各 :11)——即研究台底图为 310×245。
相关条目
- Research Table GUI - 贴图的消费方
- Aspect Combination -
research_expertise描述的行为 - Thaumcraft - 被覆盖的原始资源