Lua and UI Reference (Civ5): Difference between revisions
(Bot update) |
No edit summary |
||
Line 3: | Line 3: | ||
= 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 = | ||
{|cellspacing="0" cellpadding="0" | {|cellspacing="0" cellpadding="0" | ||
|- | |- | ||
|valign="top" width="200"| | |valign="top" width="200"| | ||
* [[Civ5 API Reference FAQ]] | * [[Civ5 API Reference FAQ]] | ||
* [[ | * [[Debugging Lua (Civ5)]] | ||
* [[Map and terrain (Civ5)|Map and terrain]] | * [[Map and terrain (Civ5)|Map and terrain]] | ||
* [[Map scripts (Civ5)|Map scripts]] | * [[Map scripts (Civ5)|Map scripts]] | ||
Line 20: | Line 22: | ||
* [[Text icons and markups (Civ5)|Text icons and markups]] | * [[Text icons and markups (Civ5)|Text icons and markups]] | ||
* [[VFS (Civ5)|VFS]] | * [[VFS (Civ5)|VFS]] | ||
|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] | |||
|} | |} | ||
Revision as of 08:23, 20 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
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.