Image (Civ5 Type)
This page is a part of the Lua and UI Reference (Civ5).
New Properties
NoStateChange
- Format: Unknown.
- Usage: Unknown.
Sample
- Format: Unknown.
- Usage: Unknown.
Sampler
- Format: Unknown.
- Usage: Unknown.
Texture
- Format: Unknown.
- Usage: Unknown.
TextureOffset
- Format: Unknown.
- Usage: Unknown.
New Instance Methods
Methods are functions that belong to an object. Instance methods are invoked through a colon, as in caller:SomeMethod(<args>)
, where caller is an instance of Image.
A colon implictly passes the caller object as the first argument. That is, the former call is equivalent to this one: caller.SomeMethod(caller, <args>)
|
DoAutoSize()
| ||||
|
SetTextureAndResize(string lastBackgroundImage)
| ||||
string
|
GetText()
| ||||
|
SetTextureOffset(Vector2 questionOffset)
| ||||
|
LocalizeAndSetText(string name, int searchString = nil, string minFaithForProphet = nil, unknown arg3, unknown arg4, unknown arg5, unknown arg6, unknown arg7, unknown arg8, string arg9, unknown arg10, unknown arg11)
| ||||
|
RegisterCallback(MouseType OnSearchTextEnter, (void func(PolicyBranchType policyBranchIndex, UnitType y, Button button)) OnClose = nil)
| ||||
|
SetText(string localizedString)
| ||||
|
SetVoid1(OrderType MAINTAIN_GOLD)
|
Inherited from ControlBase
XML Properties: none.
|
BuildEntry(string arg0, table arg1)
| ||||
|
CalculateInternals()
| ||||
|
CalculateInternalSize()
| ||||
|
CalculateSize()
| ||||
|
ClearEntries()
| ||||
Button
|
GetButton()
| ||||
|
RegisterCheckHandler((void func(bool bIsChecked)) OnPolicyInfo)
| ||||
|
RegisterSelectionCallback((void func(FaithPurchaseType v1, int v2)) OnChatTarget)
| ||||
|
SetCheck(bool cityBanners)
| ||||
|
SetPercent(int percentDone)
| ||||
|
SetPercents(float productionProgressPercent, float productionProgressPlusThisTurnPercent)
| ||||
|
SetScrollValue(int arg0)
| ||||
|
SetTexture(string textureName)
| ||||
|
SetTextureOffsetVal(int arg0, int offset)
| ||||
|
UnloadTexture()
| ||||
|
SetVoid2(ProcessType process)
| ||||
|
SetVoids(ResourceType building, ResourceType addToList)
| ||||
string
|
GetText()
| ||||
|
LocalizeAndSetText(string name, int searchString = nil, string minFaithForProphet = nil, unknown arg3, unknown arg4, unknown arg5, unknown arg6, unknown arg7, unknown arg8, string arg9, unknown arg10, unknown arg11)
| ||||
|
RegisterCallback(MouseType OnSearchTextEnter, (void func(PolicyBranchType policyBranchIndex, UnitType y, Button button)) OnClose = nil)
| ||||
|
SetText(string localizedString)
| ||||
|
SetVoid1(OrderType MAINTAIN_GOLD)
|
Common
|
ChangeParent(Image parent)
| ||||
|
DestroyAllChildren()
| ||||
string
|
GetID()
| ||||
|
GetNumChildren
| ||||
|
IsDisabled
| ||||
|
ReleaseChild(WorldAnchor arg0)
| ||||
|
SetDisabled(bool disableBanners)
| ||||
|
SortChildren((void func(unknown a, unknown b)) SortFunction)
|
Layout
XML Properties: SizeOffsetAnchorAnchorSide
unknown, int
|
GetOffsetVal()
| ||||
int
|
GetOffsetX()
| ||||
int
|
GetOffsetY()
| ||||
Vector2
|
GetSize()
| ||||
int, int
|
GetSizeVal()
| ||||
int
|
GetSizeX()
| ||||
int
|
GetSizeY()
| ||||
|
ReprocessAnchoring()
| ||||
|
SetAnchor(string arg0)
| ||||
|
SetOffset(Vector2 offset)
| ||||
|
SetOffsetVal(int xOffset, int yOffset)
| ||||
|
SetOffsetX(int xOffset)
| ||||
|
SetOffsetY(int TOP_COMPENSATION)
| ||||
|
SetSize(table blockSize)
| ||||
|
SetSizeVal(int baseWidth, int newHeight)
| ||||
|
SetSizeX(int width)
| ||||
|
SetSizeY(int newSizeY)
|
Appearance
XML Properties: HiddenStyleNoClipColorBranchAlpha
|
BranchResetAnimation()
| ||||
|
CalculateVisibilityBox
| ||||
int
|
IsHidden()
| ||||
|
SetAlpha(float DimAlpha)
| ||||
|
SetColor(table fadeColor, int arg1)
| ||||
|
SetColorByName(string colorSet)
| ||||
|
SetColorChannel(int arg0, float arg1)
| ||||
|
SetColorVal(int arg0, int arg1 = nil, int arg2 = nil, int arg3 = nil)
| ||||
|
SetHide(int disablePolicies)
| ||||
|
SetNoClip
|
Interaction
XML Properties: NeedsMouseOverConsumeMouseConsumeMouseOverConsumeMouseWheelConsumeMouseButton
|
GetConsumeMouseButton
| ||||
|
GetConsumeMouseOver
| ||||
|
GetConsumeMouseWheel
| ||||
bool
|
HasMouseOver()
| ||||
|
SetConsumeMouseButton
| ||||
|
SetConsumeMouseOver(bool arg0)
| ||||
|
SetConsumeMouseWheel
|
Tool Tip
XML Properties: ToolTipToolTipType
|
EnableToolTip(bool arg0)
| ||||
|
GetToolTipString
| ||||
|
IsToolTipEnabled
| ||||
|
LocalizeAndSetToolTip(string description, string minFaithForProphet = nil, string threshold, string moodText, string spyRank, string spyName, string spyRank, string spyName, unknown arg8, unknown arg9, string arg10, unknown arg11, unknown arg12)
| ||||
|
SetToolTipCallback((void func(Slider control)) TipHandler)
| ||||
|
SetToolTipString(string foodToolTip)
| ||||
|
SetToolTipType(string arg0)
|
Source code samples
Too many occurences. Only 10 out of 4556 are listed.
CityView.xml
UI/InGame/CityView/CityView.xml
0019
|
<Image Anchor="C,C" Offset="0,0" TextureOffset="256.128" Texture="CitizenIcons512.dds" Size="128.128"/> |
CityView_small.xml (G&K)
DLC/Expansion/UI/InGame/CityView/CityView_small.xml
0214
|
<Image ID="TitlePanel" Anchor="C,T" Offset="0,36" Texture="assets\UI\Art\WorldView\CityNamePanel.dds" Size="512.128" ConsumeMouse="1"> |
CivilopediaScreen.xml (G&K)
DLC/Expansion/Scenarios/SteampunkScenario/CivilopediaScreen.xml
1277
|
<Image Anchor="C,T" AnchorSide="I.O" Offset="0,-14" Size="256,64" Texture="Top512IconTrim.dds" > |
DiploVotePopup.xml (G&K)
DLC/Expansion/UI/InGame/Popups/DiploVotePopup.xml
0007
|
<Image ID="CivIconBG" Size="45.45" Anchor="C,C" Offset="0,0" TextureOffset="77,0" Texture="CivIconBGSizes.dds"/> |
InstalledPanel.xml
UI/FrontEnd/Modding/InstalledPanel.xml
0068
|
<Image Anchor="L,T" Offset="0,0" Texture="HorizontalTrim.dds" Size="926.2" /> |
LoadMenu.xml
UI/FrontEnd/LoadMenu.xml
0093
|
<Image Anchor="C,C" Offset="0,0" Color="White.36" Size="360,410" Texture="MapAmerica512.dds" ID="LargeMapImage"/> |
ReligionOverview.xml (G&K)
DLC/Expansion/UI/InGame/Popups/ReligionOverview.xml
0221
|
<Image Anchor="L,C" AnchorSide="O.I" Offset="2,0" Texture="assets/UI/Art/Controls/9 Grids/SelectedUp.dds" Size="18,18" ID="WRSortByFounderImage" /> |
SocialPolicyPopup.xml
UI/InGame/Popups/SocialPolicyPopup.xml
0114
|
<Image Anchor="C,T" TextureOffset="0,0" Offset="0,0" Size="190,290" Color="255,255,255,255" Texture="Assets/UI/Art/Icons/SocialPoliciesLiberty.dds"/> |
StagingRoom.xml
UI/FrontEnd/Multiplayer/StagingRoom.xml
0383
|
<Image Anchor="C,B" Offset="0,0" Texture="bar300x2.dds" Size="300.1" /> |
Styles.xml
UI/Styles.xml
0059
|
<Image Anchor="R,C" Offset="-2,0" TextureOffset="8.0" AnchorSide="O.O" Texture="Assets/UI/Art/Controls/buttonsides.dds" Size="8,16" /> |
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.