Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

createPopup

Description

Creates a generic popup with the specified text and title.

Arguments

1 number width

the width of the popup. Most common sizes are 500 and 600. Unscaled. string-title-the title of the popup. string-text-the text to display on the popup.

2 string titleFont

the font to use for the title.

3 string textFont

the font to use for the text.

4 bool skipButton

optional, whether button creation should be skipped.

5 string popupClass

optional, the popup class to use. If none is specified, will use the Popup class.

Returns

1 guiElementInstance

an instance of the specified popup class.