mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
24 lines
441 B
Lua
24 lines
441 B
Lua
local icons = asset.resource({
|
|
Name = "Icons",
|
|
Type = "HttpSynchronization",
|
|
Identifier = "icons",
|
|
Version = 1
|
|
})
|
|
|
|
|
|
local marker = {
|
|
Identifier = "target-marker",
|
|
Name = "Target Marker",
|
|
Type = "ScreenSpaceImageLocal",
|
|
TexturePath = icons .. "target.png"
|
|
}
|
|
|
|
|
|
asset.onInitialize(function()
|
|
openspace.addScreenSpaceRenderable(marker)
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.removeScreenSpaceRenderable(marker)
|
|
end)
|