add sounds, add logo
This commit is contained in:
@@ -48,6 +48,25 @@ func _build_ui() -> void:
|
||||
|
||||
_build_settings_panel()
|
||||
_build_difficulty_panel()
|
||||
_add_studio_logo()
|
||||
|
||||
func _add_studio_logo() -> void:
|
||||
const PATH := "res://assets/studio_logo.png"
|
||||
var logo := TextureRect.new()
|
||||
if ResourceLoader.exists(PATH):
|
||||
logo.texture = load(PATH) as Texture2D
|
||||
logo.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_CENTERED
|
||||
logo.expand_mode = TextureRect.EXPAND_IGNORE_SIZE
|
||||
logo.anchor_left = 1.0
|
||||
logo.anchor_right = 1.0
|
||||
logo.anchor_top = 1.0
|
||||
logo.anchor_bottom = 1.0
|
||||
logo.offset_left = -200
|
||||
logo.offset_right = -16
|
||||
logo.offset_top = -208
|
||||
logo.offset_bottom = -16
|
||||
logo.modulate.a = 0.85
|
||||
add_child(logo)
|
||||
|
||||
func _big_btn(text: String, width: float, cb: Callable) -> Button:
|
||||
var b := _btn(text, cb)
|
||||
|
||||
Reference in New Issue
Block a user