mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
curve_base now has different initialization methods for the curve. sd_shape_line now initializes it's curve to the 1,1 variant.
This commit is contained in:
parent
920d4895e1
commit
c7a2fea2c4
@ -10,7 +10,15 @@ class Point:
|
||||
ls = nls
|
||||
rs = nrs
|
||||
|
||||
export(PoolRealArray) var points = [ 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0 ]
|
||||
export(PoolRealArray) var points
|
||||
|
||||
func init_points_01():
|
||||
if points.size() == 0:
|
||||
points = [ 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0 ]
|
||||
|
||||
func init_points_11():
|
||||
if points.size() == 0:
|
||||
points = [ 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0 ]
|
||||
|
||||
func to_string() -> String:
|
||||
var rv = PoolStringArray()
|
||||
|
@ -10,6 +10,9 @@ export(Vector2) var A : Vector2 = Vector2(-0.3, -0.3)
|
||||
export(Vector2) var B : Vector2 = Vector2(0.3, 0.3)
|
||||
export(float) var width : float = 0.1
|
||||
|
||||
func _init():
|
||||
init_points_11()
|
||||
|
||||
func _init_properties():
|
||||
if !output:
|
||||
output = MMNodeUniversalProperty.new()
|
||||
|
Loading…
Reference in New Issue
Block a user