Description
Widget that provides dynamic placement of metal spots based on metal map.
--------------------------------------------------------------------------------
--
-- file: ..
-- brief: Lua metal spots for *A mods. Credits to Niobium for metal finder. Place a .lmf file in map archive to enable support.
--
-- usage:
-- Step 1. Create a [mapname].lmf file in [mapname].sd7/maps/. The first line should be a relative path inside the spring directory in which to search for metal textures in.
-- The last three lines indicate rgb tint in the range of 0.0 to 1.0, and must be present.
-- Example .lmf file:
--
-- line 1: ./maps/textures/
-- line 2: 1.0
-- line 3: 1.0
-- line 4: 1.0
--
-- Step 2. Create a /textures/ folder in the archive and place metal spot textures there. In the example above they should be named "metal_high.png", "metal_medhigh.png", "metal_med.png", "metal_low.png".
--
--
-- Changelog:
-- v3.3
-- * fixed issues with archive loading
-- v3.2
-- * fixed drawing on sloped terrain
-- * randomness and multiple textures is broken
--
-- v3.1
-- * fixed depth testing issue
--
-- v3
-- * changed to Niobium metal finder with mass metal detection.
--
-- v2
-- * added display lists
-- * added loading metal maps from file
--
--
-- author: Jahziah Wagner
--
-- Copyright (C) 2010.
-- Licensed under the terms of the LGPL