diff --git a/src/main/kotlin/net/shadowfacts/cacao/viewcontroller/TabViewController.kt b/src/main/kotlin/net/shadowfacts/cacao/viewcontroller/TabViewController.kt index e1d4ca0..4019b30 100644 --- a/src/main/kotlin/net/shadowfacts/cacao/viewcontroller/TabViewController.kt +++ b/src/main/kotlin/net/shadowfacts/cacao/viewcontroller/TabViewController.kt @@ -7,6 +7,7 @@ import net.shadowfacts.cacao.geometry.Axis import net.shadowfacts.cacao.geometry.Point import net.shadowfacts.cacao.geometry.Rect import net.shadowfacts.cacao.geometry.Size +import net.shadowfacts.cacao.util.Color import net.shadowfacts.cacao.util.MouseButton import net.shadowfacts.cacao.util.texture.NinePatchTexture import net.shadowfacts.cacao.util.texture.Texture @@ -239,7 +240,7 @@ class TabViewController( padding = 2.0 ) { companion object { - val BACKGROUND = Identifier("textures/gui/container/creative_inventory/tabs.png") + val BACKGROUND = Identifier("phycon:textures/gui/tabs.png") } private var selected = false @@ -293,7 +294,7 @@ class TabViewController( val u = when { superview == null -> 0 frame.left == 0.0 -> 0 - frame.right == superview!!.bounds.right -> 140 + frame.right == superview!!.bounds.right -> 56 else -> 28 } backgroundView.texture = Texture(BACKGROUND, u, v) diff --git a/src/main/resources/assets/phycon/textures/gui/tabs.png b/src/main/resources/assets/phycon/textures/gui/tabs.png new file mode 100644 index 0000000..1b50118 Binary files /dev/null and b/src/main/resources/assets/phycon/textures/gui/tabs.png differ