Godot Version
v4.3.stable.official [77dcf97d8]
Question
Hello guys,
new dev here.
I’m making a 2D Game and have stumbled upon a problem with the GridContainers.
I’m trying to fill a GridContainer, upon calling a signal, with Slots I have created. This works twice in my code already. Once for the player Inventory, and once for planting seeds in a pot. In these instances the GridContainer fills the Slots and applies the columns, V, and H Separations set in the inspector. Now on the third attempt, I’m trying to open the Screen (including the grid container) upon talking to the Shopkeeper. This is calls a signal for the Shopkeeping screen to update, which should draw the slots. This works, but the V, and H Separation don’t apply in a “normal” way. While in the Inventory screen the V and H Separation are set to 20, for it to neatly fit the Screen, in the shop screen the H Separation has to be 200 and the V Separation doesn’t apply at all.
Any help would be appreciated, should you need more information I would love to supply it.
Kindest regards,
Ben