Skip to content

Commit

Permalink
Add FreezeTime and LockWeather to scene page
Browse files Browse the repository at this point in the history
  • Loading branch information
jie65535 committed Aug 25, 2023
1 parent bb7d281 commit b407012
Show file tree
Hide file tree
Showing 6 changed files with 188 additions and 62 deletions.
20 changes: 20 additions & 0 deletions Source/GrasscutterTools/Pages/PageScene.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions Source/GrasscutterTools/Pages/PageScene.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,5 +156,21 @@ private void BtnTeleport_Click(object sender, EventArgs e)
args += $" {GameData.Scenes.Ids[ListScenes.SelectedIndex]}";
SetCommand("/tp", args);
}

/// <summary>
/// 锁定天气
/// </summary>
private void ChkLockClimate_CheckedChanged(object sender, EventArgs e)
{
SetCommand("/prop", $"is_weather_locked {(ChkLockClimate.Checked ? "on" : "off")}");
}

/// <summary>
/// 冻结游戏时间
/// </summary>
private void BtnFreezeTime_Click(object sender, EventArgs e)
{
SetCommand("/prop", "is_game_time_locked on");
}
}
}
9 changes: 9 additions & 0 deletions Source/GrasscutterTools/Pages/PageScene.en-US.resx
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,13 @@ In the command, you can use ~ to indicate the current position, and ~N to indica
<data name="RbListCutScene.Text" xml:space="preserve">
<value>Cutscene</value>
</data>
<data name="ChkLockClimate.Size" type="System.Drawing.Size, System.Drawing">
<value>54, 21</value>
</data>
<data name="ChkLockClimate.Text" xml:space="preserve">
<value>Lock</value>
</data>
<data name="BtnFreezeTime.Text" xml:space="preserve">
<value>Freeze Time</value>
</data>
</root>

0 comments on commit b407012

Please sign in to comment.