Change the asset keys
This commit is contained in:
@@ -167,7 +167,7 @@ export abstract class GuiMenuScreen extends GuiScreen {
|
||||
} else if (slot.icon) {
|
||||
// where an item's sprite would be
|
||||
const icon = get_sprite_region(slot.icon);
|
||||
const atlas = AssetManager.instance.get<Texture>("bworld:textures");
|
||||
const atlas = AssetManager.instance.get<Texture>("cubi:textures");
|
||||
const [x, y, size] = [this.#slot_x(slot) + 3, this.#slot_y(slot) + 3, SLOT_SIZE - 6];
|
||||
draw_texture_region(atlas, icon.x, icon.y, icon.width, icon.height, x, y, size, size);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user