MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / setComboBox

Method setComboBox

src/Interface/TextButton.cpp:318–329  ·  view source on GitHub ↗

* Hooks up the button to work as part of an existing combobox, * toggling its state when it's pressed. * @param comboBox Pointer to ComboBox. */

Source from the content-addressed store, hash-verified

316 * @param comboBox Pointer to ComboBox.
317 */
318void TextButton::setComboBox(ComboBox *comboBox)
319{
320 _comboBox = comboBox;
321 if (_comboBox)
322 {
323 _text->setX(-6);
324 }
325 else
326 {
327 _text->setX(0);
328 }
329}
330
331}

Callers

nothing calls this directly

Calls 1

setXMethod · 0.45

Tested by

no test coverage detected