zh:mtr_addon:nte:start
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| zh:mtr_addon:nte:start [2025/11/12 11:24] – [NTE: Nemo's Transit Expansion] hacker | zh:mtr_addon:nte:start [2025/11/12 14:36] (current) – 已恢复为旧版 (2023/06/06 06:36) BDark000 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | public class CommandAddTrain extends CommandBase { | + | < |
| + | # NTE: Nemo's Transit Expansion | ||
| - | @Override | + | 本模组 NTE(Nemo' |
| - | public String getName() { | + | |
| - | return " | + | |
| - | } | + | |
| - | @Override | + | |
| - | public String getUsage(ICommandSender sender) { | + | |
| - | return "/addtrain < | + | |
| - | } | + | |
| - | @Override | + | < |
| - | | + | /* This element defines the size the iframe will take. |
| - | if (args.length < 1) { | + | In this example we want to have a ratio of 25:14 */ |
| - | throw new CommandException(" | + | .aspect-ratio |
| - | } | + | |
| + | width: 100%; | ||
| + | height: 0; | ||
| + | padding-bottom: 56.25%; /* The height of the item will now be 56.25% of the width. */ | ||
| + | } | ||
| - | String trainName = args[0]; | + | /* Adjust the iframe so it's rendered in the outer-width and outer-height of it's parent */ |
| - | + | .aspect-ratio iframe | |
| - | | + | |
| - | | + | |
| - | + | | |
| - | if (success) | + | left: 0; |
| - | | + | top: 0; |
| - | } else { | + | |
| - | | + | |
| - | } | + | |
| - | } | + | |
| } | } | ||
| - | n> | + | </ |
| + | |||
| + | <div class=" | ||
| + | <iframe src="// | ||
| + | </ | ||
| + | |||
| + |  。(**必读 !**) | ||
| + | |||
| + | |||
| + | |||
| + | ## 下载 | ||
| + | |||
| + | 请参见 [下载](download)。 | ||
| + | |||
| + | 在服务器上使用 NTE 自带的或以资源包导入的含 OBJ 模型的列车时,其他没有安装 NTE 和对应资源包的玩家将不能看到这列车。 | ||
| + | |||
| + | |||
| + | |||
| + | ## 资源包作者支持 | ||
| + | |||
| + | - OBJ 模型导入支持 | ||
| + | |||
| + | 通过新技术,NTE 为在 MTR 中使用 OBJ 格式的模型提供了支持。受益于新制的渲染系统,渲染性能更高,使用面数很高的精细模型时也不会造成很多卡顿。详见 [OBJ 模型相关适配](objschem) 。 | ||
| + | |||
| + | </ | ||
zh/mtr_addon/nte/start.txt · Last modified: 2025/11/12 14:36 by BDark000