#include <windows.h>
#include "resource.h"

IDI_MAIN ICON "icon.ico"

IDR_MENU MENU
BEGIN
    POPUP "File"
    BEGIN
        MENUITEM "Reset Config", IDM_RESET
        MENUITEM SEPARATOR
        MENUITEM "About", IDM_ABOUT
        MENUITEM "Exit", IDM_EXIT
    END
END

IDD_MAIN DIALOGEX 0, 0, 340, 186
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "EOSHoloLauncher"
MENU IDR_MENU
FONT 9, "Segoe UI", 400, 0, 0x1
BEGIN
    LTEXT           "Role:", -1, 8, 8, 25, 10
    COMBOBOX        IDC_ROLE, 35, 6, 65, 100, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP

    LTEXT           "IP:", -1, 108, 8, 16, 10
    EDITTEXT        IDC_IP, 124, 6, 85, 13, ES_AUTOHSCROLL

    LTEXT           "Port:", -1, 217, 8, 22, 10
    EDITTEXT        IDC_PORT, 239, 6, 45, 13, ES_AUTOHSCROLL | ES_NUMBER

    LTEXT           "User:", IDC_TENOKE_LABEL, 8, 26, 25, 10
    EDITTEXT        IDC_TENOKE_USER, 35, 24, 249, 13, ES_AUTOHSCROLL

    GROUPBOX        "Advanced Settings", -1, 5, 46, 330, 80

    LTEXT           "Max Members:", -1, 12, 60, 58, 10
    EDITTEXT        IDC_MAX_MEMBERS, 72, 58, 40, 13, ES_AUTOHSCROLL | ES_NUMBER

    LTEXT           "Platform:", -1, 160, 60, 38, 10
    EDITTEXT        IDC_PLATFORM, 200, 58, 125, 13, ES_AUTOHSCROLL

    LTEXT           "Win Rate:", -1, 12, 78, 42, 10
    EDITTEXT        IDC_WIN_RATE, 72, 76, 40, 13, ES_AUTOHSCROLL | ES_NUMBER

    LTEXT           "Cross-Platform:", -1, 160, 78, 62, 10
    COMBOBOX        IDC_CROSS_PLATFORM, 225, 76, 100, 80, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP

    LTEXT           "App Version:", -1, 12, 96, 52, 10
    EDITTEXT        IDC_APP_VERSION, 72, 94, 40, 13, ES_AUTOHSCROLL

    LTEXT           "Online Rule:", -1, 160, 96, 52, 10
    EDITTEXT        IDC_ONLINE_RULE, 225, 94, 100, 13, ES_AUTOHSCROLL

    LTEXT           "Note: Online Rule, App Version, and Win Rate are for matchmaking purposes.\nLeave at defaults unless you know what you are doing.",
            -1, 8, 136, 324, 20

    DEFPUSHBUTTON   "Launch", IDC_LAUNCH, 25, 164, 90, 16
    PUSHBUTTON      "Save Config", IDC_SAVE, 125, 164, 90, 16
END

IDD_ABOUT DIALOGEX 0, 0, 300, 130
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About EOSHoloLauncher"
FONT 9, "Segoe UI", 400, 0, 0x1
BEGIN
    ICON            IDI_MAIN, IDC_ABOUT_ICON, 10, 10, 64, 64
    LTEXT           "EOSHoloLauncher v1.0", -1, 82, 12, 200, 12
    LTEXT           "A graphical configuration tool for the EOSSDK-Holos\n"
                    "proxy project. Provides a simple interface to configure\n"
                    "direct IP multiplayer settings for Holos Hanafuda.\n"
                    "\n"
                    "Licensed under the GNU General Public License v2.0.",
            -1, 82, 28, 200, 48
    LTEXT           "https://codeberg.org/Nixietab/EOSSDK-Holos",
            IDC_ABOUT_LINK, 82, 80, 200, 10, SS_NOTIFY
    DEFPUSHBUTTON   "OK", IDOK, 235, 104, 50, 16
END
