2018-07-06 15:30:00 +02:00
|
|
|
package com.eu.habbo.habbohotel.navigation;
|
|
|
|
|
|
|
|
import com.eu.habbo.Emulator;
|
2018-09-12 18:45:00 +02:00
|
|
|
import com.eu.habbo.habbohotel.permissions.Permission;
|
2018-07-06 15:30:00 +02:00
|
|
|
import com.eu.habbo.habbohotel.users.Habbo;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
public class NavigatorRoomAdsFilter extends NavigatorFilter
|
|
|
|
{
|
|
|
|
public final static String name = "roomads_view";
|
|
|
|
|
|
|
|
public NavigatorRoomAdsFilter()
|
|
|
|
{
|
|
|
|
super(name);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public List<SearchResultList> getResult(Habbo habbo)
|
|
|
|
{
|
2018-09-12 18:45:00 +02:00
|
|
|
boolean showInvisible = habbo.hasPermission("acc_enter_anyroom") || habbo.hasPermission(Permission.ACC_ANYROOMOWNER);
|
2018-09-28 21:25:00 +02:00
|
|
|
List<SearchResultList> resultList = new ArrayList<>();
|
2018-07-06 15:30:00 +02:00
|
|
|
resultList.add(new SearchResultList(0, "categories", "", SearchAction.NONE, habbo.getHabboStats().navigatorWindowSettings.getListModeForCategory("categories", ListMode.LIST), habbo.getHabboStats().navigatorWindowSettings.getDisplayModeForCategory("official-root", DisplayMode.VISIBLE), Emulator.getGameEnvironment().getRoomManager().getRoomsPromoted(), false, showInvisible));
|
|
|
|
return resultList;
|
|
|
|
}
|
|
|
|
}
|