# Create A New Bank Inventory

## Buttons Values

> **NOTICE:** Following the buttons values and understands them **will save you a lot of time.**

| Value            | Description                                        |
| ---------------- | -------------------------------------------------- |
| `transfer`       | Sets button value to transfer custom amount action |
| `deposit`        | Sets button value to deposit action                |
| `depositall`     | Sets button value to deposit all-action            |
| `depositcustom`  | Sets button value to deposit custom amount action  |
| `withdraw`       | Sets button value to withdraw action               |
| `withdrawall`    | Sets button value to withdraw all-action           |
| `withdrawcustom` | Sets button value to withdraw custom amount action |
| `back`           | Sets button value to back menu action              |

* GUI buttons can be named like: `deposit1`, `deposit2`, `withdraw12`, `withdraw24`, and so on.
* The custom values such: `depositCustom`, `withdrawCustom` or `Transfer`, **can be numbered, with full action keyword (deposit/withdrawall/transfer/depositcustom etc..) and the `value` of all of them needs to be `0`.**

## Example of creating a new bank GUI menu

#### Final result

![mY Custom Bank GUI](https://camo.githubusercontent.com/f21bd544bad24220452d3db4f6732a7a3a95f61d1f8ea516234c1dcfafa71bb8/68747470733a2f2f696d6775722e636f6d2f5156326d7666522e706e67)

`inventories.yml`:

```
inventories:
  default:
    my-custom-menu:

        title: '&3&lMy Custom Bank GUI'

        slots: 36

        fillMaterial: CYAN_STAINED_GLASS_PANE

        items:
            
            deposit1:
              material: LIME_STAINED_GLASS_PANE
              slot: 10
              flags: false
              name: '&a&lDeposit $100'
              value: 100.0

            deposit2:
              material: LIME_STAINED_GLASS_PANE
              slot: 11
              flags: false
              name: '&a&lDeposit $5,000'
              value: 5000.0

            deposit3:
              material: LIME_STAINED_GLASS_PANE
              slot: 12
              flags: false
              name: '&a&lDeposit $15,000'
              value: 15000.0

            depositcustom:
              material: GREEN_STAINED_GLASS_PANE
              slot: 20
              flags: false
              name: '&a&lDeposit Custom Amount'
              value: 0.0

            depositall:
              material: LIME_STAINED_GLASS_PANE
              slot: 19
              flags: false
              name: '&2&lDeposit All'
              value: 0.0

            withdraw1:
              material: YELLOW_STAINED_GLASS_PANE
              slot: 14
              flags: false
              name: '&6&lWithdraw $100'
              value: -100.0

            withdraw2:
              material: YELLOW_STAINED_GLASS_PANE
              slot: 15
              flags: false
              name: '&6&lWithdraw $5,000'
              value: -5000.0

            withdraw3:
              material: YELLOW_STAINED_GLASS_PANE
              slot: 16
              flags: false
              name: '&6&lWithdraw $15,000'
              value: -15000.0

            withdrawcustom:
              material: ORANGE_STAINED_GLASS_PANE
              slot: 24
              flags: false
              name: '&6&lWithdraw Custom Amount'
              value: 0.0

            withdrawall:
              material: YELLOW_STAINED_GLASS_PANE
              slot: 25
              flags: false
              name: '&6&lWithdraw All'
              value: 0.0

            balance:
              material: Sunflower
              slot: 22
              flags: false
              name: '&2&l${balance}'

            transfer:
              material: Barrier
              slot: 27
              flags: false
              name: '&5&lTransfer Money'
              lore:
                - '&7&lto other account'
                - '&8(Click again to clear selection)'

            back:
              material: IRON_DOOR
              slot: 31
              flags: false
              name: '&c&lExit' 
```
