public void BtClickRefreshList(IUIObject obj) { GS_BABELTOWER_OPENROOMLIST_GET_REQ gS_BABELTOWER_OPENROOMLIST_GET_REQ = new GS_BABELTOWER_OPENROOMLIST_GET_REQ(); gS_BABELTOWER_OPENROOMLIST_GET_REQ.search_startfloor = this.m_nCurMinFloor; gS_BABELTOWER_OPENROOMLIST_GET_REQ.search_finishfloor = this.m_nCurMaxFloor; gS_BABELTOWER_OPENROOMLIST_GET_REQ.FloorType = this.m_nFloorType; SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_BABELTOWER_OPENROOMLIST_GET_REQ, gS_BABELTOWER_OPENROOMLIST_GET_REQ); }
public void OnChangeList(IUIObject obj) { ListItem listItem = this.m_ddlFloorList.SelectedItem.Data as ListItem; if (listItem != null) { short nCurMinFloor = (short)listItem.Key + 1; short nCurMaxFloor = (short)listItem.Key + 10; this.m_nCurMinFloor = nCurMinFloor; this.m_nCurMaxFloor = nCurMaxFloor; GS_BABELTOWER_OPENROOMLIST_GET_REQ gS_BABELTOWER_OPENROOMLIST_GET_REQ = new GS_BABELTOWER_OPENROOMLIST_GET_REQ(); gS_BABELTOWER_OPENROOMLIST_GET_REQ.search_startfloor = this.m_nCurMinFloor; gS_BABELTOWER_OPENROOMLIST_GET_REQ.search_finishfloor = this.m_nCurMaxFloor; gS_BABELTOWER_OPENROOMLIST_GET_REQ.FloorType = this.m_nFloorType; SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_BABELTOWER_OPENROOMLIST_GET_REQ, gS_BABELTOWER_OPENROOMLIST_GET_REQ); } }
public void BtClickSearch(IUIObject obj) { string text = this.m_lbFloorText.GetText(); short num = short.Parse(text); if (num < 1 || num > NrTSingleton <BabelTowerManager> .Instance.GetLastFloor(this.m_nFloorType)) { return; } this.m_nCurMinFloor = num; this.m_nCurMaxFloor = num; this.m_nSearchFloor = num; GS_BABELTOWER_OPENROOMLIST_GET_REQ gS_BABELTOWER_OPENROOMLIST_GET_REQ = new GS_BABELTOWER_OPENROOMLIST_GET_REQ(); gS_BABELTOWER_OPENROOMLIST_GET_REQ.search_startfloor = this.m_nCurMinFloor; gS_BABELTOWER_OPENROOMLIST_GET_REQ.search_finishfloor = this.m_nCurMaxFloor; gS_BABELTOWER_OPENROOMLIST_GET_REQ.FloorType = this.m_nFloorType; SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_BABELTOWER_OPENROOMLIST_GET_REQ, gS_BABELTOWER_OPENROOMLIST_GET_REQ); }