mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 12:34:05 +09:00
slightly more detailed errormsg
This commit is contained in:
@@ -63,6 +63,15 @@ pre {
|
|||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
padding: 3px 6px;
|
padding: 3px 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
small {
|
||||||
|
font-size: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
emph {
|
||||||
|
font-style: italic;
|
||||||
|
color: #777;
|
||||||
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
private val printStream = object : PrintStream(outputStream) {
|
private val printStream = object : PrintStream(outputStream) {
|
||||||
@@ -71,6 +80,11 @@ pre {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun moduleMetaToText(m: ModMgr.ModuleMetadata?) = if (m == null)
|
||||||
|
"<emph>metadata not available or the mod failed to load</emph>"
|
||||||
|
else
|
||||||
|
"author: ${m.author}, version: ${m.version}, release date: ${m.releaseDate}, dependencies: ${m.dependencies.joinToString("/")}"
|
||||||
|
|
||||||
init {
|
init {
|
||||||
val border = JPanel()
|
val border = JPanel()
|
||||||
border.layout = BorderLayout(18,18)
|
border.layout = BorderLayout(18,18)
|
||||||
@@ -124,7 +138,11 @@ pre {
|
|||||||
|
|
||||||
printStream.println("<h3>Module Info</h3>")
|
printStream.println("<h3>Module Info</h3>")
|
||||||
printStream.println("<h4>Load Order</h4>")
|
printStream.println("<h4>Load Order</h4>")
|
||||||
printStream.println("<ol>${ModMgr.loadOrder.joinToString(separator = "") { "<li>$it</li>" }}</ol>")
|
printStream.println("<ol>${ModMgr.loadOrder.joinToString(separator = "") { "<li>" +
|
||||||
|
"$it <small>(" +
|
||||||
|
"${moduleMetaToText(ModMgr.moduleInfo[it] ?: ModMgr.moduleInfoErrored[it])}" +
|
||||||
|
")</small></li>" }
|
||||||
|
}</ol>")
|
||||||
|
|
||||||
|
|
||||||
ModMgr.errorLogs.let {
|
ModMgr.errorLogs.let {
|
||||||
|
|||||||
Reference in New Issue
Block a user