Skip to content

Commit 140598f

Browse files
committed
1.15
1 parent e2e3a57 commit 140598f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
### New Features
1010

11-
* Now each card type has exported variables for the canonical card size as well as the various scaling. **This finally allows the game to utilize different card sizes at the same time**. CardContainers and BoardGrid for different card sizes now also need to have a defined card_size of the card they're going to host.
11+
* Now each card type has exported variables for the canonical card size as well as the various scaling. **This finally allows the game to utilize different card sizes at the same time**. CardContainers and BoardGrids for different card sizes now also need to have a defined card_size matching the card they're going to host.
1212
* Added exported vars for controlling card tween duration (@stevosaurus)
1313
* Mouse will not teleport to a card's top-right when dragging starts. (@stevosaurus)
1414
* Adjustments to prevent Rich Text Labels from sizing at 4 font size
1515
* Recursive rescaling will also now take into account MarginContainer margins
16-
* Added font_size_caching which should now reduce time lost while calculating font sizes.
16+
* Added font_size_caching which should now reduce time lost while calculating font sizes.Requires CFConst.FONT_SIZE_CACHE
1717

1818
#### ScriptingEngine
1919

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# Godot Card Game Framework [1.14](CHANGELOG.md)
2+
# Godot Card Game Framework [1.15](CHANGELOG.md)
33

44
![Godot Card Game Framework preview image](preview.png "Godot Card Game Framework preview image")
55

@@ -34,6 +34,7 @@ Pull requests are more than welcome ;)
3434
* Can select layout of your CardContainers from a simple drop-down menu.
3535
* Automatic and manual Grid-based, or Free-form placement on the board, or a combination of both, on a per-card-type basis.
3636
* Functions from saving/loading settings from disk.
37+
* Caching mechanisms to reduce loading and instancing times.
3738
* Collecting [game statistics](https://github.com/db0/CGF-Stats)
3839
* Easy customization via Themes. [Dark Theme](https://mounirtohami.itch.io/godot-dark-theme) used in Demo, provided by Mounir Tohami
3940
* A functional and customizable Card Library.

src/core/ScriptingEngine.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ func add_grid(script: ScriptTask) -> void:
628628
# +1 card-width below, becase we assume they're spanwining with more
629629
# than 1 column.
630630
grid.rect_position.y += \
631-
iter * grid.canonical_size.y * grid.card_play_scale
631+
iter * grid.card_size.y * grid.card_play_scale
632632

633633
# Task for modifying a a counter.
634634
# If this task is specified, the variable [counters](Board#counters) **has** to be set

0 commit comments

Comments
 (0)