You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
454 B
Kotlin
22 lines
454 B
Kotlin
2 years ago
|
package com.last.commit.config
|
||
|
|
||
|
import com.badlogic.gdx.assets.AssetManager
|
||
|
import com.badlogic.gdx.graphics.Texture
|
||
|
import com.badlogic.gdx.scenes.scene2d.ui.Skin
|
||
|
|
||
|
class TimeTravelAssetManager : AssetManager() {
|
||
|
|
||
|
val UI_TEXTURE_PATH = "ui/uiskin.json"
|
||
|
|
||
|
init {
|
||
|
loadTextures()
|
||
|
}
|
||
|
|
||
|
fun loadTextures() {
|
||
|
load(UI_TEXTURE_PATH, Skin::class.java)
|
||
|
}
|
||
|
|
||
|
fun getUiTexture() : Skin {
|
||
|
return get(UI_TEXTURE_PATH)
|
||
|
}
|
||
|
}
|