Code: Select all
/c game.player.gui.top.add{type="sprite", sprite="file/__base__/graphics/icons/alien-artifact-goo.png", name="button"}
/c game.player.gui.top.add{type="sprite", sprite="file/graphics/icons/alien-artifact-goo.png", name="button2"}
Code: Select all
/c game.player.gui.top.add{type="sprite", sprite="file/__base__/graphics/icons/alien-artifact-goo.png", name="button"}
/c game.player.gui.top.add{type="sprite", sprite="file/graphics/icons/alien-artifact-goo.png", name="button2"}
Code: Select all
/c game.player.gui.top.add{type="sprite-button", sprite="file/__base__/graphics/icons/alien-artifact-goo.png", name="button"}
Code: Select all
/c game.print(game.player.gui.is_valid_sprite_path("file"))
Code: Select all
/c game.print(game.player.gui.is_valid_sprite_path("file/"))
Code: Select all
/c game.print(game.player.gui.is_valid_sprite_path("file/__core__"))
Code: Select all
/c game.print(game.player.gui.is_valid_sprite_path("file/__core__/questionmark"))
Code: Select all
/c game.print(game.player.gui.is_valid_sprite_path("file/__core__/graphics/questionmark"))
No, you define a sprite: https://github.com/Bilka2/Quill/blob/master/data.lua#L3sparr wrote:So if an image file is not used by any sprite-ful prototype then to use that icon as a button sprite you might need to make a new item with a sprite of that file, then reference that item/itemname for your sprite?