nsmenu to invoke class with defined args; working settime on buildingmaker

This commit is contained in:
minjaesong
2019-01-31 18:01:33 +09:00
parent 1610b63672
commit 6d19347dfb
5 changed files with 43 additions and 10 deletions

View File

@@ -50,6 +50,8 @@ class UINSMenu(
val selectedIndex: Int?
get() = listStack.peek().ui.selectedIndex
var invocationArgument: Array<Any> = arrayOf(this)
init {
addSubMenu(tree)
}
@@ -102,7 +104,7 @@ class UINSMenu(
// invoke whatever command there is
//printdbg(this, "Selected: ${tree.children[new].data?.second}")
tree.children[new].data?.second?.invoke()
tree.children[new].data?.second?.invoke(invocationArgument)
}
// END List selection change listener