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

Method onLeftArrowClick

src/Interface/TextList.cpp:675–682  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

673 * @param handler Action handler.
674 */
675void TextList::onLeftArrowClick(ActionHandler handler)
676{
677 _leftClick = handler;
678 for (std::vector<ArrowButton*>::iterator i = _arrowLeft.begin(); i < _arrowLeft.end(); ++i)
679 {
680 (*i)->onMouseClick(handler, 0);
681 }
682}
683
684/**
685 * Sets a function to be called every time the left 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