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

Method onRightArrowPress

src/Interface/TextList.cpp:727–734  ·  view source on GitHub ↗

* Sets a function to be called every time the right arrows are mouse pressed. * @param handler Action handler. */

Source from the content-addressed store, hash-verified

725 * @param handler Action handler.
726 */
727void TextList::onRightArrowPress(ActionHandler handler)
728{
729 _rightPress = handler;
730 for (std::vector<ArrowButton*>::iterator i = _arrowRight.begin(); i < _arrowRight.end(); ++i)
731 {
732 (*i)->onMousePress(handler);
733 }
734}
735
736/**
737 * Sets a function to be called every time the right arrows are mouse released.

Callers 5

SellStateMethod · 0.80
TransferItemsStateMethod · 0.80
CraftEquipmentStateMethod · 0.80
PurchaseStateMethod · 0.80

Calls 1

onMousePressMethod · 0.80

Tested by

no test coverage detected