From d0cbc11018c8126575117aaeb2b861957386fa9a Mon Sep 17 00:00:00 2001 From: Appability Date: Thu, 13 Oct 2022 18:58:00 -0700 Subject: steal a bunch of code from sbc! +melodyhelper, kuudra ready, wither shield overlay --- .../kotlin/com/ambientaddons/utils/dungeon/TextStyle.kt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/main/kotlin/com/ambientaddons/utils/dungeon/TextStyle.kt (limited to 'src/main/kotlin/com/ambientaddons/utils/dungeon/TextStyle.kt') diff --git a/src/main/kotlin/com/ambientaddons/utils/dungeon/TextStyle.kt b/src/main/kotlin/com/ambientaddons/utils/dungeon/TextStyle.kt new file mode 100644 index 0000000..b1a5dce --- /dev/null +++ b/src/main/kotlin/com/ambientaddons/utils/dungeon/TextStyle.kt @@ -0,0 +1,14 @@ +package com.ambientaddons.utils.dungeon + +enum class TextStyle { + Default, Shadow, Outline; + + companion object { + fun fromInt(number: Int): TextStyle? = when (number) { + 0 -> Default + 1 -> Shadow + 2 -> Outline + else -> null + } + } +} \ No newline at end of file -- cgit