继续更新UI
This commit is contained in:
@@ -82,7 +82,7 @@ func _load_from_preset_list():
|
||||
for file_path in music_files_list:
|
||||
if ResourceLoader.exists(file_path):
|
||||
music_files.append(file_path)
|
||||
print("预设加载音乐: ", file_path.get_file())
|
||||
#print("预设加载音乐: ", file_path.get_file())
|
||||
else:
|
||||
print("音乐文件不存在: ", file_path)
|
||||
|
||||
@@ -181,7 +181,7 @@ func set_volume(volume: float):
|
||||
current_volume = clamp(volume, 0.0, 1.0)
|
||||
if not is_muted:
|
||||
audio_player.volume_db = linear_to_db(current_volume)
|
||||
print("背景音乐音量设置为: ", current_volume)
|
||||
#print("背景音乐音量设置为: ", current_volume)
|
||||
|
||||
func get_volume() -> float:
|
||||
"""获取当前音量"""
|
||||
|
||||
@@ -47,7 +47,7 @@ func _on_request_completed(result, response_code, headers, body):
|
||||
for header in headers:
|
||||
if header.to_lower().begins_with("content-type:"):
|
||||
content_type = header.substr(13).strip_edges().to_lower()
|
||||
print("HTTPTextureRect: 内容类型: ", content_type)
|
||||
#print("HTTPTextureRect: 内容类型: ", content_type)
|
||||
break
|
||||
|
||||
# 创建图像
|
||||
@@ -82,7 +82,7 @@ func _on_request_completed(result, response_code, headers, body):
|
||||
# 创建纹理并应用
|
||||
var texture = ImageTexture.create_from_image(image)
|
||||
self.texture = texture
|
||||
print("HTTPTextureRect: 图像加载成功,尺寸: ", image.get_width(), "x", image.get_height())
|
||||
#print("HTTPTextureRect: 图像加载成功,尺寸: ", image.get_width(), "x", image.get_height())
|
||||
loading_finished.emit(true)
|
||||
|
||||
# 加载QQ头像的便捷方法
|
||||
|
||||
Reference in New Issue
Block a user