打开主菜单
首页
随机
登录
设置
关于Stardew Valley Wiki
免责声明
Stardew Valley Wiki
搜索
更改
←上一编辑
下一编辑→
模组:常用方法
(查看源代码)
2021年6月11日 (五) 01:06的版本
添加832字节
、
2021年6月11日 (五) 01:06
无编辑摘要
第241行:
第241行:
Game1.activeClickableMenu = new DialogueBox(message);
Game1.activeClickableMenu = new DialogueBox(message);
</syntaxhighlight>
</syntaxhighlight>
+
+
==邮件 (Mail)==
+
// 未翻译
+
===概述===
+
// 未翻译
+
===注入静态内容 (Inject static content)===
+
// 未翻译
+
===客户端调用静态内容 (Send a letter with static content)===
+
// 未翻译
+
===注入动态内容 (Inject dynamic content)===
+
// 未翻译
+
===客户端调用动态内容 (Send a letter with dynamic content)===
+
// 未翻译
+
+
==其他 (Other)==
+
===简单动画(animation) 的添加===
+
<syntaxhighlight lang='c#'>
+
location.temporarySprites.Add(new TemporaryAnimatedSprite(...));
+
</syntaxhighlight>
+
详见<tt>TemporaryAnimatedSprite</tt>类。
+
+
===播放一段声音===
+
<syntaxhighlight lang='c#'>
+
location.playSound("SOUND"); // "SOUND"为声音的名字
+
</syntaxhighlight>
+
详见[https://docs.google.com/spreadsheets/d/1CpDrw23peQiq-C7F2FjYOMePaYe0Rc9BwQsj3h6sjyo/edit#gid=239695361 声音名字一览]。
[[en:Modding:Common tasks]]
[[en:Modding:Common tasks]]
[[ru:Модификации:Основные возможности]]
[[ru:Модификации:Основные возможности]]
臭美香喷喷
50
个编辑