You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 24, 2026. It is now read-only.
if (Gdx.input.isButtonPressed(Input.Buttons.LEFT)) {
45
+
if (Gdx.input.x /2f> x && (Gdx.graphics.height -Gdx.input.y) /2f> y &&Gdx.input.x /2f< x + width && (Gdx.graphics.height -Gdx.input.y) /2f< y + height) {
y +10+ (height -9) /2f- font.lineHeight /2f+6- (if (pressed) 2else0)
82
+
)
83
+
}
84
+
85
+
privatefunenabled() =
86
+
if (Gdx.input.x /2f> x && (Gdx.graphics.height -Gdx.input.y) /2f> y &&Gdx.input.x /2f< x + width && (Gdx.graphics.height -Gdx.input.y) /2f< y + height) {
87
+
if (selected) ninePatchHoverSelect else ninePatchHover
88
+
} elseif (selected) {
89
+
ninePatchSelect
90
+
} else {
91
+
ninePatch
92
+
}
93
+
privatefunpressed() =
94
+
if (Gdx.input.x /2f> x && (Gdx.graphics.height -Gdx.input.y) /2f> y &&Gdx.input.x /2f< x + width && (Gdx.graphics.height -Gdx.input.y) /2f< y + height) {
95
+
if (selected) ninePatchHoverPressedSelect else ninePatchHoverPressed
if (Gdx.input.isButtonPressed(Input.Buttons.LEFT)) {
89
-
if (Gdx.input.x /2f> x && (Gdx.graphics.height -Gdx.input.y) /2f> y &&Gdx.input.x /2f< x + width && (Gdx.graphics.height -Gdx.input.y) /2f< y + height) {
y +10+ (height -9) /2f- font.lineHeight /2f+6- (if (pressed) 2else0)
126
-
)
127
-
}
128
-
129
-
privatefunenabled() =
130
-
if (Gdx.input.x /2f> x && (Gdx.graphics.height -Gdx.input.y) /2f> y &&Gdx.input.x /2f< x + width && (Gdx.graphics.height -Gdx.input.y) /2f< y + height) {
131
-
if (selected) ninePatchHoverSelect else ninePatchHover
132
-
} elseif (selected) {
133
-
ninePatchSelect
134
-
} else {
135
-
ninePatch
136
-
}
137
-
privatefunpressed() =
138
-
if (Gdx.input.x /2f> x && (Gdx.graphics.height -Gdx.input.y) /2f> y &&Gdx.input.x /2f< x + width && (Gdx.graphics.height -Gdx.input.y) /2f< y + height) {
139
-
if (selected) ninePatchHoverPressedSelect else ninePatchHoverPressed
140
-
} elseif (selected) {
141
-
ninePatchPressedSelect
142
-
} else {
143
-
ninePatchPressed
144
-
}
145
-
}
146
-
147
41
var layout:GlyphLayout=GlyphLayout()
148
42
149
-
privatefun BitmapFont.width(text:String): Float {
43
+
fun BitmapFont.width(text:String): Float {
150
44
layout.setText(this, text)
151
45
return layout.width
152
46
}
@@ -161,26 +55,29 @@ private fun launchGame(version: GameVersion, button: Button): Process {
161
55
}
162
56
163
57
try {
164
-
returnif (version.id in arrayOf("0.0.0-indev", "0.0.1-indev") || version isChannelVersion) {
0 commit comments