Index signals on multi-column ItemList controls

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By grymjack

I have a multi-column ItemList control that will will return an ‘index’ other that the baseline if the use does not click on the leftmost side of the control. Below is the clunky hacky way I am dealing with it currently. I am working on a data heavy game and there are several ‘clickable’ dialogs I will be building that could have 5/10 columns. Is there a better way to force the return to the index of the left-most column?

func _on_ScreenHistoryList_item_selected(index):
	# testing for odd number on index
	if index % 2 != 0:
		# reduce index to align with leftmost column of selection
		index -= 1