File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,13 +121,12 @@ public static void CreatePrefab(ShipLogMapMode mapMode)
121121 Destroy ( mapModeCopy ) ;
122122
123123 // Parent object for all item lists
124- GameObject commonParentGo = new GameObject ( "ItemListsParent " , typeof ( RectTransform ) ) ;
124+ GameObject commonParentGo = new GameObject ( "ItemListsRoot " , typeof ( RectTransform ) ) ;
125125 _commonParent = commonParentGo . transform ;
126126 _commonParent . parent = mapMode . transform . parent ;
127127 _commonParent . localScale = Vector3 . one ;
128- // TODO: Improve this, group of item lists after vanilla modes
129- // We want to see the prompts on top of the modes! Don't use the upper right one here, since it's the one for Map Mode
130- mapMode . _centerPromptList . transform . parent . SetAsLastSibling ( ) ;
128+ _commonParent . SetSiblingIndex ( itemList . descriptionField . transform . GetSiblingIndex ( ) + 1 ) ;
129+ // Maybe making it next to the vanilla mode makes more sense, but it seems better after desc field (for example, Journal's cursor)
131130
132131 // Add enough room for arbitrary text in the description field
133132 RectTransform factList = itemList . descriptionField . _factListItems [ 0 ] . transform . parent as RectTransform ;
You can’t perform that action at this time.
0 commit comments