Skip to content

Commit 60e44eb

Browse files
committed
添加注释
1 parent a8e6ea7 commit 60e44eb

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

Scripts/main.lua

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
print("RTF2 Debug Tools loaded")
22

3-
--切换无敌
3+
-- 切换无敌
44
-- Toggle invincibility mode
55
-- 無敵モードを切り替える
66
local function SwitchInvincibility()
@@ -15,7 +15,7 @@ local function SwitchInvincibility()
1515
end
1616
end
1717

18-
--增加1050卷轴速度
18+
-- 增加1050卷轴速度
1919
-- Increase scroll speed by 1050
2020
-- スクロール速度を1050増加させる
2121
local function IncreaseScrollSpeed()
@@ -30,7 +30,7 @@ local function IncreaseScrollSpeed()
3030
end
3131
end
3232

33-
--减少1050卷轴速度
33+
-- 减少1050卷轴速度
3434
-- Decrease scroll speed by 1050
3535
-- スクロール速度を1050減少させる
3636
local function DecreaseScrollSpeed()
@@ -45,7 +45,7 @@ local function DecreaseScrollSpeed()
4545
end
4646
end
4747

48-
--切换开启/停止卷轴
48+
-- 切换开启/停止卷轴
4949
-- Toggle scroll enable state
5050
-- スクロールの有効状態を切り替える
5151
local function SwitchScrollEnable()
@@ -60,7 +60,7 @@ local function SwitchScrollEnable()
6060
end
6161
end
6262

63-
--将卷轴速度设置为1050(大多数关卡的默认速度)
63+
-- 将卷轴速度设置为1050(大多数关卡的默认速度)
6464
-- Set scroll speed to 1050 (default for most levels)
6565
-- スクロール速度を1050に設定する(ほとんどのレベルのデフォルト速度)
6666
local function Set1050ScrollSpeed()
@@ -75,7 +75,7 @@ local function Set1050ScrollSpeed()
7575
end
7676
end
7777

78-
--高FOV模式
78+
-- 高FOV模式
7979
-- Enable high FOV mode (field of view)
8080
-- 高FOVモードを有効にする(視野角)
8181
local function HighFOVMode()
@@ -89,7 +89,7 @@ local function HighFOVMode()
8989
end
9090
end
9191

92-
--重置FOV
92+
-- 重置FOV
9393
-- Reset FOV to default
9494
-- FOVをデフォルトにリセットする
9595
local function ResetFOV()
@@ -103,6 +103,9 @@ local function ResetFOV()
103103
end
104104
end
105105

106+
-- 在这里修改按键绑定
107+
-- Change key bindings here
108+
-- ここでキーバインドを変更する
106109
RegisterKeyBind(Key.F1, SwitchInvincibility)
107110
RegisterKeyBind(Key.F2, DecreaseScrollSpeed)
108111
RegisterKeyBind(Key.F3, IncreaseScrollSpeed)

0 commit comments

Comments
 (0)