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

Method onRightArrowClick

src/Interface/TextList.cpp:714–721  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

712 * @param handler Action handler.
713 */
714void TextList::onRightArrowClick(ActionHandler handler)
715{
716 _rightClick = handler;
717 for (std::vector<ArrowButton*>::iterator i = _arrowRight.begin(); i < _arrowRight.end(); ++i)
718 {
719 (*i)->onMouseClick(handler, 0);
720 }
721}
722
723/**
724 * Sets a function to be called every time the right arrows are mouse pressed.

Callers 6

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

Calls 1

onMouseClickMethod · 0.80

Tested by

no test coverage detected