31 lines
1.0 KiB
Kotlin
31 lines
1.0 KiB
Kotlin
package org.hso.texturesyncclient.controller
|
|
|
|
import org.hso.texturesyncclient.controller.net.Connection
|
|
import org.hso.texturesyncclient.model.GUIModel
|
|
import org.hso.texturesyncclient.model.Texture
|
|
import org.hso.texturesyncclient.view.importView.ImportViewController
|
|
import org.hso.texturesyncclient.view.mainView.MainViewController
|
|
import org.hso.texturesyncclient.view.startupView.StartupViewController
|
|
import tornadofx.Controller
|
|
import java.net.InetAddress
|
|
|
|
class Controller : Controller() {
|
|
|
|
private val mvc: MainViewController by inject()
|
|
private val svc: StartupViewController by inject()
|
|
private val ivc: ImportViewController by inject()
|
|
|
|
private val con = Connection(InetAddress.getByName("127.0.0.1"))
|
|
init {
|
|
/*var data = Texture()
|
|
var img = con.getTexturePreview(data.textureHash)
|
|
var test = GUIModel(data, img)
|
|
mvc.addElement(test)
|
|
|
|
data = Texture()
|
|
img = con.getTexturePreview(data.textureHash)
|
|
test = GUIModel(data, img)
|
|
mvc.addElement(test)*/
|
|
|
|
}
|
|
} |