Skip to content

Commit 53a2b19

Browse files
committed
归档
1 parent 5056187 commit 53a2b19

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/zh-hant/junior/create_data_json.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ def opacity_modified(props, prop, settings):
2323
# 取得場景中的文字來源 Welcome
2424
source = obs.obs_get_source_by_name('Welcome')
2525

26-
# 產生一個 JSON 字串
26+
# 建置一個 JSON 字串
2727
json_string = json.dumps({ "opacity": opacity })
28-
# 將產生的 JSON 字串轉換為資料物件
28+
# 將建置的 JSON 字串轉換為資料物件
2929
data = obs.obs_data_create_from_json(json_string)
3030

3131
# 將資料物件應用至文字來源

src/zh-hant/junior/get_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ def json_clicked(props, prop):
3636

3737

3838
def last_json_clicked(props, prop):
39-
# 取得上一次腳本設定產生的 JSON 字串
39+
# 取得上一次腳本設定建置的 JSON 字串
4040
json_string = obs.obs_data_get_last_json(data)
4141
obs.script_log(obs.LOG_INFO, f'最後的 JSON:{json_string}')

src/zh-hant/junior/get_properties.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ def script_properties():
1515
global props
1616
props = obs.obs_properties_create()
1717

18-
# 計算當前是星期幾
18+
# 計算當前是當周日次
1919
day = datetime.datetime.now().weekday() + 1
2020

21-
# 添加一個核取方塊,用來提醒自己是否需要串流,當然該功能並沒有真的實現
21+
# 添加一個核取方塊,用來提醒自己是否需要串流,當然該功能並沒有真的實作
2222
obs.obs_properties_add_bool(props, 'live', f'周 {day} 串流?')
2323

2424
return props

src/zh-hant/junior/load_and_save_json.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def script_properties():
1717

1818
# 玩家經驗值
1919
exp = 0
20-
# 玩家等級
20+
# 玩家層級
2121
level = 0
2222

2323
def save_clicked(props, prop):
@@ -37,10 +37,10 @@ def load_clicked(props, prop):
3737
# 從檔案 player.json 載入玩家資訊
3838
data = obs.obs_data_create_from_json_file_safe('player.json', '.backup')
3939

40-
# 讀取玩家的經驗值和等級
40+
# 讀取玩家的經驗值和層級
4141
exp = obs.obs_data_get_int(data, 'exp')
4242
level = obs.obs_data_get_int(data, 'level')
4343
# 釋放資料物件
4444
obs.obs_data_release(data)
4545

46-
obs.script_log(obs.LOG_INFO, f'經驗值:{exp}等級{level}')
46+
obs.script_log(obs.LOG_INFO, f'經驗值:{exp}層級{level}')

0 commit comments

Comments
 (0)