- Joined
- Feb 6, 2011
- Messages
- 124
- Reaction score
- 41
Hi!
For those who, like us at Dreuzel Hotel, love to keep the Habbo.swf up-to-date but miss the descriptions I'll explain how to re-add furni and badge descriptions back to the new Habbo.swf's. Some (basic) knowledge about Habbo UI Editor and ActionScript is required.
Let's start in the ActionScripts:
In the script HabboLocalizationManager search for the function getBadgeDesc(), you'll see it's returning an empty string. Replace the entire function with:
In the script FurnitureDataParser, search for param1.name,"" , you'll find it twice. Replace it twice with:
That's it for returning the descriptions, on to the layout! For the layout, we used Leensters Habbo UI Editor.
Replace the content of the layout file badge_details (habbo-1037.bin) with:
In the layout file furni_view (habbo-2345.bin) search for:
Above it, place:
That's it, your descriptions are back.
Keep in mind that the first ActionScript part may not be the same for the swf version you're using. This is written for PRODUCTION-201705161239-133590383, class names may be different: be aware of it!
For editing the ActionScripts we used JPEXS Free Flash Decompiler, this function is experimental but works.
It's not something huge, but hey, they removed something we all liked :*: .
For those who, like us at Dreuzel Hotel, love to keep the Habbo.swf up-to-date but miss the descriptions I'll explain how to re-add furni and badge descriptions back to the new Habbo.swf's. Some (basic) knowledge about Habbo UI Editor and ActionScript is required.
Let's start in the ActionScripts:
In the script HabboLocalizationManager search for the function getBadgeDesc(), you'll see it's returning an empty string. Replace the entire function with:
Code:
public function getBadgeDesc(param1:String) : String
{
var local1:Class_3194 = new Class_3194(param1);
var local2:String = this.§_-5Th§(this.§_-1K8§(["badge_desc_" + param1,"badge_desc_" + local1.base]));
this.registerParameter(local2,"limit","" + this.§_-sK§(param1));
this.registerParameter(local2,"roman",this.§_-6ej§(local1.level));
return this.getLocalization(local2);
}
In the script FurnitureDataParser, search for param1.name,"" , you'll find it twice. Replace it twice with:
Code:
param1.name,param1.description
That's it for returning the descriptions, on to the layout! For the layout, we used Leensters Habbo UI Editor.
Replace the content of the layout file badge_details (habbo-1037.bin) with:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<layout name="badge_details" width="20" height="20" version="0.0">
<window>
<border x="87" y="53" width="263" height="99" params="0" style="0" name="test">
<children>
<text x="8" y="6" width="250" height="28" params="16" style="0" name="name" caption="">
<variables>
<var key="font_face" value="Volter Bold" type="String"/>
<var key="font_size" value="9" type="uint"/>
<var key="text_color" value="0x0" type="hex"/>
<var key="embed_fonts" value="true" type="Boolean"/>
<var key="word_wrap" value="true" type="Boolean"/>
</variables>
</text>
<text x="8" y="33" width="250" height="60" params="16" style="0" name="description" caption="" clipping="false">
<variables>
<var key="font_face" value="Volter" type="String"/>
<var key="font_size" value="9" type="uint"/>
<var key="text_color" value="0x0" type="hex"/>
<var key="embed_fonts" value="true" type="Boolean"/>
<var key="word_wrap" value="true" type="Boolean"/>
</variables>
</text>
</children>
</border>
</window>
</layout>
In the layout file furni_view (habbo-2345.bin) search for:
Code:
<container x="0" y="209" width="170" height="1" params="16" style="0" name="owner_spacer" color="0xffff333333" background="true"/>
Code:
<container x="0" y="158" width="170" height="1" params="16" style="0" name="description_spacer" color="0xffff333333" background="true"/>
<text x="0" y="164" width="170" height="40" params="16" style="0" name="description_text" caption="Furni%20description">
<variables>
<var key="text_color" value="0xffffff" type="hex"/>
<var key="mouse_wheel_enabled" value="false" type="Boolean"/>
<var key="sharpness" value="0" type="Number"/>
<var key="thickness" value="0" type="Number"/>
<var key="word_wrap" value="true" type="Boolean"/>
<var key="kerning" value="false" type="Boolean"/>
<var key="spacing" value="0" type="Number"/>
<var key="leading" value="0" type="Number"/>
</variables>
</text>
That's it, your descriptions are back.
Keep in mind that the first ActionScript part may not be the same for the swf version you're using. This is written for PRODUCTION-201705161239-133590383, class names may be different: be aware of it!
For editing the ActionScripts we used JPEXS Free Flash Decompiler, this function is experimental but works.
It's not something huge, but hey, they removed something we all liked :*: .
Last edited: