mirror of
https://port.numenaute.org/aleajactaest/khanat-client.git
synced 2024-11-14 19:50:00 +00:00
8 lines
250 B
GDScript3
8 lines
250 B
GDScript3
|
extends GridContainer
|
||
|
|
||
|
func _on_items_box_resized():
|
||
|
var inventory_window = self.find_parent("inventory_window")
|
||
|
if inventory_window:
|
||
|
var nb_columns = ( inventory_window.get_size().x - 32 ) / 32
|
||
|
self.set_columns( nb_columns )
|