YesNoPopup

fun YesNoPopup(question: String, action: () -> Unit, screen: BaseScreen = UncivGame.Current.worldScreen, restoreDefault: () -> Unit = {})

Parameters

question

The text for the label

action

A lambda to execute when "Yes" is chosen

screen

The parent screen - see Popup.screen. Optional, defaults to the current WorldScreen

restoreDefault

A lambda to execute when "No" is chosen

Sources

jvm source
Link copied to clipboard