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

Method activateBinding

source/frontend/StarKeybindingsMenu.cpp:147–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147bool KeybindingsMenu::activateBinding(Widget* widget) {
148 exitActiveMode();
149
150 m_activeKeybinding = widget;
151 m_activeKeybinding->parent()->fetchChild<ButtonWidget>("deleteBinding")->show();
152 convert<ButtonWidget>(m_activeKeybinding)->setHighlighted(true);
153
154 return false;
155}
156
157void KeybindingsMenu::setKeybinding(KeyChord desc) {
158 if (!m_activeKeybinding)

Callers

nothing calls this directly

Calls 3

setHighlightedMethod · 0.80
showMethod · 0.45
parentMethod · 0.45

Tested by

no test coverage detected