mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 19:14:05 +09:00
mod icons
This commit is contained in:
BIN
assets/mods/basegame/icon.png
LFS
Normal file
BIN
assets/mods/basegame/icon.png
LFS
Normal file
Binary file not shown.
BIN
assets/mods/dwarventech/icon.png
LFS
Normal file
BIN
assets/mods/dwarventech/icon.png
LFS
Normal file
Binary file not shown.
@@ -46,6 +46,7 @@ object ModMgr {
|
|||||||
data class ModuleMetadata(
|
data class ModuleMetadata(
|
||||||
val order: Int,
|
val order: Int,
|
||||||
val isDir: Boolean,
|
val isDir: Boolean,
|
||||||
|
val iconFile: FileHandle,
|
||||||
val properName: String,
|
val properName: String,
|
||||||
val description: String,
|
val description: String,
|
||||||
val author: String,
|
val author: String,
|
||||||
@@ -131,7 +132,7 @@ object ModMgr {
|
|||||||
val jar = modMetadata.getProperty("jar")
|
val jar = modMetadata.getProperty("jar")
|
||||||
val dependency = modMetadata.getProperty("dependency").split(Regex(""";[ ]*""")).toTypedArray()
|
val dependency = modMetadata.getProperty("dependency").split(Regex(""";[ ]*""")).toTypedArray()
|
||||||
val isDir = FileSystems.getDefault().getPath("$modDir/$moduleName").toFile().isDirectory
|
val isDir = FileSystems.getDefault().getPath("$modDir/$moduleName").toFile().isDirectory
|
||||||
moduleInfo[moduleName] = ModuleMetadata(index, isDir, properName, description, author, packageName, entryPoint, releaseDate, version, jar, dependency)
|
moduleInfo[moduleName] = ModuleMetadata(index, isDir, Gdx.files.internal("$modDir/$moduleName/icon.png"), properName, description, author, packageName, entryPoint, releaseDate, version, jar, dependency)
|
||||||
|
|
||||||
printdbg(this, moduleInfo[moduleName])
|
printdbg(this, moduleInfo[moduleName])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user