EgoVenture Logo
main
  • Getting started
  • Basic Structure
  • The game state
  • Scenes and navigation
  • Inventory handling
  • Hotspots
  • Effects, music and background
  • Configuration
  • Hint system
  • Tools
  • Theming EgoVenture
  • Updating EgoVenture
  • EgoVenture API reference
    • BaseState
    • Cursor
    • DialogHotspot
    • EgoVentureMenuButton
    • EightSideRoom
    • FourSideRoom
    • FulfillmentRecord
    • GameConfiguration
    • Goal
    • Hotspot
    • InGameConfiguration
    • InventoryItem
    • InventoryItemNode
    • LookHotspot
    • MapHotspot
    • ResourceQueue
    • SceneCache
    • TriggerHotspot
    • WalkHotspot
    • boombox.gd
    • check_cursor.gd
    • cursors.gd
    • detail_view.gd
    • egoventure.gd
    • inventory.gd
    • main_menu.gd
    • map_notification.gd
    • menu_grab.gd
    • notepad.gd
    • notification.gd
    • plugin.gd
    • waiting_screen.gd
EgoVenture
  • EgoVenture API reference
  • main_menu.gd
  • Edit on GitHub

main_menu.gd

Extends: CanvasLayer

Description

The MDNA main menu

Constants Descriptions

AUDIO_MIN

const AUDIO_MIN: float = -60

Lowest Audio level

MINIMUM_SAMPLE_TIME

const MINIMUM_SAMPLE_TIME: float = 2

Minimum number of seconds a speech or background sample should be played

Property Descriptions

resumeable

var resumeable: bool = true

Wether the main menu can be hidden

saveable

var saveable: bool = true

Wether the a game can be saved

disabled

var disabled: bool = false

Wether the menu can be displayed at all

Method Descriptions

configure

func configure(configuration: GameConfiguration)

Configure the menu

** Parameters **

  • configuration: The game configuration resource

toggle

func toggle()

Toggle the display of the menu and play the menu music

Signals

  • signal new_game(): Emitted when the user wants to start a new game

  • signal quit_game(): Emitted when the user wants to quit the game

Previous Next

© Copyright 2021, Dennis Ploeger. Revision 5fca2eb2.

Built with Sphinx using a theme provided by Read the Docs.