--- sidebar_position: 3 --- # TakeOrGambleView ## Overview `TakeOrGambleView` is a UI component for the slot machine's spin feature. It extends the base `View` class and manages the display and user interactions related to taking winnings or gambling them. ## Description - Constructs a new `TakeOrGambleView` instance. - Invokes the base `View` constructor. - Source: [`take-or-gamble-view.js:5`](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/view/take-or-gamble-view.js#L5)