MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / displayConfirmation

Method displayConfirmation

source/frontend/StarConfirmationDialog.cpp:14–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12ConfirmationDialog::ConfirmationDialog() {}
13
14void ConfirmationDialog::displayConfirmation(Json const& dialogConfig, RpcPromiseKeeper<Json> resultPromise) {
15 m_resultPromise = resultPromise;
16 displayConfirmation(dialogConfig, [this] (Widget*) { m_resultPromise->fulfill(true); }, [this] (Widget*) { m_resultPromise->fulfill(false); } );
17}
18
19void ConfirmationDialog::displayConfirmation(Json const& dialogConfig, WidgetCallbackFunc okCallback, WidgetCallbackFunc cancelCallback) {
20 Json config;

Callers 2

updateMethod · 0.80
warpToMethod · 0.80

Calls 15

singletonClass · 0.85
jsonMethod · 0.80
assetsMethod · 0.80
optStringMethod · 0.80
getStringMethod · 0.80
optIntMethod · 0.80
optObjectMethod · 0.80
setImageMethod · 0.80
setDrawablesMethod · 0.80
toArrayMethod · 0.80
playAudioMethod · 0.80
fulfillMethod · 0.45

Tested by

no test coverage detected