Code: Select all
function widget:GetInfo()
return {
name = "GeoVent Texture Placer",
desc = "Places Geovent Textures",
author = "Forboding Angel",
date = "03/30/2012",
license = "Public Domain",
layer = 0,
enabled = true -- loaded by default?
}
end
local function geoTextures()
local features = Spring.GetAllFeatures()
for i = 1, #features do
local fID = features[i]
if FeatureDefs[Spring.GetFeatureDefID(fID)].geoThermal then
local fx, fy, fz = Spring.GetFeaturePosition(fID)
--place texture on map here
end
end
end
--place texture on map here << This line is where the code for actually drawing the image should go, but I don't have the foggiest idea how to do it. Anyone feel like taking a stab at it?