db0 / godot-card-game-framework

A framework which comes with prepared scenes and classes to kickstart your card game, as well as a powerful scripting engine to use to provide full rules enforcement.
http://dbzer0.com/projects/godot-card-game-framework/
GNU Affero General Public License v3.0
892 stars 95 forks source link

Fix modifying spawned cards #167

Closed BertezBertez closed 2 years ago

BertezBertez commented 2 years ago

Copy and paste from discord regarding issue with the first card spawned labels do not match stats: unknown in the core CardFront.gd the set label text function will just return if the label is currently resizing this function gets called when the card is made and to give it its initial properties and when I modify properties in the next task but the label isn't done resizing by the time I modify the 2nd time so the label does not get updated even though the property changes not sure why this only applies to the first spawned card though also not sure what to do about it exactly cause i assume it works the way for good reason would it make sense to have the card's _process check if a label has a discrepancy with the value and update it if so or would that mess other stuff up