Lua and UI Reference (Civ5): Difference between revisions
No edit summary |
mNo edit summary |
||
Line 17: | Line 17: | ||
* [[Civ5 API FAQ]] | * [[Civ5 API FAQ]] | ||
* [[Civ5 API Reference FAQ]] | * [[Civ5 API Reference FAQ]] | ||
* [[Lua Libraries | * [[Lua Libraries for Civ5]] | ||
|valign="top" width="200"| | |valign="top" width="200"| | ||
* [[Map and terrain (Civ5)|Map and terrain]] | * [[Map and terrain (Civ5)|Map and terrain]] |
Revision as of 14:55, 22 September 2012
The old version of this page is available here: Lua and UI Reference (old version).
Lua
- Specificities of the Lua implementation in Civ5
- Lua introduction for confirmed developers
- Lua introduction for Python developers
- Lua reference
- Lua manual
Articles and tutorials
See also Modding Tutorials.
API
Objects
Static objects |
|
|
|
UI Controls
See also Common UI Properties.
|
|
|
|
Lua Objects
Those objects are defined in Lua files and can be used through an include
statement.
Structures
Those objects are regular Lua tables that only contain named fields but no methods.
Objects identifiers
Those identifiers are regular integers that identify objects.
Constants identifiers
Those identifiers are regular integers associated with the constants defined in Lua enumerations.
|
|
|
| |
ActionSubTypes
|
GameTypes
| |||
ActivityTypes
|
GenericWorldAnchorTypes
| |||
AdvisorTypes
|
InfoCornerID
| |||
ButtonPopupTypes
|
InterfaceDirtyBits
| |||
ButtonStates
|
KeyEvents
| |||
ChatTargetTypes
|
Keys
| |||
CityAIFocusTypes
|
LeaderheadAnimationTypes
| |||
CityUpdateTypes
|
MajorCivApproachTypes
| |||
CombatPredictionTypes
|
MinorCivPersonalityTypes
| |||
CommandTypes
|
MinorCivQuestTypes
| |||
ContentType
|
MouseEvents
| |||
ControlTypes
|
Mouse
| |||
CoopWarStates
|
NetErrors
| |||
FromUIDiploEventTypes
|
NetKicked
| |||
DiploUIStateTypes
|
OrderTypes
| |||
DirectionTypes
|
PlotTypes
| |||
DisputeLevelTypes
|
PopupPriority
| |||
EndGameTypes
|
ResourceUsageTypes
| |||
EndTurnBlockingTypes
|
SlotClaim
| |||
FaithPurchaseTypes
|
SlotStatus
| |||
FlowDirectionTypes
|
SystemUpdateUIType
| |||
FogOfWarModeTypes
|
TaskTypes
| |||
GameMessageTypes
|
ThreatTypes
| |||
GameOptionTypes
|
TradeableItems
| |||
GameplayGameStateTypes
|
YieldDisplayTypes
| |||
GameStateTypes
|
Data identifiers
Those identifiers are regular integers that identify the data rows defined in the XML data files.
|
|
|
Commands | ||
ArtStyleTypes | ||
Automates | ||
Beliefs | BeliefTypes
| |
Builds | ||
BuildingClasses | ||
Buildings | ||
Calendars | ||
Civilizations | ||
Climates | ||
Colors | ||
Diplomacy_Responses | ||
Domains | DomainTypes
| |
Eras | ||
Features | FeatureTypes
| |
Flavors | ||
GameSpeeds | ||
GoodyHuts | ||
HandicapInfos | ||
HurryInfos | ||
Improvements | ||
InterfaceModes | InterfaceModeTypes
| |
InvisibleInfos | ||
Civilization_Leaders | ||
MinorCivTraits | MinorCivTraitTypes
| |
Missions | MissionTypes
| |
MultiplayerOptions | ||
Notifications | NotificationTypes
| |
PlayerOptions | ||
PolicyBranchTypes | PolicyBranchTypes
| |
Policies | ||
Processes | ||
Projects | ||
UnitPromotions | ||
Religions | ReligionTypes
| |
ReplayDataSets | ||
Resources | ||
Routes | ||
Specialists | ||
SpecialUnits | ||
Technologies | ||
Terrains | TerrainTypes
| |
UnitAIInfos | ||
UnitClasses | ||
UnitCombatInfos | ||
Units | ||
Victories | ||
VoteSources | ||
Votes | ||
Yields | YieldTypes
|
Categories
- Civ5 Types
- Civ5 Methods and Functions
- Civ5 Thematic Categories: Terrain
- Civ5 Thematic Categories: Development
- Civ5 Thematic Categories: Units
- Civ5 Thematic Categories: Diplomacy
- Civ5 Thematic Categories: General
Contributing
The initial version of this page was created by the Civ5 API Bot, see the Civ5 API Reference FAQ. Some of the texts come from the 2kgames' wiki and most of code samples are copyrighted to Firaxis.
Functions' signatures were either copied from the 2kgames' wiki, or infered from the Lua source files and the binaries. Errors are possible.
Contributors may find help in the Contributors guide to the Civ5 API.