Polish phone typography and add black-screen redial epilogue
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
extends Control
|
||||
const UI_FONT = preload("res://assets/fonts/Arimo-Bold.tres")
|
||||
## Vector phone shells. Screens are ordinary controls, so notifications stay clickable.
|
||||
var smartphone := true
|
||||
var dialing := false
|
||||
@@ -26,7 +27,7 @@ func rounded(rect: Rect2, color: Color, border: Color, radius: int, width: int =
|
||||
draw_style_box(box, rect)
|
||||
|
||||
func text_at(at: Vector2, text: String, font_size: int, color: Color) -> void:
|
||||
var font := ThemeDB.fallback_font
|
||||
var font: Font = UI_FONT
|
||||
var width := font.get_string_size(text, HORIZONTAL_ALIGNMENT_LEFT, -1, font_size).x
|
||||
draw_string(font, at - Vector2(width / 2, 0), text, HORIZONTAL_ALIGNMENT_LEFT, -1, font_size, color)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user