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

Method CreateControllers

Tools/EditorFramework/Control.cpp:168–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166 }
167
168 void Control::CreateControllers()
169 {
170 std::string_view controllers = mMainWidget->getUserString("ControlControllers");
171 if (!controllers.empty())
172 {
173 std::vector<std::string> values = MyGUI::utility::split(controllers, "\t\n ,");
174 for (const auto& value : values)
175 {
176 IControlController* controller =
177 components::FactoryManager::GetInstance().CreateItem<IControlController>(value);
178 if (controller != nullptr)
179 {
180 controller->setTarget(this);
181 mControllers.push_back(controller);
182 }
183 }
184 }
185 }
186
187 void Control::ActivateControllers()
188 {

Callers

nothing calls this directly

Calls 5

splitFunction · 0.85
getUserStringMethod · 0.80
emptyMethod · 0.45
setTargetMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected