Bestiary room pictures from the high-res atlas in the high-res style
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0ada04f4fb
commit
37e5250c52
2 files changed
+3
-2
No files matched your search
@@ -178,7 +178,8 @@ impl Menu {
|
||||
Entry::Rank(l) => draw_sprite(gfx, EK::Ogre, l, x + k, y + k, pic),
|
||||
Entry::Building(i) => {
|
||||
let icon = tool_info(TOOLS[i]).icon;
|
||||
draw_texture_ex(&gfx.atlas, x + k * 2.0, y + k * 2.0, WHITE, DrawTextureParams { source: Some(Gfx::cell(icon)), dest_size: Some(vec2(pic - 2.0 * k, pic - 2.0 * k)), ..Default::default() });
|
||||
// (draw_cell: the high-res style shows the high-res atlas)
|
||||
gfx.draw_cell(icon, x + k * 2.0, y + k * 2.0, pic - 2.0 * k, pic - 2.0 * k, WHITE);
|
||||
}
|
||||
}
|
||||
// level selector with the rank badge under the picture
|
||||
|
||||
Reference in new issue
Block a user