コード例 #1
0
    // Token: 0x060061CA RID: 25034 RVA: 0x00228114 File Offset: 0x00226514
    public void ShowWorldInstanceDetails(ApiWorld w, ApiWorld.WorldInstance instance)
    {
        VRCUiPage page = VRCUiManager.Instance.GetPage("UserInterface/MenuContent/Screens/WorldInfo");

        VRCUiManager.Instance.ShowScreen(page);
        PageWorldInfo component = page.GetComponent <PageWorldInfo>();

        component.SetupWorldInfo(this.world, instance, false, component.openedFromPortal);
    }
コード例 #2
0
    // Token: 0x060061D3 RID: 25043 RVA: 0x002283E8 File Offset: 0x002267E8
    public void ShowRoomDetails(ApiWorld w)
    {
        VRCUiPage page = VRCUiManager.Instance.GetPage("UserInterface/MenuContent/Screens/WorldInfo");

        VRCUiManager.Instance.ShowScreen(page);
        PageWorldInfo info = page.GetComponent <PageWorldInfo>();

        ApiWorld.WorldInstance winst = null;
        if (RoomManager.currentRoom != null && RoomManager.currentRoom.id == w.id)
        {
            int count = PlayerManager.GetAllPlayers().Length;
            winst = new ApiWorld.WorldInstance(RoomManager.currentRoom.currentInstanceIdWithTags, count);
        }
        info.SetupWorldInfo(w, winst, false, false);
        ApiWorld.Fetch(w.id, delegate(ApiWorld world)
        {
            info.SetupWorldInfo(world, winst, false, false);
        }, delegate(string error)
        {
            Debug.LogWarning("Could not join room: " + w.name);
        });
    }