mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-20 20:22:35 +00:00
Text colors wrap to EnumChatFormatting
* Fix #22 Text colors wrap to EnumChatFormatting * Fix #22 Fixed code error with "paragraph" char in EnumColor
This commit is contained in:
1 parent
f402cb155f
commit
856f08b752
33 files changed
+403
-340
No files matched your search
@@ -22,6 +22,7 @@ import binnie.core.craftgui.database.DatabaseTab;
|
||||
import binnie.core.craftgui.IWidget;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import binnie.core.craftgui.database.PageAbstract;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
|
||||
public class PagePlanksOverview extends PageAbstract<ItemStack>
|
||||
{
|
||||
@@ -60,7 +61,7 @@ public class PagePlanksOverview extends PageAbstract<ItemStack>
|
||||
if (type != null) {
|
||||
desc = type.getDescription();
|
||||
}
|
||||
String descBody = "§o";
|
||||
String descBody = EnumChatFormatting.ITALIC.toString();
|
||||
String descSig = "";
|
||||
if (desc == null || desc.length() == 0) {
|
||||
descBody += BinnieCore.proxy.localise("gui.database.nodescription");
|
||||
@@ -75,8 +76,8 @@ public class PagePlanksOverview extends PageAbstract<ItemStack>
|
||||
descSig += descStrings[descStrings.length - 1];
|
||||
}
|
||||
}
|
||||
controlDescription.setValue(descBody + "§r");
|
||||
controlSignature.setValue(descSig + "§r");
|
||||
controlDescription.setValue(descBody + EnumChatFormatting.RESET);
|
||||
controlSignature.setValue(descSig + EnumChatFormatting.RESET);
|
||||
final float descHeight = CraftGUI.Render.textHeight(controlDescription.getValue(), controlDescription.getSize().x());
|
||||
controlSignature.setPosition(new IPoint(controlSignature.pos().x(), controlDescription.getPosition().y() + descHeight + 10.0f));
|
||||
}
|
||||
|
||||
@@ -116,7 +116,11 @@ public class ModuleItems implements IInitializable
|
||||
CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(new ItemStack(ExtraTrees.itemHammer, 1, 0), new Object[] { "wiw", " s ", " s ", 'w', "plankWood", 'i', Items.iron_ingot, 's', Items.stick }));
|
||||
CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(ExtraTreeItems.Yeast.get(8), new Object[] { " m ", "mbm", 'b', Items.bread, 'm', Blocks.brown_mushroom }));
|
||||
CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(ExtraTreeItems.LagerYeast.get(8), new Object[] { "mbm", " m ", 'b', Items.bread, 'm', Blocks.brown_mushroom }));
|
||||
GameRegistry.addRecipe(ExtraTreeItems.GrainWheat.get(5), new Object[] { " s ", "sss", " s ", 's', Items.wheat_seeds });
|
||||
GameRegistry.addRecipe(
|
||||
ExtraTreeItems.GrainWheat.get(5),
|
||||
" s ", "sss", " s ",
|
||||
's', Items.wheat_seeds
|
||||
);
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(
|
||||
ExtraTreeItems.GrainBarley.get(3), new Object[] {
|
||||
false,
|
||||
|
||||
Reference in new issue
Block a user