Initial Android commit
This commit is contained in:
commit
1e2b80c13d
8521 changed files with 231475 additions and 0 deletions
21
resources/texteffects/outlineText.gd
Normal file
21
resources/texteffects/outlineText.gd
Normal file
|
@ -0,0 +1,21 @@
|
|||
tool
|
||||
extends RichTextEffect
|
||||
class_name RichTextPulse
|
||||
|
||||
|
||||
|
||||
|
||||
var bbcode = "outline"
|
||||
|
||||
func _process_custom_fx(char_fx):
|
||||
|
||||
var color = char_fx.env.get("color", char_fx.color)
|
||||
var height = char_fx.env.get("height", 0.0)
|
||||
var freq = char_fx.env.get("freq", 2.0)
|
||||
|
||||
var sined_time = (sin(char_fx.elapsed_time * freq) + 1.0) / 2.0
|
||||
var y_off = sined_time * height
|
||||
color.a = 1.0
|
||||
char_fx.color = char_fx.color.linear_interpolate(color, sined_time)
|
||||
char_fx.offset = Vector2(0, - 1) * y_off
|
||||
return true
|
6
resources/texteffects/outline_exteffect.tres
Normal file
6
resources/texteffects/outline_exteffect.tres
Normal file
|
@ -0,0 +1,6 @@
|
|||
[gd_resource type="RichTextEffect" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://resources/texteffects/outlineText.gd" type="Script" id=1]
|
||||
|
||||
[resource]
|
||||
script = ExtResource( 1 )
|
Loading…
Add table
Add a link
Reference in a new issue