From eb36d7018c4368395587e94a31b6f69591f1411d Mon Sep 17 00:00:00 2001 From: Harmonic Date: Tue, 12 Apr 2022 11:50:28 -0700 Subject: [PATCH] Updated Catalog Layouts (TenShie) --- .../habbohotel/catalog/CatalogManager.java | 9 +++ .../catalog/CatalogPageLayouts.java | 77 +------------------ .../catalog/layouts/InfoMonkeyLayout.java | 27 +++++++ .../catalog/layouts/InfoNikoLayout.java | 27 +++++++ .../catalog/layouts/MadMoneyLayout.java | 27 +++++++ 5 files changed, 94 insertions(+), 73 deletions(-) create mode 100644 src/main/java/com/eu/habbo/habbohotel/catalog/layouts/InfoMonkeyLayout.java create mode 100644 src/main/java/com/eu/habbo/habbohotel/catalog/layouts/InfoNikoLayout.java create mode 100644 src/main/java/com/eu/habbo/habbohotel/catalog/layouts/MadMoneyLayout.java diff --git a/src/main/java/com/eu/habbo/habbohotel/catalog/CatalogManager.java b/src/main/java/com/eu/habbo/habbohotel/catalog/CatalogManager.java index 61bfd458..65d05d0d 100644 --- a/src/main/java/com/eu/habbo/habbohotel/catalog/CatalogManager.java +++ b/src/main/java/com/eu/habbo/habbohotel/catalog/CatalogManager.java @@ -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); diff --git a/src/main/java/com/eu/habbo/habbohotel/catalog/CatalogPageLayouts.java b/src/main/java/com/eu/habbo/habbohotel/catalog/CatalogPageLayouts.java index 9a8df100..ff6d01aa 100644 --- a/src/main/java/com/eu/habbo/habbohotel/catalog/CatalogPageLayouts.java +++ b/src/main/java/com/eu/habbo/habbohotel/catalog/CatalogPageLayouts.java @@ -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 } diff --git a/src/main/java/com/eu/habbo/habbohotel/catalog/layouts/InfoMonkeyLayout.java b/src/main/java/com/eu/habbo/habbohotel/catalog/layouts/InfoMonkeyLayout.java new file mode 100644 index 00000000..1de28f58 --- /dev/null +++ b/src/main/java/com/eu/habbo/habbohotel/catalog/layouts/InfoMonkeyLayout.java @@ -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()); + } +} diff --git a/src/main/java/com/eu/habbo/habbohotel/catalog/layouts/InfoNikoLayout.java b/src/main/java/com/eu/habbo/habbohotel/catalog/layouts/InfoNikoLayout.java new file mode 100644 index 00000000..f6cd5160 --- /dev/null +++ b/src/main/java/com/eu/habbo/habbohotel/catalog/layouts/InfoNikoLayout.java @@ -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()); + } +} diff --git a/src/main/java/com/eu/habbo/habbohotel/catalog/layouts/MadMoneyLayout.java b/src/main/java/com/eu/habbo/habbohotel/catalog/layouts/MadMoneyLayout.java new file mode 100644 index 00000000..7e73ce19 --- /dev/null +++ b/src/main/java/com/eu/habbo/habbohotel/catalog/layouts/MadMoneyLayout.java @@ -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); + } +}