Merge pull request #50 from fenix-hub/main

Merge updates of the main branch
This commit is contained in:
Jorge 2021-05-03 17:19:36 +02:00 committed by GitHub
commit cd5b296eda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 7 deletions

View File

@ -4,12 +4,17 @@
</a> </a>
</p> </p>
# Notice, plugin under refactoring
**This plugin is under refactoring an maintenance. The next official release will contain multiple updates and upgrades.**\
**If you encounter any bug, please contact me on Discord.**
<img src="addons/easy_charts/icon.png" align="left" width="64" height="64"> <img src="addons/easy_charts/icon.png" align="left" width="64" height="64">
# Easy Charts # Easy Charts
A library of Charts plotted in Control, 2D and 3D nodes to visualize general purpose datasets. A library of Charts plotted in Control, 2D and 3D nodes to visualize general purpose datasets.
Author: *"Nicolo (fenix) Santilio"* Author: *"Nicolo (fenix) Santilio"*
Version: *0.5.7* Version: *0.6.0*
Wiki: *[wip](https://github.com/fenix-hub/godot-engine.easy-charts/wiki)* Wiki: *[wip](https://github.com/fenix-hub/godot-engine.easy-charts/wiki)*
Godot Version: *3.2stable* Godot Version: *3.2stable*

View File

@ -19,7 +19,7 @@ onready var Space = $ImmediateGeometry
onready var PointData = $PointData/PointData onready var PointData = $PointData/PointData
var point_node : PackedScene = preload("../Utilities/Point/Point.tscn") var point_node : PackedScene = preload("../Utilities/Point/Point.tscn")
var FunctionLegend : PackedScene = preload("../Utilities/Legend/FunctionLegend.tscn") var FunctionLegend : PackedScene = preload("../Utilities/Legend/function_legend.tscn")
var font_size : float = 16 var font_size : float = 16
var const_height : float = font_size/2*font_size/20 var const_height : float = font_size/2*font_size/20

View File

@ -477,11 +477,10 @@ func count_functions():
else: functions = y_datas.size() else: functions = y_datas.size()
func clear_points(): func clear_points():
if $Points.get_children():
for function in Points.get_children(): for function in Points.get_children():
function.queue_free() function.free()
for legend in $Legend.get_children(): for legend in Legend.get_children():
legend.queue_free() legend.free()
func redraw(): func redraw():
build_chart() build_chart()