mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-10 22:01:52 +09:00
slightly more detailed errormsg
This commit is contained in:
@@ -63,6 +63,15 @@ pre {
|
||||
border-radius: 3px;
|
||||
padding: 3px 6px;
|
||||
}
|
||||
|
||||
small {
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
emph {
|
||||
font-style: italic;
|
||||
color: #777;
|
||||
}
|
||||
"""
|
||||
|
||||
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 {
|
||||
val border = JPanel()
|
||||
border.layout = BorderLayout(18,18)
|
||||
@@ -124,7 +138,11 @@ pre {
|
||||
|
||||
printStream.println("<h3>Module Info</h3>")
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user