MCPcopy Create free account
hub / github.com/DFHack/dfhack / init

Method init

plugins/embark-assistant/finder_ui.cpp:1800–1812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1798//===============================================================================
1799
1800void embark_assist::finder_ui::init(DFHack::Plugin *plugin_self, embark_assist::defs::find_callbacks find_callback, uint16_t max_inorganic, bool fileresult) {
1801 if (!embark_assist::finder_ui::state) { // First call. Have to do the setup
1802 embark_assist::finder_ui::ui_setup(find_callback, max_inorganic);
1803 }
1804 if (!fileresult) {
1805 Screen::show(std::make_unique<ViewscreenFindUi>(), plugin_self);
1806 }
1807 else
1808 {
1809 load_profile();
1810 find();
1811 }
1812}
1813
1814//===============================================================================
1815

Callers

nothing calls this directly

Calls 4

ui_setupFunction · 0.85
showFunction · 0.85
load_profileFunction · 0.85
findFunction · 0.70

Tested by

no test coverage detected