mirror of
https://github.com/Relintai/pandemonium_engine_easy_charts.git
synced 2024-11-14 10:17:24 +01:00
Add files via upload
This commit is contained in:
parent
22827c122a
commit
0ddd7da865
@ -86,7 +86,7 @@ var function_names_index : int = 0 setget set_function_names_index#, get_funct
|
|||||||
|
|
||||||
# for radar
|
# for radar
|
||||||
var use_height_as_radius : bool = false setget set_use_height_as_radius
|
var use_height_as_radius : bool = false setget set_use_height_as_radius
|
||||||
var radius : float = 150.0 setget _set_radius
|
var radius : float = 150.0 setget _set_radius,get_radius
|
||||||
|
|
||||||
# for columns
|
# for columns
|
||||||
var column_width : float = 10 setget set_column_width
|
var column_width : float = 10 setget set_column_width
|
||||||
@ -457,7 +457,7 @@ func set_radius(use_height : bool = false, f : float = 0):
|
|||||||
radius = f
|
radius = f
|
||||||
|
|
||||||
# !!! API v2
|
# !!! API v2
|
||||||
func set_chart_colors(f_colors : Array, o_color : Color, b_color : Color, g_color : Color, h_lines : Color, v_lines : Color):
|
func set_chart_colors(f_colors : PoolColorArray, o_color : Color, b_color : Color, g_color : Color, h_lines : Color, v_lines : Color):
|
||||||
function_colors = f_colors
|
function_colors = f_colors
|
||||||
outline_color = o_color
|
outline_color = o_color
|
||||||
box_color = b_color
|
box_color = b_color
|
||||||
@ -499,6 +499,10 @@ func set_use_height_as_radius(b : bool):
|
|||||||
func _set_radius(r : float):
|
func _set_radius(r : float):
|
||||||
radius = r
|
radius = r
|
||||||
|
|
||||||
|
func get_radius() -> float:
|
||||||
|
if use_height_as_radius: return get_size().y/2
|
||||||
|
else: return radius
|
||||||
|
|
||||||
# ! API
|
# ! API
|
||||||
func set_column_width(f : float):
|
func set_column_width(f : float):
|
||||||
column_width = f
|
column_width = f
|
||||||
|
Loading…
Reference in New Issue
Block a user