void AddRoomPanel(RoomInfo room)
    {
        GameObject gbj = Instantiate(roomListingPrefab, roomsPanel, false);
        RoomButton rb  = gbj.GetComponent <RoomButton>();

        rb.SetRoom(room);
        m_roomPanelList.Add(room.Name, rb);
    }
Esempio n. 2
0
 private void ListRoom(RoomInfo room)
 {
     if (room.IsOpen && room.IsVisible)
     {
         GameObject tempListing = Instantiate(roomListingPrefab, roomsContainer);
         RoomButton tempButton  = tempListing.GetComponent <RoomButton>();
         tempButton.SetRoom(room.Name, room.MaxPlayers, room.PlayerCount);
     }
 }
 void AddRoomToPanelList(RoomInfo room)
 {
     if (room.IsOpen && room.IsVisible)
     {
         GameObject newListing = Instantiate(roomSlotPrefab, roomsContainer, true);
         RoomButton roomButton = newListing.GetComponent <RoomButton>();
         roomButton.SetRoom(room.Name, room.MaxPlayers, room.PlayerCount);
     }
 }
Esempio n. 4
0
 void ListRoom(RoomInfo room) //displays new room listing for the current Room
 {
     if (room.IsOpen && room.IsVisible)
     {
         GameObject tempListing = Instantiate(roomsListItem, roomsContainer);
         RoomButton tempButton  = tempListing.GetComponent <RoomButton>();
         tempButton.SetRoom(room.Name, room.MaxPlayers, room.PlayerCount);
     }
 }
 void ListRoom(RoomInfo room)
 {
     if (room.IsOpen && room.IsVisible)
     {
         GameObject tempList   = Instantiate(roomListings, roomPanel);
         RoomButton tempButton = tempList.GetComponent <RoomButton>();
         tempButton.roomName = room.Name;
         tempButton.roomSize = room.MaxPlayers;
         tempButton.SetRoom();
     }
 }
Esempio n. 6
0
 void ListRoom(RoomInfo room)
 {
     if (room.IsOpen && room.IsVisible)
     {
         GameObject temp_listing = Instantiate(room_listing_prefab, rooms_panel);
         RoomButton temp_button  = temp_listing.GetComponent <RoomButton>();
         temp_button.room_name       = room.Name;
         temp_button.room_max_player = room.MaxPlayers;
         temp_button.SetRoom();
     }
 }
 void ListRoom(RoomInfo room)
 {
     if (room.IsOpen && room.IsVisible)
     {
         GameObject tempListing = Instantiate(roomlistingprefab, roomspanel);
         RoomButton tempbutton  = tempListing.GetComponent <RoomButton>();
         tempbutton.roomname = room.Name;
         tempbutton.roomsize = room.MaxPlayers;
         tempbutton.SetRoom();
     }
 }
 public void ListRoom(RoomInfo room)
 {
     if (room.IsOpen && room.IsVisible)
     {
         GameObject tempListing = Instantiate(roomListingPrefab, roomsPanel);
         RoomButton tempButton  = tempListing.GetComponent <RoomButton>();
         tempButton.roomName = room.Name;
         tempButton.roomSize = room.PlayerCount;
         tempButton.SetRoom();
     }
 }
Esempio n. 9
0
    //display Room in room panel
    void ListRoom(RoomInfo newRoom)
    {
        if (newRoom.IsOpen && newRoom.IsVisible)
        {
            GameObject tempListing = Instantiate(roomListingPrefab, roomsPanel);
            RoomButton tempButton  = tempListing.GetComponent <RoomButton>();

            tempButton.roomName = newRoom.Name.Substring(roomCodeLength);
            tempButton.roomSize = newRoom.MaxPlayers;
            tempButton.SetRoom();
        }
    }
Esempio n. 10
0
    private void ListRoom(RoomInfo room)
    {
        if (!room.IsOpen || !room.IsVisible)
        {
            return;
        }
        GameObject tempListing = Instantiate(roomListingPrefab, roomsPanel);
        RoomButton tempButton  = tempListing.GetComponent <RoomButton>();

        tempButton.roomName = room.Name;
        tempButton.roomSize = room.MaxPlayers;
        tempButton.SetRoom();
    }
Esempio n. 11
0
    void ListRoom(RoomInfo room)
    {
        if (room.IsOpen == true && room.IsVisible == true && room.PlayerCount < room.MaxPlayers)
        {
            string temp       = "";
            int    slimeStage = int.Parse(room.Name[room.Name.Length - 1].ToString()) - 1;
            int    slimeElem  = int.Parse(room.Name[room.Name.Length - 3].ToString());

            for (int i = 0; i < room.Name.Length - 4; i++)
            {
                temp = temp + room.Name[i];
            }
            GameObject tempListing = Instantiate(roomListingPrefab, roomsContainer);
            RoomButton tempButton  = tempListing.GetComponent <RoomButton>();
            tempButton.SetRoom(room.Name, temp, slimeSprites[slimeElem], ssl[slimeStage].SlimeStage[slimeElem]);
        }
    }