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

Method displayed

source/frontend/StarCraftingInterface.cpp:157–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void CraftingPane::displayed() {
158 Pane::displayed();
159
160 if (auto filterWidget = fetchChild<TextBoxWidget>("filter")) {
161 filterWidget->setText("");
162 filterWidget->blur();
163 }
164
165 updateAvailableRecipes();
166
167 // unlock any recipes specified
168 if (auto recipeUnlocks = m_settings.opt("initialRecipeUnlocks")) {
169 for (String itemName : jsonToStringList(*recipeUnlocks))
170 m_player->addBlueprint(ItemDescriptor(itemName));
171 }
172}
173
174void CraftingPane::dismissed() {
175 stopCrafting();

Callers

nothing calls this directly

Calls 6

jsonToStringListFunction · 0.85
ItemDescriptorClass · 0.85
addBlueprintMethod · 0.80
setTextMethod · 0.45
blurMethod · 0.45
optMethod · 0.45

Tested by

no test coverage detected