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: case builders_club_loyalty:
this.put(layout.name().toLowerCase(), BuildersClubLoyaltyLayout.class); this.put(layout.name().toLowerCase(), BuildersClubLoyaltyLayout.class);
break; 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: case default_3x3:
default: default:
this.put("default_3x3", Default_3x3Layout.class); this.put("default_3x3", Default_3x3Layout.class);

View File

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