Add DisplayView and ConsoleView components, integrate them into MTMCView, and update styles and main initialization logic

This commit is contained in:
2025-08-15 14:27:31 +02:00
parent d5314ce046
commit 4b17ce3cf5
5 changed files with 97 additions and 10 deletions

View File

@@ -17,13 +17,15 @@ class HelloKomponent : Komponent() {
}
}
val computer = MonTanaMiniComputer()
val mainView = MTMCView(computer)
fun main() {
val computer = MonTanaMiniComputer()
computer.speed = 1 // default to 1hz
val view = MTMCView(computer)
Komponent.create(document.body!!, view)
Komponent.create(document.body!!, mainView)
computer.start()
//computer.start()
}