From 0ef9d7e01ec6696444af53176ab955e0cb0701b0 Mon Sep 17 00:00:00 2001 From: CraftyOldMiner <85420839+CraftyOldMiner@users.noreply.github.com> Date: Sun, 13 Mar 2022 08:15:37 -0500 Subject: Add .gitattributes, normalize exiting line endings (#91) --- .gitattributes | 14 + .../dungeons/GuiDungeonMapEditor.java | 1694 ++++++++++---------- .../options/seperateSections/AccessoryBag.java | 30 +- .../options/seperateSections/ApiKey.java | 30 +- .../options/seperateSections/Calendar.java | 106 +- .../options/seperateSections/DungeonMapConfig.java | 284 ++-- .../options/seperateSections/Dungeons.java | 458 +++--- .../options/seperateSections/Fishing.java | 414 ++--- .../options/seperateSections/ImprovedSBMenu.java | 100 +- .../options/seperateSections/InventoryButtons.java | 70 +- .../options/seperateSections/ItemOverlays.java | 712 ++++---- .../options/seperateSections/Itemlist.java | 220 +-- .../options/seperateSections/Mining.java | 1436 ++++++++--------- .../options/seperateSections/Misc.java | 286 ++-- .../options/seperateSections/NeuAuctionHouse.java | 90 +- .../options/seperateSections/Notifications.java | 64 +- .../options/seperateSections/PetOverlay.java | 236 +-- .../options/seperateSections/SkillOverlays.java | 634 ++++---- .../options/seperateSections/SlotLocking.java | 182 +-- .../options/seperateSections/StorageGUI.java | 520 +++--- .../options/seperateSections/Toolbar.java | 202 +-- .../options/seperateSections/TooltipTweaks.java | 282 ++-- .../options/seperateSections/TradeMenu.java | 52 +- 23 files changed, 4065 insertions(+), 4051 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..c51f397d --- /dev/null +++ b/.gitattributes @@ -0,0 +1,14 @@ +* text=auto + +# Always Unix-style line endings +*.sh text eol=lf + +# Always Windows-style line endings +*.bat text eol=crlf +*.cmd text eol=crlf + +# Always binary +*.jpg -text +*.ogg -text +*.png -text +*.xcf -text diff --git a/src/main/java/io/github/moulberry/notenoughupdates/dungeons/GuiDungeonMapEditor.java b/src/main/java/io/github/moulberry/notenoughupdates/dungeons/GuiDungeonMapEditor.java index 41fa3663..e59e0ea1 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/dungeons/GuiDungeonMapEditor.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/dungeons/GuiDungeonMapEditor.java @@ -1,847 +1,847 @@ -package io.github.moulberry.notenoughupdates.dungeons; - -import io.github.moulberry.notenoughupdates.NotEnoughUpdates; -import io.github.moulberry.notenoughupdates.core.GuiElementColour; -import io.github.moulberry.notenoughupdates.core.config.annotations.ConfigEditorSlider; -import io.github.moulberry.notenoughupdates.core.config.annotations.ConfigOption; -import io.github.moulberry.notenoughupdates.core.config.gui.GuiPositionEditor; -import io.github.moulberry.notenoughupdates.core.util.render.RenderUtils; -import io.github.moulberry.notenoughupdates.core.util.render.TextRenderUtils; -import io.github.moulberry.notenoughupdates.itemeditor.GuiElementTextField; -import io.github.moulberry.notenoughupdates.options.seperateSections.DungeonMapConfig; -import io.github.moulberry.notenoughupdates.util.SpecialColour; -import io.github.moulberry.notenoughupdates.util.Utils; -import net.minecraft.client.Minecraft; -import net.minecraft.client.gui.GuiScreen; -import net.minecraft.client.gui.ScaledResolution; -import net.minecraft.client.renderer.GlStateManager; -import net.minecraft.client.renderer.OpenGlHelper; -import net.minecraft.client.shader.Framebuffer; -import net.minecraft.client.shader.Shader; -import net.minecraft.util.EnumChatFormatting; -import net.minecraft.util.Matrix4f; -import net.minecraft.util.ResourceLocation; -import net.minecraft.util.Vec4b; -import org.lwjgl.input.Keyboard; -import org.lwjgl.input.Mouse; -import org.lwjgl.opengl.GL11; - -import java.awt.*; -import java.io.IOException; -import java.lang.reflect.Field; -import java.util.List; -import java.util.*; - -import static io.github.moulberry.notenoughupdates.util.GuiTextures.*; - -public class GuiDungeonMapEditor extends GuiScreen { - public static final ResourceLocation BACKGROUND = new ResourceLocation( - "notenoughupdates:dungeon_map/editor/background.png"); - public static final ResourceLocation BUTTON = new ResourceLocation("notenoughupdates:dungeon_map/editor/button.png"); - private static final DungeonMap demoMap = new DungeonMap(); - - private int sizeX; - private int sizeY; - private int guiLeft; - private int guiTop; - - private final List