更好的手电筒——更亮、更宽的光束
Wood Studios 制作的手电筒模组:提高光束亮度、照射距离和宽度,同时保留夜间逐渐变暗的效果。支持玩家及联机队友,NPC 手电筒不受影响。需要 MelonLoader 0.7,适用于常规 IL2CPP 分支。
供模组作者使用的框架,可根据游戏内告示牌上的文字触发自定义命令;本模组本身不包含可直接使用的命令。需要另装使用该框架的模组,例如 SCreen Sign Colors。
SCreenSignCommands 是供模组作者使用的框架,可根据游戏内告示牌上的文字触发自定义命令。本模组本身不包含命令;要在游戏中产生效果,还需安装使用该框架的模组,例如 SCreen Sign Colors。
可使用本模组提供的 register_command 方法注册命令,并指定命令名称、描述以及触发时执行的逻辑。
using System.Collections;
using Il2CppScheduleOne.EntityFramework;
using SCreenSignCommandsIL2CPP;
public class MyMod : MelonMod
{
public override void OnInitializeMelon()
{
Melon<SCreenSignCommandsIL2CPP.Core>.Instance.register_command(
"/exampleCommand",
"This is an example command.",
ExampleCommandLogic
);
}
private IEnumerator ExampleCommandLogic(LabelledSurfaceItem instance)
{
yield return null;
instance.Label.text = $"Command executed on sign with message: {instance.Message}";
}
}
register_command 参数:
name:唯一的命令名称,例如 /exampleCommand。description:命令功能的简短说明。command_method:命令执行逻辑;必须接收 LabelledSurfaceItem 实例并返回 IEnumerator。也可以创建 SignCommand 对象并直接注册:
var customCommand = new SignCommand(
"customCommand",
"A custom command example.",
CustomCommandLogic
);
Melon<SCreenSignCommandsIL2CPP.Core>.Instance.register_command(customCommand);
SignCommand.getArgs 方法解析告示牌文本中的参数。IL2CPP (main branch) Version. SCreenSignCommands allows mod makers to register custom commands that can be triggered based on the text written on in-game signs. This mod is a framework that other mods can use and so does not contain any commands itself.
前往 N 网打开所选文件。安装与下载要求以原作者及平台说明为准。
<!-- aoe-mods-source:nexusmods:schedule1:728 -->