insideout-andrew / simple-card-pile-ui

This plugin provides a flexible and customizable card pile user interface for the Godot game engine. It is designed to handle various card-related functionalities including drawing, discarding, and managing different piles.
MIT License
84 stars 9 forks source link

Code mixes `position` and `global_position` #7

Open mathrick opened 2 months ago

mathrick commented 2 months ago

A lot of the code uses position and global_position interchangeably. This is very inadvisable, those are completely different values and it's a pure accident that sometimes they might look the same. The result is that everything breaks horribly the second CardPileUI is not anchored at (0,0), or with any kind of UI layout other than absolute positioning.