Lua and UI Reference (Civ5): Difference between revisions
(Bot update) |
No edit summary |
||
(9 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Civ5 API Beta Banner}} | {{Civ5 API Beta Banner}} | ||
= Lua = | = Lua = | ||
* [[Specificities of the Lua implementation in Civ5]] | |||
* [[Lua introduction for confirmed developers]] | * [[Lua introduction for confirmed developers]] | ||
* [http://sourceforge.net/apps/mediawiki/civ4bug/index.php?title=Python_to_Lua Lua introduction for Python developers] | |||
* [http://www.lua.org/manual/5.1/ Lua reference] | * [http://www.lua.org/manual/5.1/ Lua reference] | ||
* [http://www.lua.org/pil/index.html Lua manual] | * [http://www.lua.org/pil/index.html Lua manual] | ||
= Articles = | = Articles and tutorials = | ||
See also [[Civ5 Modding Tutorials|Modding Tutorials]]. | |||
{|cellspacing="0" cellpadding="0" | {|cellspacing="0" cellpadding="0" | ||
|- | |- | ||
|valign="top" width="200"| | |valign="top" width="200"| | ||
* [[Civ5 API FAQ]] | |||
* [[Civ5 API Reference FAQ]] | * [[Civ5 API Reference FAQ]] | ||
* [[ | * [[Lua Libraries for Civ5]] | ||
|valign="top" width="200"| | |||
* [[Map and terrain (Civ5)|Map and terrain]] | * [[Map and terrain (Civ5)|Map and terrain]] | ||
* [[ | * [[Persisting data (Civ5)|Persisting data]] | ||
|valign="top | |valign="top"| | ||
* [ | * [http://forums.civfanatics.com/showthread.php?p=11575962 Adding en entry to the DiploCorner menu] | ||
* [ | * [http://forums.civfanatics.com/showthread.php?t=399743 UI: an introduction] | ||
* [ | * [http://forums.civfanatics.com/showthread.php?t=461552 UI: a complete guide] | ||
|} | |} | ||
Line 40: | Line 44: | ||
* {{Type5|ContentManager}} | * {{Type5|ContentManager}} | ||
* {{Type5|Game}} | * {{Type5|Game}} | ||
* {{Type5|Locale}} | * {{Type5|Locale}} | ||
* {{Type5|Map}} | * {{Type5|Map}} |
Latest revision as of 04:07, 26 December 2012
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.