@@ -23,17 +23,20 @@ class LayoutExecutor(
23
23
if (texture == null ) {
24
24
return
25
25
}
26
- spriteBatch.draw(texture, x.toFloat() , y.toFloat())
26
+ // fixme: quake hud coordinates have different texture origin
27
+ spriteBatch.draw(texture, x.toFloat() , y.toFloat() - texture.height)
27
28
}
28
29
29
30
// Example stub for a text-drawing operation.
30
31
private fun drawText (x : Int , y : Int , text : String? , alt : Boolean ) {
31
- println (" Drawing $text at $x , $y alt=$alt " )
32
+ // println("Drawing $text at $x, $y alt=$alt")
33
+ // todo
32
34
}
33
35
34
36
// Example stub for drawing a numeric field.
35
37
private fun drawNumber (x : Int , y : Int , value : Short , width : Int , color : Int ) {
36
- println (" Drawing $value at $x , $y width=$width color=$color " )
38
+ // println("Drawing $value at $x, $y width=$width color=$color")
39
+ // todo
37
40
}
38
41
39
42
/* *
@@ -64,8 +67,6 @@ class LayoutExecutor(
64
67
return
65
68
}
66
69
67
- println (" Executing layout: $layout " )
68
-
69
70
// Variables to track current position and field width.
70
71
var x = 0
71
72
var y = 0
@@ -95,7 +96,6 @@ class LayoutExecutor(
95
96
val statIndex = tokens.removeFirst().toInt()
96
97
val imageIndex = stats[statIndex]
97
98
gameConfig[Defines .CS_IMAGES + imageIndex.toInt()]?.let {
98
- println (" Drawing ${it.value} at $x , $y " )
99
99
drawImage(x, y, it.resource as ? Texture )
100
100
}
101
101
}
0 commit comments