Release v0.2: refine menus and JuggleBoard
This commit is contained in:
@@ -4,6 +4,7 @@ extends RefCounted
|
||||
|
||||
const DISPLAY_FONT := preload("res://shared/assets/fonts/NotoSerifDisplay-CondensedExtraBold.ttf")
|
||||
const MENU_SHADER := preload("res://menus/assets/shaders/ambient_drift.gdshader")
|
||||
const TENT_STAR_SHADER := preload("res://menus/assets/shaders/tent_star_glow.gdshader")
|
||||
|
||||
|
||||
static func set_normalized_rect(control: Control, center: Vector2, normalized_size: Vector2) -> void:
|
||||
@@ -33,6 +34,12 @@ static func ambient_material(strength: float, speed: float) -> ShaderMaterial:
|
||||
return material
|
||||
|
||||
|
||||
static func tent_star_material() -> ShaderMaterial:
|
||||
var material := ShaderMaterial.new()
|
||||
material.shader = TENT_STAR_SHADER
|
||||
return material
|
||||
|
||||
|
||||
static func add_image(parent: Control, texture: Texture2D, center: Vector2, normalized_size: Vector2, material: Material = null) -> TextureRect:
|
||||
var image := TextureRect.new()
|
||||
image.texture = texture
|
||||
|
||||
Reference in New Issue
Block a user