mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-10 04:40:25 +01:00
19 lines
507 B
GDScript
19 lines
507 B
GDScript
# Copyright (c) 2020 The GodotXterm authors. All rights reserved.
|
|
# License MIT
|
|
extends Reference
|
|
|
|
var ch # character
|
|
var fg = Color(1.0, 1.0, 1.0) # foreground color
|
|
var bg = Color(0.0, 0.0, 0.0) # background color
|
|
var ff = 0 # font flags
|
|
|
|
func _init(
|
|
character: String,
|
|
background_color: Color = bg,
|
|
foreground_color: Color = fg,
|
|
font_flags = ff # Does this work or will it cause problems (this assignement technique)
|
|
):
|
|
ch = character
|
|
bg = background_color
|
|
fg = foreground_color
|
|
ff = font_flags
|