feat: reveries window #4
This commit is contained in:
@@ -18,7 +18,7 @@ namespace IngameReveries
|
|||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
// Metadata of your mod is stored in this.about
|
// Metadata of your mod is stored in this.about
|
||||||
Debug.Log("Hola! I'm loaded! " + mod.metadata.id);
|
Debug.Log("Xin Chao! I'm loaded! " + mod.metadata.id);
|
||||||
|
|
||||||
// If you need to patch with Harmony, you can use this.harmony to access the Harmony instance for your mod.
|
// If you need to patch with Harmony, you can use this.harmony to access the Harmony instance for your mod.
|
||||||
// It will be created with your mod's id automatically, the first time you access the property.
|
// It will be created with your mod's id automatically, the first time you access the property.
|
||||||
@@ -53,7 +53,19 @@ namespace IngameReveries
|
|||||||
|
|
||||||
_ingameReveriesUI = new GameObject("IngameReveriesUI");
|
_ingameReveriesUI = new GameObject("IngameReveriesUI");
|
||||||
_ingameReveriesUI.transform.parent = menuViewGO.transform;
|
_ingameReveriesUI.transform.parent = menuViewGO.transform;
|
||||||
Instantiate(DewGUI.widgetWindow, _ingameReveriesUI.transform);
|
|
||||||
|
GameObject reveriesGO = Instantiate(_reveriesPrefab, menuViewGO.transform);
|
||||||
|
reveriesGO.SetActive(true);
|
||||||
|
reveriesGO.name = "IngameReveriessss";
|
||||||
|
reveriesGO.transform.SetAsFirstSibling();
|
||||||
|
|
||||||
|
var reveries = reveriesGO.GetComponent<UI_Reveries>();
|
||||||
|
|
||||||
|
var rect = reveriesGO.GetComponent<RectTransform>();
|
||||||
|
rect.anchorMin = new Vector2(0f, 1f);
|
||||||
|
rect.anchorMax = new Vector2(0f, 1f);
|
||||||
|
rect.pivot = new Vector2(0f, 1f);
|
||||||
|
rect.anchoredPosition = new Vector2(+70f, -70f);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -110,6 +122,7 @@ namespace IngameReveries
|
|||||||
{
|
{
|
||||||
Debug.Log($" - {name}");
|
Debug.Log($" - {name}");
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user