public override void InitializeComponent() { UIBaseFileManager instance = NrTSingleton <UIBaseFileManager> .Instance; Form form = this; if (TsPlatform.IsMobile) { instance.LoadFileAll(ref form, "NpcTalk/DLG_npcextraquest", G_ID.TAKE_DLG, true); } else { instance.LoadFileAll(ref form, "NpcTalk/DLG_npcextraquest", G_ID.TAKE_DLG, true); UIBaseFileManager instance2 = NrTSingleton <UIBaseFileManager> .Instance; int num; int num2; instance2.LoadFileSize("Inventory/DLG_Inventory", out num, out num2); base.SetLocation((GUICamera.width - ((float)num + base.GetSize().x)) / 2f, (GUICamera.height - (float)num2) / 2f); } }