mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-12-16 10:32:58 +08:00
Add Tp to SceneTab
Update version to 1.1.0
This commit is contained in:
@@ -774,11 +774,14 @@ namespace GrasscutterTools
|
||||
|
||||
private void ListScenes_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (ListScenes.SelectedIndex >= 0)
|
||||
if (ListScenes.SelectedIndex < 0)
|
||||
{
|
||||
var id = GameData.Scenes.Ids[ListScenes.SelectedIndex];
|
||||
SetCommand("/changescene", id.ToString());
|
||||
ChkIncludeSceneId.Enabled = false;
|
||||
return;
|
||||
}
|
||||
ChkIncludeSceneId.Enabled = true;
|
||||
var id = GameData.Scenes.Ids[ListScenes.SelectedIndex];
|
||||
SetCommand("/changescene", id.ToString());
|
||||
}
|
||||
|
||||
private void CmbClimateType_SelectedIndexChanged(object sender, EventArgs e)
|
||||
@@ -788,6 +791,14 @@ namespace GrasscutterTools
|
||||
SetCommand("/weather", $"0 {CmbClimateType.SelectedIndex}");
|
||||
}
|
||||
|
||||
private void BtnTeleport_Click(object sender, EventArgs e)
|
||||
{
|
||||
string args = $"{NUDTpX.Value} {NUDTpY.Value} {NUDTpZ.Value}";
|
||||
if (ChkIncludeSceneId.Checked && ListScenes.SelectedIndex != -1)
|
||||
args += $" {GameData.Scenes.Ids[ListScenes.SelectedIndex]}";
|
||||
SetCommand("/tp", args);
|
||||
}
|
||||
|
||||
#endregion - 场景 -
|
||||
|
||||
#region - 状态 -
|
||||
@@ -1110,5 +1121,6 @@ namespace GrasscutterTools
|
||||
}
|
||||
|
||||
#endregion - 远程 -
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user