SetItem¶
This method is a special handler whenever a confirmation of an ItemList occurs. The listtype handled here are only the ones related to BattleControl except for the chompy ribbons list type as this one is handled by the Chompy action coroutine. The ItemList handled are only the ones that were setup by GetChoiceInput
The method receives the listvar
option that was confirmed which is set to selecteditem
. turncooldown
is set to 5.0 and option
to 0. The turncooldown
prevents GetChoiceInput to be called from PlayerTurn for 5 FixedUpdate cycles.
From there, this is where the list type is handled. Only 3 are possible:
The logics are located in their own page matching the corresponding listtype
. No matter which one, UpdateText is called after.
listtype | Link to its UI handling logic page |
---|---|
Battle strategy | Battle strategy list type |
Skills | Skills list type |
Standard items | Standard items list type |