marky1991 Posted September 17, 2025 Share Posted September 17, 2025 Does anyone know how to create popup screens? Is it feasible/possible without manually making unity prefabs? (Or does anyone know of an open-source mod that does this? I checked the plib repo (https://github.com/peterhaneve/ONIMods/tree/main/PLibUI), but couldn't find anything similar. I checked how eg the options screen does it, which is this code: protected GameObject ActivateChildScreen(GameObject screenPrefab) { GameObject go = Util.KInstantiateUI(screenPrefab, this.transform.parent.gameObject); this.childDialog = go; go.Subscribe(476357528, new Action<object>(this.Unhide)); this.Hide(); return go; } but I have no idea what the hash in the subscribe call means, I'm guessing it was some sort of constant lost in the decompilation. Plus, I don't have a prefab for my custom screen, so it's not clear to me , but would rather do everything directly via code). I'm thinking about trying to copy/paste the above, hard-coded hash and all, and see if it works, but I wanted to see if anyone knew better. Link to comment https://forums.kleientertainment.com/forums/topic/168018-how-to-create-popup-screens/ Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now