The civ.ui library: Difference between revisions
(New page for civ.ui library) |
mNo edit summary |
||
Line 4: | Line 4: | ||
---- | ---- | ||
Follow the link in the function name for additional information about that function, if it is available. | |||
[[centerView]] | [[centerView]] |
Revision as of 20:58, 1 January 2019
Back To TOTPP Functions
Follow the link in the function name for additional information about that function, if it is available.
civ.ui.centerView(tile)
Centers the map on the given tile.
civ.ui.redrawMap()
Redraws the entire map.
civ.ui.redrawTile(tile)
Redraws the given tile.
civ.ui.setZoom(integer)
Sets the zoom level (range from -7 (max zoom out) to 8 (max zoom in)).
civ.ui.text(string)
Display a pop-up text box with the given string as text.
civ.ui.zoomIn()
Zooms in on the map (increases zoom level by 1).
civ.ui.zoomOut()
Zooms out of the map (decreases zoom level by 1).
civ.ui.loadTerrain(map, filename1, filename2)
Replaces terrain graphics for map number `map`, loading graphics from `filename1` (corresponding to "TERRAIN1.BMP") and `filename2` (corresponding to "TERRAIN2.BMP")
civ.ui.createDialog() -> dialog
Creates and initializes a dialog. See the dialog section for more details.