Commit c33b0688 authored by ryoii's avatar ryoii

Graphic daily dev a little bit

parent f41b8315
...@@ -25,8 +25,6 @@ class MiraiGraphicalUIController : Controller(), MiraiConsoleUI { ...@@ -25,8 +25,6 @@ class MiraiGraphicalUIController : Controller(), MiraiConsoleUI {
val botList = observableListOf<BotModel>() val botList = observableListOf<BotModel>()
val pluginList: ObservableList<PluginModel> by lazy(::getPluginsFromConsole) val pluginList: ObservableList<PluginModel> by lazy(::getPluginsFromConsole)
// val consoleConfig : Map<String, Any> by lazy(::getConfigFromConsole)
val consoleInfo = ConsoleInfo() val consoleInfo = ConsoleInfo()
fun login(qq: String, psd: String) { fun login(qq: String, psd: String) {
......
package net.mamoe.mirai.console.graphical.view package net.mamoe.mirai.console.graphical.view
import net.mamoe.mirai.console.graphical.controller.MiraiGraphicalUIController import net.mamoe.mirai.console.graphical.controller.MiraiGraphicalUIController
import net.mamoe.mirai.console.graphical.util.jfxButton
import net.mamoe.mirai.console.graphical.util.jfxTextfield import net.mamoe.mirai.console.graphical.util.jfxTextfield
import tornadofx.View import tornadofx.*
import tornadofx.field
import tornadofx.fieldset
import tornadofx.form
class SettingsView : View() { class SettingsView : View() {
private val controller = find<MiraiGraphicalUIController>() private val controller = find<MiraiGraphicalUIController>()
override val root = form { override val root = form {
// controller.consoleConfig.forEach {
// fieldset { fieldset {
// field(it.key) { field {
// jfxTextfield(it.value.toString()) { isEditable = false } jfxButton("撤掉") { }
// } jfxButton("保存") { }
// } }
// } }
fieldset("插件目录") {
field {
jfxTextfield("...") { isEditable = false }
jfxButton("打开目录")
}
}
fieldset("最大日志容量") {
field {
jfxTextfield("...") {
}
}
}
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment