* Links with an action and fills in the text fields. * @param action The battlescape action. * @param description The actions description. * @param accuracy The actions accuracy, including the Acc> prefix. * @param timeunits The timeunits string, including the TUs> prefix. * @param tu The timeunits value. */
| 84 | * @param tu The timeunits value. |
| 85 | */ |
| 86 | void ActionMenuItem::setAction(BattleActionType action, std::wstring description, std::wstring accuracy, std::wstring timeunits, int tu) |
| 87 | { |
| 88 | _action = action; |
| 89 | _txtDescription->setText(description); |
| 90 | _txtAcc->setText(accuracy); |
| 91 | _txtTU->setText(timeunits); |
| 92 | _tu = tu; |
| 93 | _redraw = true; |
| 94 | } |
| 95 | |
| 96 | /** |
| 97 | * Gets the action that was linked to this menu item. |