mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 03:24:06 +09:00
fixed a bug properties view won't show scroll bars
This commit is contained in:
@@ -160,7 +160,9 @@ class ADPropertyObject(propertyRaw: String) {
|
|||||||
fun isADstring(property: String) = !isADvariable(property)
|
fun isADstring(property: String) = !isADvariable(property)
|
||||||
}
|
}
|
||||||
|
|
||||||
data class Vector2i(var x: Int, var y: Int)
|
data class Vector2i(var x: Int, var y: Int) {
|
||||||
|
override fun toString() = "$x, $y"
|
||||||
|
}
|
||||||
|
|
||||||
enum class ADPropertyType {
|
enum class ADPropertyType {
|
||||||
NAME_ONLY, // "sprite/test.tga" to nothing
|
NAME_ONLY, // "sprite/test.tga" to nothing
|
||||||
|
|||||||
@@ -101,8 +101,6 @@ class SpriteAssemblerApp : JFrame() {
|
|||||||
panelPartsList.add("Skeletons", JScrollPane(panelSkeletonsList))
|
panelPartsList.add("Skeletons", JScrollPane(panelSkeletonsList))
|
||||||
|
|
||||||
val panelDataView = JSplitPane(JSplitPane.VERTICAL_SPLIT, JScrollPane(panelProperties), panelPartsList)
|
val panelDataView = JSplitPane(JSplitPane.VERTICAL_SPLIT, JScrollPane(panelProperties), panelPartsList)
|
||||||
panelProperties.preferredSize = Dimension(1, 300)
|
|
||||||
panelPartsList.preferredSize = Dimension(1, 200)
|
|
||||||
|
|
||||||
val panelTop = JSplitPane(JSplitPane.HORIZONTAL_SPLIT, JScrollPane(panelPreview), panelDataView)
|
val panelTop = JSplitPane(JSplitPane.HORIZONTAL_SPLIT, JScrollPane(panelPreview), panelDataView)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user