2025-08-02 22:52 CEST

spring: develop b8b91588 Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
trepan trepan develop 2006-09-28 17:46:20 develop 82d0c37b
Changeset * Added IconLayoutHandler
  - this enables the use of LUA scripts to control the control panel layout,
    button texturing, button relabelling (including modal parameters), command
    removal, command hiding, etc...
  - there are a bunch of C callbacks available to LUA to acquire game state data

  *** The C callbacks still need a little work ***

* Moved lua_State, and the lua Game, UnitDefs, and WeaponsDefs into
  the LuaState singleton (from KeyAutoBinder, to share with IconLayoutHandler)

* Added frameAlpha, textureAlpha, and dropShadows to "ctrlpanel.txt"
* Did a bunch of cleanup around the GuiHandler Draw commands

* Fixed activePage inconsistency when dealing with more than 1 builder

* Added "/echo <text>" command
* Added "/layout <action>" command
* Added "/selectunits [clear] [+unitID] [-unitID] ..." command (for LUA)

* Added the /font command
* Improved font handling for chars >= 128
* Added [FontFile=Luxi.ttf] config parameter
* Added [FontCharFirst=32] config parameter
* Added [FontCharLast=223] config parameter
* Made the CalcTextWidth() and CalcTextHeight() calls aware of color codes

* Sync'ed the ICON_MODE change display across the network

* Added a couple of spaces around the On and Off labels

* Started using CommandDescription.iconname rather than the old iconMap

* Added CMDTYPE_CUSTOM
* Added CommandDescription.onlyTexture


git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@2299 37977431-3df6-0310-b722-df95706aa16b
mod - game/ctrlpanel.txt Diff ] File ]
mod - rts/Game/Game.cpp Diff ] File ]
mod - rts/Game/SelectedUnits.cpp Diff ] File ]
mod - rts/Game/UI/GuiHandler.cpp Diff ] File ]
mod - rts/Game/UI/GuiHandler.h Diff ] File ]
add - rts/Game/UI/IconLayoutHandler.cpp Diff ] File ]
add - rts/Game/UI/IconLayoutHandler.h Diff ] File ]
mod - rts/Game/UI/KeyAutoBinder.cpp Diff ] File ]
mod - rts/Game/UI/KeyAutoBinder.h Diff ] File ]
add - rts/Game/UI/LuaState.cpp Diff ] File ]
add - rts/Game/UI/LuaState.h Diff ] File ]
mod - rts/Game/UI/OutlineFont.cpp Diff ] File ]
mod - rts/Game/command.cpp Diff ] File ]
mod - rts/Game/command.h Diff ] File ]
mod - rts/Rendering/glFont.cpp Diff ] File ]
mod - rts/Rendering/glFont.h Diff ] File ]
mod - rts/Sim/Units/CommandAI/AirCAI.cpp Diff ] File ]
mod - rts/Sim/Units/CommandAI/CommandAI.cpp Diff ] File ]
mod - rts/Sim/Units/CommandAI/MobileCAI.cpp Diff ] File ]
mod - rts/System/Main.cpp Diff ] File ]