Add bold input dice
This commit is contained in:
parent
5216632ee2
commit
8bd768ebdc
BIN
Assets/DiceInputBold.kra
Normal file
BIN
Assets/DiceInputBold.kra
Normal file
Binary file not shown.
BIN
Assets/DiceInputBold.png
Normal file
BIN
Assets/DiceInputBold.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 72 KiB |
35
Assets/DiceInputBold.png.import
Normal file
35
Assets/DiceInputBold.png.import
Normal file
@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/DiceInputBold.png-dc499cd822102d68e5e44449ce5835a3.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Assets/DiceInputBold.png"
|
||||
dest_files=[ "res://.import/DiceInputBold.png-dc499cd822102d68e5e44449ce5835a3.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
@ -1,6 +1,8 @@
|
||||
tool
|
||||
extends Control
|
||||
|
||||
export var bold : bool setget set_bold
|
||||
|
||||
|
||||
func _process(_delta):
|
||||
|
||||
@ -12,3 +14,12 @@ func _process(_delta):
|
||||
|
||||
func set_extra_info(text : String):
|
||||
$"%ExtraInfo".text = text
|
||||
|
||||
|
||||
func set_bold(is_bold : bool = true):
|
||||
if is_bold:
|
||||
$Sprite.texture = load("res://Assets/DiceInputBold.png")
|
||||
else:
|
||||
$Sprite.texture = load("res://Assets/DiceInput.png")
|
||||
|
||||
bold = is_bold
|
||||
|
Loading…
Reference in New Issue
Block a user