Updated Catalog Layouts (TenShie)

This commit is contained in:
Harmonic 2022-04-12 11:50:28 -07:00
parent 8a73eb2b43
commit eb36d7018c
5 changed files with 94 additions and 73 deletions

View File

@ -168,6 +168,15 @@ public class CatalogManager {
case builders_club_loyalty:
this.put(layout.name().toLowerCase(), BuildersClubLoyaltyLayout.class);
break;
case monkey:
this.put(layout.name().toLowerCase(), InfoMonkeyLayout.class);
break;
case niko:
this.put(layout.name().toLowerCase(), InfoNikoLayout.class);
break;
case mad_money:
this.put(layout.name().toLowerCase(), MadMoneyLayout.class);
break;
case default_3x3:
default:
this.put("default_3x3", Default_3x3Layout.class);

View File

@ -3,114 +3,45 @@ package com.eu.habbo.habbohotel.catalog;
public enum CatalogPageLayouts {
default_3x3,
guild_furni,
guilds,
guild_forum,
info_duckets,
info_rentables,
info_loyalty,
loyalty_vip_buy,
bots,
pets,
pets2,
pets3,
club_gift,
frontpage,
badge_display,
spaces_new,
soundmachine,
info_pets,
club_buy,
roomads,
trophies,
single_bundle,
marketplace,
marketplace_own_items,
recycler,
recycler_info,
recycler_prizes,
sold_ltd_items,
plasto,
default_3x3_color_grouping,
recent_purchases,
room_bundle,
petcustomization,
root,
vip_buy,
frontpage_featured,
builders_club_addons,
builders_club_frontpage,
builders_club_loyalty
builders_club_loyalty,
monkey,
niko,
mad_money
}

View File

@ -0,0 +1,27 @@
package com.eu.habbo.habbohotel.catalog.layouts;
import com.eu.habbo.habbohotel.catalog.CatalogPage;
import com.eu.habbo.messages.ServerMessage;
import java.sql.ResultSet;
import java.sql.SQLException;
public class InfoMonkeyLayout extends CatalogPage {
public InfoMonkeyLayout(ResultSet set) throws SQLException {
super(set);
}
@Override
public void serialize(ServerMessage message) {
message.appendString("monkey");
message.appendInt(3);
message.appendString(super.getHeaderImage());
message.appendString(super.getTeaserImage());
message.appendString(super.getSpecialImage());
message.appendInt(3);
message.appendString(super.getTextOne());
message.appendString(super.getTextDetails());
message.appendString(super.getTextTeaser());
}
}

View File

@ -0,0 +1,27 @@
package com.eu.habbo.habbohotel.catalog.layouts;
import com.eu.habbo.habbohotel.catalog.CatalogPage;
import com.eu.habbo.messages.ServerMessage;
import java.sql.ResultSet;
import java.sql.SQLException;
public class InfoNikoLayout extends CatalogPage {
public InfoNikoLayout(ResultSet set) throws SQLException {
super(set);
}
@Override
public void serialize(ServerMessage message) {
message.appendString("monkey");
message.appendInt(3);
message.appendString(super.getHeaderImage());
message.appendString(super.getTeaserImage());
message.appendString(super.getSpecialImage());
message.appendInt(3);
message.appendString(super.getTextOne());
message.appendString(super.getTextDetails());
message.appendString(super.getTextTeaser());
}
}

View File

@ -0,0 +1,27 @@
package com.eu.habbo.habbohotel.catalog.layouts;
import com.eu.habbo.habbohotel.catalog.CatalogPage;
import com.eu.habbo.messages.ServerMessage;
import java.sql.ResultSet;
import java.sql.SQLException;
public class MadMoneyLayout extends CatalogPage {
public MadMoneyLayout(ResultSet set) throws SQLException {
super(set);
}
@Override
public void serialize(ServerMessage message) {
message.appendString("mad_money");
message.appendInt(2);
message.appendString(super.getHeaderImage());
message.appendString(super.getTeaserImage());
message.appendInt(2);
message.appendString(super.getTextOne());
message.appendString(super.getTextTwo());
// message.appendString("MH");
message.appendInt(0);
}
}