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

Method onLeftArrowPress

src/Interface/TextList.cpp:688–695  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

686 * @param handler Action handler.
687 */
688void TextList::onLeftArrowPress(ActionHandler handler)
689{
690 _leftPress = handler;
691 for (std::vector<ArrowButton*>::iterator i = _arrowLeft.begin(); i < _arrowLeft.end(); ++i)
692 {
693 (*i)->onMousePress(handler);
694 }
695}
696
697/**
698 * Sets a function to be called every time the left 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