Skip to content

Commit f2e530e

Browse files
committed
Item lists not over exterior over
1 parent ecab2f0 commit f2e530e

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

CustomShipLogModes/ShipLogItemList.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)