spring: develop 9af579c1 | [ Diff ] [ Back to Repository ] | |||
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
trepan | trepan | develop | 2008-05-24 14:55:54 | develop b392b427 |
Changeset | - updated IconHandler to load from 'gamedata/icontypes.lua' - added the 'gamedata/icontypes.lua' file - removed the 'usericons.tdf' file - added the following LuaUnsyncedCtrl call-outs: AddUnitIcon(string name, string texture [, number size[, number distance[, bool radiusAdjust]]]) FreeUnitIcon(string name) - added 'distSqr' into CIconData to avoid (d * d) dynamic calcs - replaced the UnitDef 'string iconType' with a refCounted pointer to a CIconData. This avoids the map search that was required to draw the icons NOTE: for even better performance, you'd probably want to generate a texture atlas, and change CIconData so that it could use a raw texture or the texture atlas (icons known at startup would go into the atlas) The CIconData class is already setup with its Draw() calls... - made UnitDef::iconType 'mutable' (less of tvo's HACK HACK) - updated ico_customicons.lua - changed FLOZi's sideData LuaParser commit to avoid the side string numbering (legacy format based on a TDF deficiency) - changed SideData 'commander' tag to 'startUnit' (and all related code uses startUnit now as well, less confusion with respect to the unitDef isCommander tag) - added a LuaParser constructor to load from a text chunk - added a parse_tdf.lua call to load from a text chunk - locked the reload and disable commands (for luaRules and luaGaia), to the host player (actually, player 0 -- be it man or machine) git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@5923 37977431-3df6-0310-b722-df95706aa16b |
|||
mod - AI/Global/NTai/AI/NTai/Agents/CManufacturer.cpp | [ Diff ] [ File ] | |||
mod - game/LuaUI/Widgets/ico_customicons.lua | [ Diff ] [ File ] | |||
rm - game/usericons.tdf | [ Diff ] [ File ] | |||
add - installer/builddata/springcontent/gamedata/icontypes.lua | [ Diff ] [ File ] | |||
mod - installer/builddata/springcontent/gamedata/parse_tdf.lua | [ Diff ] [ File ] | |||
mod - installer/builddata/springcontent/gamedata/sidedata.lua | [ Diff ] [ File ] | |||
mod - installer/make_luaui_nsh.py | [ Diff ] [ File ] | |||
mod - installer/sections/luaui.nsh | [ Diff ] [ File ] | |||
mod - rts/ExternalAI/AICallback.cpp | [ Diff ] [ File ] | |||
mod - rts/Game/Game.cpp | [ Diff ] [ File ] | |||
mod - rts/Game/StartScripts/CommanderScript.cpp | [ Diff ] [ File ] | |||
mod - rts/Game/StartScripts/CommanderScript2.cpp | [ Diff ] [ File ] | |||
mod - rts/Game/StartScripts/GlobalAITestScript.cpp | [ Diff ] [ File ] | |||
mod - rts/Game/StartScripts/SpawnScript.cpp | [ Diff ] [ File ] | |||
mod - rts/Game/UI/LuaUI.cpp | [ Diff ] [ File ] | |||
mod - rts/Game/UI/MiniMap.cpp | [ Diff ] [ File ] | |||
mod - rts/Game/UI/MiniMap.h | [ Diff ] [ File ] | |||
mod - rts/Lua/LuaHandle.cpp | [ Diff ] [ File ] | |||
mod - rts/Lua/LuaOpenGL.cpp | [ Diff ] [ File ] | |||
mod - rts/Lua/LuaParser.cpp | [ Diff ] [ File ] | |||
mod - rts/Lua/LuaParser.h | [ Diff ] [ File ] | |||
mod - rts/Lua/LuaUnitDefs.cpp | [ Diff ] [ File ] | |||
mod - rts/Lua/LuaUnsyncedCtrl.cpp | [ Diff ] [ File ] | |||
mod - rts/Lua/LuaUnsyncedCtrl.h | [ Diff ] [ File ] | |||
mod - rts/Lua/LuaUnsyncedRead.cpp | [ Diff ] [ File ] | |||
mod - rts/Lua/LuaWeaponDefs.cpp | [ Diff ] [ File ] | |||
add - rts/Rendering/Icon.h | [ Diff ] [ File ] | |||
mod - rts/Rendering/IconHandler.cpp | [ Diff ] [ File ] | |||
mod - rts/Rendering/IconHandler.h | [ Diff ] [ File ] | |||
mod - rts/Rendering/UnitModels/3DModelParser.h | [ Diff ] [ File ] | |||
mod - rts/Rendering/UnitModels/UnitDrawer.cpp | [ Diff ] [ File ] | |||
mod - rts/Sim/ModInfo.cpp | [ Diff ] [ File ] | |||
mod - rts/Sim/Units/Unit.cpp | [ Diff ] [ File ] | |||
mod - rts/Sim/Units/UnitDef.h | [ Diff ] [ File ] | |||
mod - rts/Sim/Units/UnitDefHandler.cpp | [ Diff ] [ File ] | |||
mod - rts/Sim/Units/UnitDefHandler.h | [ Diff ] [ File ] | |||
mod - tools/unitsync/unitsync.cpp | [ Diff ] [ File ] |