summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-07-28 10:00:59 +0200
committerGitHub <noreply@github.com>2024-07-28 10:00:59 +0200
commitb2082d1d6008d943ffa2269cbdddb1b4fc72b8ce (patch)
tree26806bedd65409c2a00b2ad6fef18ed4dd2dee29 /src/main/java
parenta4ba470eabdea05c3e2770ce56cd3ec9e0687efc (diff)
downloadskyhanni-b2082d1d6008d943ffa2269cbdddb1b4fc72b8ce.tar.gz
skyhanni-b2082d1d6008d943ffa2269cbdddb1b4fc72b8ce.tar.bz2
skyhanni-b2082d1d6008d943ffa2269cbdddb1b4fc72b8ce.zip
Backend: Change colour (UK) to color (US) (#2258)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/crimsonisle/MatriarchHelperConfig.java4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/gui/TextBoxConfig.java2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/inventory/AuctionHousePriceComparisonConfig.java12
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/mining/TunnelMapsConfig.java6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/rift/area/dreadfarm/VoltCruxConfig.java1
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/rift/area/westvillage/KloonHackingConfig.java1
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonMilestonesDisplay.kt6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggType.kt6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/ThunderSparksHighlight.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/GeyserFishing.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/CarrolynTable.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorColorNames.kt8
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/ReforgeHelper.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/mining/eventtracker/MiningEventType.kt10
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/MarkedPlayerManager.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/PartyMemberOutlines.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/Enchant.kt6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/visualwords/VisualWordGui.kt20
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/SulphurSkitterBox.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangGravityOrbs.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/rift/area/dreadfarm/VoltHighlighter.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/rift/area/westvillage/kloon/KloonHacking.kt26
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillProgress.kt8
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/ColorUtils.kt10
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/GuiRenderUtils.kt12
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/LorenzColor.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt24
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/SpecialColor.java (renamed from src/main/java/at/hannibal2/skyhanni/utils/SpecialColour.java)2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt4
33 files changed, 111 insertions, 107 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/crimsonisle/MatriarchHelperConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/crimsonisle/MatriarchHelperConfig.java
index 198ec8b82..c88eea57d 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/crimsonisle/MatriarchHelperConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/crimsonisle/MatriarchHelperConfig.java
@@ -20,7 +20,7 @@ public class MatriarchHelperConfig {
public boolean highlight = true;
@Expose
- @ConfigOption(name = "Highlight Color", desc = "Colour the pearls are highlighted in.")
+ @ConfigOption(name = "Highlight Color", desc = "Color the pearls are highlighted in.")
@ConfigEditorColour
public String highlightColor = "0:114:126:255:41";
@@ -30,7 +30,7 @@ public class MatriarchHelperConfig {
public boolean line = true;
@Expose
- @ConfigOption(name = "Line Color", desc = "Colour of the line.")
+ @ConfigOption(name = "Line Color", desc = "Color of the line.")
@ConfigEditorColour
public String lineColor = "0:230:163:38:255";
}
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/gui/TextBoxConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/gui/TextBoxConfig.java
index 808cb66f6..6efd9edd9 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/gui/TextBoxConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/gui/TextBoxConfig.java
@@ -22,7 +22,7 @@ public class TextBoxConfig {
@Expose
@ConfigOption(name = "Text", desc = "Enter text you want to display here.\n" +
- "§eUse '&' as the colour code character.\n" +
+ "§eUse '&' as the color code character.\n" +
"§eUse '\\n' as the line break character.")
@ConfigEditorText
public Property<String> text = Property.of("&aYour Text Here\\n&bYour new line here");
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/AuctionHousePriceComparisonConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/AuctionHousePriceComparisonConfig.java
index a9300fab9..41c3b3b18 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/AuctionHousePriceComparisonConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/AuctionHousePriceComparisonConfig.java
@@ -20,22 +20,22 @@ public class AuctionHousePriceComparisonConfig {
public boolean enabled = false;
@Expose
- @ConfigOption(name = "Good Colour", desc = "What colour to highlight good value items with.")
+ @ConfigOption(name = "Good Color", desc = "What color to highlight good value items with.")
@ConfigEditorColour
- public String good = LorenzColor.GREEN.toConfigColour();
+ public String good = LorenzColor.GREEN.toConfigColor();
@Expose
- @ConfigOption(name = "Very Good Colour", desc = "What colour to highlight very good value items with.")
+ @ConfigOption(name = "Very Good Color", desc = "What color to highlight very good value items with.")
@ConfigEditorColour
public String veryGood = "0:255:0:139:0";
@Expose
- @ConfigOption(name = "Bad Colour", desc = "What colour to highlight bad items with.")
+ @ConfigOption(name = "Bad Color", desc = "What color to highlight bad items with.")
@ConfigEditorColour
- public String bad = LorenzColor.YELLOW.toConfigColour();
+ public String bad = LorenzColor.YELLOW.toConfigColor();
@Expose
- @ConfigOption(name = "Very Bad Colour", desc = "What colour to highlight very bad items with.")
+ @ConfigOption(name = "Very Bad Color", desc = "What color to highlight very bad items with.")
@ConfigEditorColour
public String veryBad = "0:255:225:43:30";
}
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java
index 39758745a..c381444df 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java
@@ -62,7 +62,7 @@ public class ChocolateFactoryConfig {
@Expose
@ConfigOption(name = "Highlight Upgrades", desc = "Highlight any upgrades that you can afford.\n" +
- "The upgrade with a star is the most optimal and the lightest colour of green is the most optimal you can afford.")
+ "The upgrade with a star is the most optimal and the lightest color of green is the most optimal you can afford.")
@ConfigEditorBoolean
public boolean highlightUpgrades = true;
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/mining/TunnelMapsConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/mining/TunnelMapsConfig.java
index 5ff38b346..bab2f47ff 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/mining/TunnelMapsConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/mining/TunnelMapsConfig.java
@@ -50,13 +50,15 @@ public class TunnelMapsConfig {
public boolean leftClickPigeon = true;
@Expose
- @ConfigOption(name = "Dynamic Path Colour", desc = "Instead of the selected color use the color of the target as line colour.")
+ @ConfigOption(name = "Dynamic Path Color", desc = "Instead of the selected color use the color of the target as line color.")
@ConfigEditorBoolean
+ // TODO rename to dynamicPathColor
public boolean dynamicPathColour = true;
@Expose
- @ConfigOption(name = "Path Colour", desc = "The colour for the paths, if the dynamic colour option is turned off.")
+ @ConfigOption(name = "Path Color", desc = "The color for the paths, if the dynamic color option is turned off.")
@ConfigEditorColour
+ // TODO rename to pathColor
public String pathColour = "0:255:0:255:0";
@Expose
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/rift/area/dreadfarm/VoltCruxConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/rift/area/dreadfarm/VoltCruxConfig.java
index 6a5e1a0f1..0a1ae63e9 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/rift/area/dreadfarm/VoltCruxConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/rift/area/dreadfarm/VoltCruxConfig.java
@@ -23,6 +23,7 @@ public class VoltCruxConfig {
@Expose
@ConfigOption(name = "Volt Range Highlighter Color", desc = "In which color should the Volt range be highlighted?")
@ConfigEditorColour
+ // TODO rename to voltColor
public String voltColour = "0:60:0:0:255";
@Expose
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/rift/area/westvillage/KloonHackingConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/rift/area/westvillage/KloonHackingConfig.java
index 01a627137..57fdad599 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/rift/area/westvillage/KloonHackingConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/rift/area/westvillage/KloonHackingConfig.java
@@ -17,6 +17,7 @@ public class KloonHackingConfig {
@ConfigOption(name = "Color Guide", desc = "Show which color to pick.")
@ConfigEditorBoolean
@FeatureToggle
+ // TODO rename to color
public boolean colour = true;
@Expose
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt
index 4be042b43..7245ab8f5 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt
@@ -94,7 +94,7 @@ object DungeonDeathCounter {
if (!isEnabled()) return
config.deathCounterPos.renderString(
- DungeonMilestonesDisplay.colour + display,
+ DungeonMilestonesDisplay.color + display,
posLabel = "Dungeon Death Counter"
)
}
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonMilestonesDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonMilestonesDisplay.kt
index 3f00775d9..ea65b2e00 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonMilestonesDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonMilestonesDisplay.kt
@@ -27,7 +27,7 @@ object DungeonMilestonesDisplay {
private var display = ""
private var currentMilestone = 0
private var timeReached = SimpleTimeMark.farPast()
- var colour = ""
+ var color = ""
@SubscribeEvent
fun onTick(event: LorenzTickEvent) {
@@ -54,7 +54,7 @@ object DungeonMilestonesDisplay {
timeReached = SimpleTimeMark.now()
}
- colour = when (currentMilestone) {
+ color = when (currentMilestone) {
0, 1 -> "§c"
2 -> "§e"
else -> "§a"
@@ -79,7 +79,7 @@ object DungeonMilestonesDisplay {
if (!isEnabled()) return
config.showMileStonesDisplayPos.renderString(
- colour + display,
+ color + display,
posLabel = "Dungeon Milestone"
)
}
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggType.kt b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggType.kt
index 87df6c3cb..2846262e6 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggType.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggType.kt
@@ -6,7 +6,7 @@ import kotlin.time.Duration
enum class HoppityEggType(
val mealName: String,
- private val mealColour: String,
+ private val mealColor: String,
val resetsAt: Int,
var lastResetDay: Int = -1,
private var claimed: Boolean = false,
@@ -34,8 +34,8 @@ enum class HoppityEggType(
}
fun isClaimed() = claimed
- val formattedName get() = "${if (isClaimed()) "§7§m" else mealColour}$mealName:$mealColour"
- val coloredName get() = "$mealColour$mealName"
+ val formattedName get() = "${if (isClaimed()) "§7§m" else mealColor}$mealName:$mealColor"
+ val coloredName get() = "$mealColor$mealName"
companion object {
fun allFound() = entries.forEach { it.markClaimed() }
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/ThunderSparksHighlight.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/ThunderSparksHighlight.kt
index 91801f169..d1220d7e3 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/fishing/ThunderSparksHighlight.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/ThunderSparksHighlight.kt
@@ -16,7 +16,7 @@ import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.isInIsland
import at.hannibal2.skyhanni.utils.RenderUtils.drawString
import at.hannibal2.skyhanni.utils.RenderUtils.drawWaypointFilled
-import at.hannibal2.skyhanni.utils.SpecialColour
+import at.hannibal2.skyhanni.utils.SpecialColor
import at.hannibal2.skyhanni.utils.getLorenzVec
import net.minecraft.entity.item.EntityArmorStand
import net.minecraft.init.Blocks
@@ -45,7 +45,7 @@ object ThunderSparksHighlight {
if (!isEnabled()) return
val special = config.color
- val color = Color(SpecialColour.specialToChromaRGB(special), true)
+ val color = Color(SpecialColor.specialToChromaRGB(special), true)
val playerLocation = LocationUtils.playerLocation()
for (spark in sparks) {
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/GeyserFishing.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/GeyserFishing.kt
index 24f52e0b2..ee3838335 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/GeyserFishing.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/GeyserFishing.kt
@@ -13,7 +13,7 @@ import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.isInIsland
import at.hannibal2.skyhanni.utils.LorenzVec
import at.hannibal2.skyhanni.utils.RenderUtils.drawFilledBoundingBox_nea
-import at.hannibal2.skyhanni.utils.SpecialColour
+import at.hannibal2.skyhanni.utils.SpecialColor
import net.minecraft.util.AxisAlignedBB
import net.minecraft.util.EnumParticleTypes
import net.minecraftforge.fml.common.eventhandler.EventPriority
@@ -63,7 +63,7 @@ object GeyserFishing {
if (!IslandType.CRIMSON_ISLE.isInIsland()) return
if (config.onlyWithRod && !FishingAPI.holdingLavaRod) return
- val color = Color(SpecialColour.specialToChromaRGB(config.boxColor), true)
+ val color = Color(SpecialColor.specialToChromaRGB(config.boxColor), true)
event.drawFilledBoundingBox_nea(geyserBox, color)
}
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/CarrolynTable.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/CarrolynTable.kt
index 9b1a30c4b..0759f7020 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/CarrolynTable.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/CarrolynTable.kt
@@ -32,12 +32,12 @@ enum class CarrolynTable(val crop: CropType, val label: String, completeMessage:
),
;
- /** Pattern without colour codes */
+ /** Pattern without color codes */
val completeMessagePattern by RepoPattern.pattern(
"garden.ff.carrolyn.complete.${crop.patternKeyName}", completeMessage,
)
- /** Pattern without colour codes */
+ /** Pattern without color codes */
val thxMessagePattern by RepoPattern.pattern(
"garden.ff.carrolyn.thx.${crop.patternKeyName}", thxMessage,
)
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorColorNames.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorColorNames.kt
index fa847703f..cd815edd6 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorColorNames.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorColorNames.kt
@@ -9,23 +9,23 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
@SkyHanniModule
object GardenVisitorColorNames {
- private var visitorColours = mutableMapOf<String, String>() // name -> color code
+ private var visitorColors = mutableMapOf<String, String>() // name -> color code
var visitorItems = mutableMapOf<String, List<String>>()
@SubscribeEvent
fun onRepoReload(event: RepositoryReloadEvent) {
val data = event.getConstant<GardenJson>("Garden")
- visitorColours.clear()
+ visitorColors.clear()
visitorItems.clear()
for ((visitor, visitorData) in data.visitors) {
- visitorColours[visitor] = visitorData.rarity.color.getChatColor()
+ visitorColors[visitor] = visitorData.rarity.color.getChatColor()
visitorItems[visitor] = visitorData.needItems
}
}
fun getColoredName(name: String): String {
val cleanName = name.removeColor()
- val color = visitorColours[cleanName] ?: return name
+ val color = visitorColors[cleanName] ?: return name
return color + cleanName
}
}
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt
index 151ec4caa..3372c2abd 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt
@@ -234,8 +234,8 @@ object GardenVisitorFeatures {
var amountInSacks = 0
internalName.getAmountInSacksOrNull()?.let {
amountInSacks = it
- val textColour = if (it >= amount) "a" else "e"
- list.add(" §7(§${textColour}x${it.addSeparators()} §7in sacks)")
+ val textColor = if (it >= amount) "a" else "e"
+ list.add(" §7(§${textColor}x${it.addSeparators()} §7in sacks)")
}
val ingredients = NEUItems.getRecipes(internalName)
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/ReforgeHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/ReforgeHelper.kt
index d1826b481..fcd940d02 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ReforgeHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ReforgeHelper.kt
@@ -236,7 +236,7 @@ object ReforgeHelper {
this.addAll(list)
}
- private fun getReforgeColour(reforge: ReforgeAPI.Reforge) = when {
+ private fun getReforgeColor(reforge: ReforgeAPI.Reforge) = when {
currentReforge == reforge -> "§6"
reforgeToSearch == reforge -> "§3"
reforge.isReforgeStone -> "§9"
@@ -244,7 +244,7 @@ object ReforgeHelper {
}
private fun getReforgeView(itemRarity: LorenzRarity): (ReforgeAPI.Reforge) -> Renderable = { reforge ->
- val text = getReforgeColour(reforge) + reforge.name
+ val text = getReforgeColor(reforge) + reforge.name
val tips = getReforgeTips(reforge, itemRarity)
val onHover = if (!isInHexReforgeMenu) {
{}
diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/eventtracker/MiningEventType.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/eventtracker/MiningEventType.kt
index 312f291de..eb56a0dd3 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/mining/eventtracker/MiningEventType.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/mining/eventtracker/MiningEventType.kt
@@ -21,7 +21,7 @@ enum class MiningEventType(
val eventName: String,
private val shortName: String,
val defaultLength: Duration,
- private val colourCode: Char,
+ private val colorCode: Char,
val dwarvenSpecific: Boolean,
iconInput: Renderable,
) {
@@ -101,18 +101,18 @@ enum class MiningEventType(
eventName: String,
shortName: String,
defaultLength: Duration,
- colourCode: Char,
+ colorCode: Char,
dwarvenSpecific: Boolean,
iconInput: ItemStack,
) : this(
- eventName, shortName, defaultLength, colourCode, dwarvenSpecific, Renderable.itemStack(
+ eventName, shortName, defaultLength, colorCode, dwarvenSpecific, Renderable.itemStack(
iconInput, xSpacing = 0
)
)
val icon = Renderable.hoverTips(iconInput, listOf(eventName))
- val compactText = Renderable.string("§$colourCode$shortName")
- val normalText = Renderable.string("§$colourCode$eventName")
+ val compactText = Renderable.string("§$colorCode$shortName")
+ val normalText = Renderable.string("§$colorCode$eventName")
val compactTextWithIcon = Renderable.horizontalContainer(listOf(icon, compactText), 0)
val normalTextWithIcon = Renderable.horizontalContainer(listOf(icon, normalText), 0)
diff --git a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt
index 2ccaba2e5..c0a9c1212 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt
@@ -46,7 +46,7 @@ import at.hannibal2.skyhanni.utils.RenderUtils.drawString
import at.hannibal2.skyhanni.utils.RenderUtils.drawWaypointFilled
import at.hannibal2.skyhanni.utils.RenderUtils.renderString
import at.hannibal2.skyhanni.utils.SimpleTimeMark
-import at.hannibal2.skyhanni.utils.SpecialColour
+import at.hannibal2.skyhanni.utils.SpecialColor
import at.hannibal2.skyhanni.utils.TimeUtils.format
import at.hannibal2.skyhanni.utils.getLorenzVec
import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern
@@ -143,7 +143,7 @@ object MinionFeatures {
if (!config.lastClickedMinion.display) return
val special = config.lastClickedMinion.color
- val color = Color(SpecialColour.specialToChromaRGB(special), true)
+ val color = Color(SpecialColor.specialToChromaRGB(special), true)
val loc = lastMinion
if (loc != null) {
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/MarkedPlayerManager.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/MarkedPlayerManager.kt
index e463549bc..05b1eaf35 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/MarkedPlayerManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/MarkedPlayerManager.kt
@@ -63,7 +63,7 @@ object MarkedPlayerManager {
}
}
- private fun refreshColours() =
+ private fun refreshColors() =
markedPlayers.forEach {
it.value.setColor()
}
@@ -104,7 +104,7 @@ object MarkedPlayerManager {
playerNamesToMark.remove(name)
}
}
- config.entityColor.onToggle(::refreshColours)
+ config.entityColor.onToggle(::refreshColors)
}
@SubscribeEvent
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/PartyMemberOutlines.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/PartyMemberOutlines.kt
index af2221a55..0d1f96d13 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/PartyMemberOutlines.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/PartyMemberOutlines.kt
@@ -7,7 +7,7 @@ import at.hannibal2.skyhanni.events.RenderEntityOutlineEvent
import at.hannibal2.skyhanni.features.dungeon.DungeonAPI
import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule
import at.hannibal2.skyhanni.utils.LorenzUtils
-import at.hannibal2.skyhanni.utils.SpecialColour
+import at.hannibal2.skyhanni.utils.SpecialColor
import net.minecraft.client.entity.EntityOtherPlayerMP
import net.minecraft.entity.Entity
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
@@ -30,6 +30,6 @@ object PartyMemberOutlines {
private fun getEntityOutlineColor(entity: Entity): Int? {
if (entity !is EntityOtherPlayerMP || !PartyAPI.partyMembers.contains(entity.name)) return null
- return SpecialColour.specialToChromaRGB(config.outlineColor)
+ return SpecialColor.specialToChromaRGB(config.outlineColor)
}
}
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/Enchant.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/Enchant.kt
index d010198dd..697a58ebb 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/Enchant.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/Enchant.kt
@@ -29,7 +29,7 @@ open class Enchant : Comparable<Enchant> {
val config = SkyHanniMod.feature.inventory.enchantParsing
// TODO change color to string (support for bold)
- val c