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

Method btnUnloadClick

src/Battlescape/InventoryState.cpp:453–462  ·  view source on GitHub ↗

* Unloads the selected weapon. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

451 * @param action Pointer to an action.
452 */
453void InventoryState::btnUnloadClick(Action *)
454{
455 if (_inv->unload())
456 {
457 _txtItem->setText(L"");
458 _txtAmmo->setText(L"");
459 _selAmmo->clear();
460 updateStats();
461 }
462}
463
464/**
465 * Shows more ground items / rearranges them.

Callers

nothing calls this directly

Calls 3

unloadMethod · 0.80
setTextMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected