Skip to content

Commit

Permalink
1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Nov 4, 2021
1 parent e2e3a57 commit 140598f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

### New Features

* 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.
* 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.
* Added exported vars for controlling card tween duration (@stevosaurus)
* Mouse will not teleport to a card's top-right when dragging starts. (@stevosaurus)
* Adjustments to prevent Rich Text Labels from sizing at 4 font size
* Recursive rescaling will also now take into account MarginContainer margins
* Added font_size_caching which should now reduce time lost while calculating font sizes.
* Added font_size_caching which should now reduce time lost while calculating font sizes.Requires CFConst.FONT_SIZE_CACHE

#### ScriptingEngine

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# Godot Card Game Framework [1.14](CHANGELOG.md)
# Godot Card Game Framework [1.15](CHANGELOG.md)

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

Expand Down Expand Up @@ -34,6 +34,7 @@ Pull requests are more than welcome ;)
* Can select layout of your CardContainers from a simple drop-down menu.
* Automatic and manual Grid-based, or Free-form placement on the board, or a combination of both, on a per-card-type basis.
* Functions from saving/loading settings from disk.
* Caching mechanisms to reduce loading and instancing times.
* Collecting [game statistics](https://github.com/db0/CGF-Stats)
* Easy customization via Themes. [Dark Theme](https://mounirtohami.itch.io/godot-dark-theme) used in Demo, provided by Mounir Tohami
* A functional and customizable Card Library.
Expand Down
2 changes: 1 addition & 1 deletion src/core/ScriptingEngine.gd
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ func add_grid(script: ScriptTask) -> void:
# +1 card-width below, becase we assume they're spanwining with more
# than 1 column.
grid.rect_position.y += \
iter * grid.canonical_size.y * grid.card_play_scale
iter * grid.card_size.y * grid.card_play_scale

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

0 comments on commit 140598f

Please sign in to comment.