mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-26 04:59:23 +01:00
memes
This commit is contained in:
parent
b55c63538f
commit
8461ffea03
3 changed files with 15 additions and 2 deletions
|
@ -83,7 +83,7 @@ public final class BookletUtils{
|
|||
|
||||
//Draw No Entry title
|
||||
if(booklet.currentEntrySet.getCurrentEntry() == null){
|
||||
String strg = TextFormatting.DARK_GREEN+StringUtil.localize("info."+ModUtil.MOD_ID+".booklet.manualName.1");
|
||||
String strg = TextFormatting.DARK_GREEN+StringUtil.localize(booklet.bookletName);
|
||||
booklet.getFontRenderer().drawString(strg, booklet.guiLeft+booklet.xSize/2-booklet.getFontRenderer().getStringWidth(strg)/2-3, booklet.guiTop+12, 0);
|
||||
strg = TextFormatting.DARK_GREEN+StringUtil.localize("info."+ModUtil.MOD_ID+".booklet.manualName.2");
|
||||
booklet.getFontRenderer().drawString(strg, booklet.guiLeft+booklet.xSize/2-booklet.getFontRenderer().getStringWidth(strg)/2-3, booklet.guiTop+12+booklet.getFontRenderer().FONT_HEIGHT, 0);
|
||||
|
|
|
@ -31,6 +31,7 @@ import de.ellpeck.actuallyadditions.mod.update.UpdateChecker;
|
|||
import de.ellpeck.actuallyadditions.mod.util.AssetUtil;
|
||||
import de.ellpeck.actuallyadditions.mod.util.ModUtil;
|
||||
import de.ellpeck.actuallyadditions.mod.util.StringUtil;
|
||||
import de.ellpeck.actuallyadditions.mod.util.Util;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.audio.PositionedSoundRecord;
|
||||
import net.minecraft.client.gui.FontRenderer;
|
||||
|
@ -42,6 +43,7 @@ import net.minecraft.init.SoundEvents;
|
|||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.math.MathHelper;
|
||||
import net.minecraft.util.text.ITextComponent;
|
||||
import net.minecraft.util.text.TextFormatting;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
|
@ -92,6 +94,7 @@ public class GuiBooklet extends GuiScreen implements IBookletGui{
|
|||
private int ticksElapsed;
|
||||
private boolean mousePressed;
|
||||
private int hisNameIsAt;
|
||||
public String bookletName;
|
||||
|
||||
public GuiBooklet(GuiScreen parentScreen, boolean tryOpenMainPage, boolean saveOnClose){
|
||||
this.xSize = 146;
|
||||
|
@ -302,6 +305,12 @@ public class GuiBooklet extends GuiScreen implements IBookletGui{
|
|||
|
||||
@Override
|
||||
public void initGui(){
|
||||
int flavor = 1;
|
||||
if(Util.RANDOM.nextFloat() <= 0.1){
|
||||
flavor = MathHelper.getRandomIntegerInRange(Util.RANDOM, 2, 5);
|
||||
}
|
||||
this.bookletName = "info."+ModUtil.MOD_ID+".booklet.manualName.1."+flavor;
|
||||
|
||||
this.guiLeft = (this.width-this.xSize)/2;
|
||||
this.guiTop = (this.height-this.ySize)/2;
|
||||
|
||||
|
|
|
@ -552,7 +552,11 @@ info.actuallyadditions.inputter.info.1=This is the first Slot in the connected I
|
|||
info.actuallyadditions.inputter.info.2=This is the slot after the last Slot in the connected Inventory to <p> at. What that means: If you, for example, write 2 in the field to the left and 5 in this one, it will <p> at Slot 2, 3, and 4.
|
||||
info.actuallyadditions.inputter.whitelistInfo=When pressing this, this side's whitelist mode will be changed. To let all items through, an empty blacklist can be used, to let no items through, an empty whitelist can be used. To configure certain items, place them or configured Item Filters in the slots.
|
||||
info.actuallyadditions.noLens=No Lens
|
||||
info.actuallyadditions.booklet.manualName.1=Actually Additions
|
||||
info.actuallyadditions.booklet.manualName.1.1=Actually Additions
|
||||
info.actuallyadditions.booklet.manualName.1.2=Actual Additions
|
||||
info.actuallyadditions.booklet.manualName.1.3=Actually Addiction
|
||||
info.actuallyadditions.booklet.manualName.1.4=Actual Edition
|
||||
info.actuallyadditions.booklet.manualName.1.5=Actual Addition
|
||||
info.actuallyadditions.booklet.manualName.2=Manual
|
||||
info.actuallyadditions.booklet.edition=Edition
|
||||
info.actuallyadditions.deathRecorded=Your death has been recorded. Use a Death Tracker to find the death location!
|
||||
|
|
Loading…
Reference in a new issue