source: branches/BAR/luarules/gadgets/gfx_arm_atlas_loader.lua @ 5877

Revision 3950, 724 bytes checked in by Bluestone, 4 years ago (diff)

mass tabs->whitespace replacement

Line 
1
2function gadget:GetInfo()
3    return {
4        name    = 'Arm Atlas Loader',
5        desc    = 'Forces the arm atlas to be loaded',
6        author    = 'Bluestone',
7        date    = '',
8        license    = 'GNU GPL v3',
9        layer    = 0,
10        enabled    = true,
11    }
12end
13
14-- this is a bit of a hack!
15
16if gadgetHandler:IsSyncedCode() then return false end
17
18local n = 0
19local ARMCOM = UnitDefNames["armcom"].id
20
21function gadget:DrawWorld()
22    n  = n + 1
23
24    if n==1 then
25        gl.PushMatrix()
26            gl.Translate(-1000, -1000, -1000)
27            gl.UnitShape(ARMCOM, 0)
28        gl.PopMatrix()
29    end
30   
31    if n>1 then
32        gadgetHandler:RemoveGadget()
33    end
34
35end
Note: See TracBrowser for help on using the repository browser.