[orx-gui] Add windowClosable to WindowedGUI
This commit is contained in:
@@ -11,7 +11,8 @@ private val childWindows = mutableMapOf<Long, ApplicationWindow>()
|
|||||||
|
|
||||||
class WindowedGUI(
|
class WindowedGUI(
|
||||||
val appearance: GUIAppearance = GUIAppearance(),
|
val appearance: GUIAppearance = GUIAppearance(),
|
||||||
val defaultStyles: List<StyleSheet> = defaultStyles()
|
val defaultStyles: List<StyleSheet> = defaultStyles(),
|
||||||
|
val windowClosable: Boolean = false,
|
||||||
) : Extension {
|
) : Extension {
|
||||||
override var enabled: Boolean = true
|
override var enabled: Boolean = true
|
||||||
|
|
||||||
@@ -41,7 +42,8 @@ class WindowedGUI(
|
|||||||
val cw = childWindows.getOrPut(Driver.instance.contextID) {
|
val cw = childWindows.getOrPut(Driver.instance.contextID) {
|
||||||
program.window(
|
program.window(
|
||||||
WindowConfiguration(
|
WindowConfiguration(
|
||||||
width = 200,
|
closable = windowClosable,
|
||||||
|
width = appearance.barWidth,
|
||||||
height = program.height,
|
height = program.height,
|
||||||
position = program.window.position.toInt() - IntVector2(200, 0)
|
position = program.window.position.toInt() - IntVector2(200, 0)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user