Skip to content

v1.11

Choose a tag to compare

@db0 db0 released this 11 Jul 15:50
· 194 commits to main since this release

Important for Upgrades

New CFConst poperties added:

  • THUMBNAIL_SCALE
  • PREVIEW_SCALE
  • FOCUSED_SCALE

These allow you to adjust how much to scale the cards depending on where they're placed.
You NEED to add these to CFConst.

New Features

  • Integrated the Dark Theme provided by Mounir Tohami as the default theme of the CGF which gives a good guideline on how to integrate themes into the game and quickly change the look.
  • Can now filter against godot groups
  • Can now filter against get_class()
  • Added new overridable function common_pre_run() which can be used to run custom methods in an extended scripting engine before execution
  • Added new signal in cfc cache_cleared which fires every time the cache is cleared, which typically signifies a game-state-change
  • New card method set_to_idle()

Tweaks

  • Targeting Arrow can now handle any node type (not just area2d)
  • ScriptingEngine's trigger_card renamed to trigger_object and can now accept any Node class
  • ScriptEngine's 'boardseek' now uses new board method get_all_scriptables() which can be extended to gather any type of object needed.
  • Refactored ScriptObject
  • ScriptingEngine's shuffle_container() will now wait for animations to finish before shuffling, and then wait until its own animation is finished before proceeding.
  • Card resizing when VIEWPORT_FOCUS_ZOOM_TYPE is set to "resize"now happens recursively which allows games to easily use this feature without manually specifying all the rects in the card_front.
    This allows a designer to design the card layout in the GODOT GUI and then the game will automatically handle the scaling.
    This is not perfect as when scaling too high or too low, some elements might get slightly out of alignment compared to the scale 1,1, but it should be good enough.

Bugs

  • Hands other than the first will now correctly rotate cards while in oval shape.
  • Debug button unclicked will re-hide the debug info.
  • Fixed CFUtils.shuffle_array() to be able to handle 2-element arrays as well
  • Fixes for changing pile opacity when adding/removing cards
  • Fixes for manipulating pile cards while they're in the popup container
  • Fixes for adding and removing cards at the same time from pile.