星露谷物语v0.2.02026年10月11日 更新

自定义壁纸框架

供模组作者通过 Content Patcher 制作宽幅和高分辨率壁纸的框架。壁纸需先通过游戏内置的自定义壁纸系统加入目录,再创建 Content Patcher 补丁编辑框架字典。需要 SMAPI,使用 Harmony;兼容 Mod Updater。

此框架允许模组作者通过 Content Patcher 制作宽幅和高分辨率壁纸。

壁纸应先通过游戏内置的自定义壁纸系统加入目录。

要使用此模组,请创建一个 Content Patcher 补丁,目标为本模组的字典。例如:

{
  "Action": "EditData",
  "Target": "aedenthorn.CustomWallpaperFramework/dictionary",
  "Entries": {
    "aedenthorn.CustomWallpaperWide": {
      "id": "aedenthorn.CustomWallpaperWide",
      "texturePath": "aedenthorn.CustomWallpaperWide/Wallpaper",
      "width": 12
    },
    "aedenthorn.CustomWallpaperWide2": {
      "id": "aedenthorn.CustomWallpaperWide2",
      "texturePath": "aedenthorn.CustomWallpaperWide/Wallpaper2",
      "width": 2
    },
    "aedenthorn.CustomWallpaperWide3": {
      "id": "aedenthorn.CustomWallpaperWide3",
      "texturePath": "aedenthorn.CustomWallpaperWide/Wallpaper3",
      "width": 8
    },
    "aedenthorn.CustomWallpaperWide4": {
      "id": "aedenthorn.CustomWallpaperWide4",
      "texturePath": "aedenthorn.CustomWallpaperWide/Wallpaper4",
      "width": 5,
      "scale": 2
    },
    "aedenthorn.CustomWallpaperWide5": {
      "id": "aedenthorn.CustomWallpaperWide5",
      "texturePath": "aedenthorn.CustomWallpaperWide/Wallpaper5",
      "width": 6,
      "scale": 1
    }
  }
}
  • id:必须对应使用游戏自定义壁纸系统添加的壁纸 ID。
  • width:壁纸的宽度,单位为格。壁纸高度始终为 3 格。
  • scale:显示壁纸时使用的缩放倍数。默认值为 4;若要使用更高分辨率的壁纸,可设为 2 或 1。纹理文件尺寸必须与缩放值相匹配。例如,缩放值为 4 时,纹理高度应为 48 像素(3 × 64 ÷ 4)。
  • texturePath:游戏 Content 文件夹中的路径,通常是由 Content Patcher 将实际 PNG 文件载入游戏的虚拟路径。

示例内容包:查看示例。

技术信息

需要 SMAPI,并使用 Harmony。

兼容 Mod Updater,可自动更新。

源码:GitHub。

如需反馈、寻求帮助或协助测试模组,可访问作者的 Discord 服务器。

作者的 Stardew Valley 模组列表:查看列表。

来源与文件

文件说明

Changes:

Deprecation fix

前往 N 网打开所选文件。安装与下载要求以原作者及平台说明为准。

<!-- aoe-mods-source:nexusmods:stardewvalley:12510 -->

下载模块

共 1 个来源
立即下载推荐来源
前往下载