#include "ui/menudef.h"
#include "ui/menumacros.h"

// Defines //
#define WINDOW_X                16
#define WINDOW_Y                16
#define WINDOW_WIDTH    128
#define WINDOW_HEIGHT   200
#define GROUP_NAME              "grpOptions"

// Options Menu //
menuDef {
        name            "options"
        visible         0
        fullscreen      0
        rect            WINDOW_X WINDOW_Y WINDOW_WIDTH WINDOW_HEIGHT
        style           WINDOW_STYLE_FILLED

        onESC {
                close options ;
#ifdef FUI
                open main
#else
                open ingame_main
#endif // FUI
        }

// Window //
        WINDOW( _("OPTIONS"), 122 )

// Buttons //
        BUTTON ( 6, 32, WINDOW_WIDTH-12, 18, _("MSGID_MENU_OPTION_GAME"), .3, 14, close options ; open options_customise_game )
        BUTTON ( 6, 56, WINDOW_WIDTH-12, 18, _("MSGID_MENU_OPTION_VIEW"), .3, 14, close options ; open options_customise_hud )
#ifdef FUI
        BUTTON ( 6, 80, WINDOW_WIDTH-12, 18, _("MSGID_MENU_OPTION_HUD_EDITOR"), .3, 14, open options_customise_hudeditor_fui)
#else
        BUTTON ( 6, 80, WINDOW_WIDTH-12, 18, _("MSGID_MENU_OPTION_HUD_EDITOR"), .3, 14, uiScript edithud ; close options )
#endif
        BUTTON ( 6, 104, WINDOW_WIDTH-12, 18, _("MSGID_MENU_OPTION_CONTROLS"), .3, 14, close options ; open options_controls )
        BUTTON ( 6, 128, WINDOW_WIDTH-12, 18, _("MSGID_MENU_OPTION_SYSTEM"), .3, 14, close options ; open options_system )
		BUTTON ( 6, 152, WINDOW_WIDTH-12, 18, _("MSGID_MENU_OPTION_OPEN_HOME"), .3, 14, close options ; uiScript open_homepath )
#ifdef FUI
        BUTTON ( 6, 176, WINDOW_WIDTH-12, 18, _("MSGID_MENU_BACK"), .3, 14, close options ; open main )
#else
        BUTTON ( 6, 176, WINDOW_WIDTH-12, 18, _("MSGID_MENU_BACK"), .3, 14, close options ; open ingame_main )
#endif // FUI
}
