MCPcopy Create free account
hub / github.com/MyGUI/mygui / doAction

Method doAction

Tools/ImageEditor/ChangeTextureValueAction.cpp:19–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 FACTORY_ITEM_ATTRIBUTE(ChangeTextureValueAction)
18
19 void ChangeTextureValueAction::doAction()
20 {
21 mOldValue = getProperty()->getValue();
22 getProperty()->setValue(getValue());
23
24 if (SettingsManager::getInstance().getValue<bool>("Settings/SaveLastTexture"))
25 SettingsManager::getInstance().setValue("Resources/LastTextureName", getValue());
26 }
27
28 void ChangeTextureValueAction::undoAction()
29 {

Callers

nothing calls this directly

Calls 3

getValueFunction · 0.50
getValueMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected