⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gui2.h

📁 十七种模拟器源代码 非常有用的作课程设计不可缺少的
💻 H
📖 第 1 页 / 共 2 页
字号:
/* *  Stuff for the raine gui, mostly dialog data */#include "raine.h"#include "rgui.h"#include "rguiproc.h"char gamename[96];char screenname[96];char soundname[96];char hiscores[11],cheats[9];char langname[80];int dir_edit_proc(int msg, DIALOG *d, int c);int screen_select_proc(int msg, DIALOG *d, int c);int raine_quit_proc(int msg, DIALOG *d, int c);int game_play_proc(int msg, DIALOG *d, int c);int sound_radio_proc(int msg, DIALOG *d, int c);int status_radio_proc(int msg, DIALOG *d, int c);int year_radio_proc(int msg, DIALOG *d, int c);int game_radio_proc(int msg, DIALOG *d, int c);int res_radio_proc(int msg, DIALOG *d, int c);int game_select_proc(int msg, DIALOG *d, int c);char *listbox_getter(int index, int *list_size);char *game_company_getter(int index, int *list_size);char *game_type_getter(int index, int *list_size);char *status_getter(int index, int *list_size);int joy_calib_proc(int msg, DIALOG *d, int c);char *joylist_getter(int index, int *list_size);int joy_edit_proc(int msg, DIALOG *d, int c);void DoJoyEdit(void);int game_reset_proc(int msg, DIALOG *d, int c);int game_setup_proc(int msg, DIALOG *d, int c);int control_setup_proc(int msg, DIALOG *d, int c);int romdir_edit_proc(int msg, DIALOG *d, int c);char romedit[4][256];char *language_getter(int index, int *list_size);int language_proc(int msg, DIALOG *d, int c);int language_sel_proc(int msg, DIALOG *d, int c);int load_game_proc(int msg, DIALOG *d, int c);int auto_select_proc(int msg, DIALOG *d, int c);char *autolist_getter(int index, int *list_size);int auto_edit_proc(int msg, DIALOG *d, int c);int game_select_opts_proc(int msg, DIALOG *d, int c);#include "dlg_about.h"#include "dlg_sound.h"#include "dlg_key_game.h"#include "dlg_joy_game.h"#include "dlg_cheat.h"#include "dlg_dsw.h"typedef char gamestr[256];extern gamestr game_select_string1;extern gamestr game_company,game_year,game_sound,game_strtype;// Main game listbox index#define GAME_LIST 1#define GAME_SWITCH_RES 10#define GAME_DATA 17 // index of data info fields (start)#define GAME_BITMAP 22DIALOG game_select_opts[] =  {   // Type of the game, status   { d_raine_window_proc,25,   00,   260,  145,  GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    0,       0,    0,    "Selection options"},   // Sound   { x_text_proc,             33,    20,  1,    1,    GUI_COL_TEXT_2,  GUI_BOX_COL_MIDDLE,    0,    0,       0,    0,    "Sound:"},   { sound_radio_proc,    33,  30,64,   9,    GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    D_EXIT,  1,    1,    "Any"},   { sound_radio_proc,    33,  40,64,   9,    GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    D_EXIT,  1,    1,    "With"},   { sound_radio_proc,    33,  50,64,   9,    GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    D_EXIT,  1,    1,    "Without"},   // Working   { x_text_proc,             98,    20,  1,    1,    GUI_COL_TEXT_2,  GUI_BOX_COL_MIDDLE,    0,    0,       0,    0,    "Working:"},   { status_radio_proc,    98,  30,64,   9,    GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    D_EXIT,  2,    1,    "Yes"},   { status_radio_proc,    98,  40,64,   9,    GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    D_EXIT,  2,    1,    "Partial"},   { status_radio_proc,    98,  50,64,   9,    GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    D_EXIT,  2,    1,    "No"},      // year   { x_text_proc,         166,    20,  1,    1,    GUI_COL_TEXT_2,  GUI_BOX_COL_MIDDLE,    0,  0,       0,    0,    "Year"},   { year_radio_proc,    166,  30,64,   9,    GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    D_EXIT,  3,    1,    "Any"},   { year_radio_proc,    166,  40,64,   9,    GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    D_EXIT,  3,    1,    ">=1990"},   { year_radio_proc,    166,  50,64,   9,    GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    D_EXIT,  3,    1,    "<1990"},   { x_raine_button_proc,232,   35,  48,   16,   GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  'L',  D_EXIT,  0,    0,    "&Ok"},      { x_text_proc,             33,  70,  1,    1,    GUI_COL_TEXT_2,  GUI_BOX_COL_MIDDLE,    0,    0,       0,    0,    "Type:"},   { d_raine_list_proc,       33,   80,  90,   50,   255,  GUI_BOX_COL_MIDDLE,    0,    D_EXIT,       0,    0,    game_type_getter},   { x_text_proc,             150,  70,  1,    1,    GUI_COL_TEXT_2,  GUI_BOX_COL_MIDDLE,    0,    0,       0,    0,    "Company:"},   { d_raine_list_proc,       150,   80,  130,   50,   255,  GUI_BOX_COL_MIDDLE,    0,    D_EXIT,       0,    0,    game_company_getter},      //{ x_raine_button_proc,  8, 128,  32,  16, GUI_COL_TEXT_1, GUI_BOX_COL_MIDDLE,  'O',  D_EXIT,  0,    0,    "&Okay"},   { NULL,               0,    0,    0,    0,    0,    0,    0,    0,       0,    0,    NULL}  };               DIALOG game_select[] ={   /* (dialog proc)      (x)   (y)   (w)   (h)   (fg)  (bg)  (key) (flags)  (d1)  (d2)  (dp) */   { d_raine_window_proc,5,   00,   312,  230,  GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    0,       0,    0,    "Change Game"},   { d_raine_list_proc,  13,   20,   224,  101,  GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    D_EXIT,  GUI_COL_TEXT_1,  0,    listbox_getter},   { x_raine_button_proc,13,   189,  48,   16,   GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  'L',  D_EXIT,  0,    0,    "&Load"},   { x_raine_button_proc,13+56,189,  48,   16,   GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  'C',  D_EXIT,  0,    0,    "&Cancel"},   { x_text_proc,        250,  20,  1,    1,    GUI_COL_TEXT_2,  GUI_BOX_COL_MIDDLE,  0,    0,       0,    0,    "Game List:"},   { game_radio_proc,    250,  30,  64,   9,    GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    D_EXIT,  0,    1,    "Full"},   { game_radio_proc,    250,  40,  64,   9,    GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    D_EXIT,  0,    1,    "Available"},   { game_radio_proc,    250,  50,  64,   9,    GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    D_EXIT,  0,    1,    "Missing"},   { romdir_edit_proc,   13+56,169,  48,   16,   GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  'D',  D_EXIT,  0,    0,    "&Dirs"},   { x_text_proc,        13,   155,  1,    1,    GUI_COL_TEXT_2,  GUI_BOX_COL_MIDDLE,  0,    0,       0,    0,    game_select_string1},      // Switch res   { x_text_proc,        250,  70,  1,    1,    GUI_COL_TEXT_2,  GUI_BOX_COL_MIDDLE,  0,    0,       0,    0,    "Switch Res"},      { res_radio_proc,    250,  80,  25,   9,    GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    D_EXIT,  4,    1,    "On"},   { res_radio_proc,    250,  90,  25,   9,    GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    D_EXIT,  4,    1,    "Off"},   // Info about selection   { x_text_proc,        13,  130,  1,    1,    GUI_COL_TEXT_2,  GUI_BOX_COL_MIDDLE,  0,    0,       0,    0,    "Company:"},   { x_text_proc,        155,  140,  1,    1,    GUI_COL_TEXT_2,  GUI_BOX_COL_MIDDLE,  0,    0,       0,    0,    "Year:"},   { x_text_proc,        155,  130,  1,    1,    GUI_COL_TEXT_2,  GUI_BOX_COL_MIDDLE,  0,    0,       0,    0,    "Sound:"},   { x_text_proc,        13,  140,  1,    1,    GUI_COL_TEXT_2,  GUI_BOX_COL_MIDDLE,  0,    0,       0,    0,    "Type:"},      // Data fields for info   { x_text_proc,        60,  130,  1,    1,    GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    0,       0,    0,    game_company},   { x_text_proc,        200,  140,  1,    1,    GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    0,       0,    0,    game_year},   { x_text_proc,        200,  130,  1,    1,    GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    0,       0,    0,    game_sound},   { x_text_proc,        60,  140,  1,    1,    GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    0,       0,    0,    game_strtype},   // I put the selection button at the end to avoid to change all the   // indexes...   { game_select_opts_proc,   13,169,  48,   16,   GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  'S',  D_EXIT,  0,    0,    "&Selection"},   { d_bitmap_proc,      155,   150, 130,   76,    0,               0,                   0,    0,       0,    0,    NULL},     { NULL,               0,    0,    0,    0,    0,    0,    0,    0,       0,    0,    NULL}};DIALOG romdir_edit_dialog[] ={   /* (dialog proc)      (x)   (y)   (w)   (h)   (fg)  (bg)  (key) (flags)  (d1)  (d2)  (dp) */   { d_raine_window_proc,40,   10,   208,  96,   GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  0,    0,       0,    0,    "Edit Directories"},   { x_raine_button_proc,48,   82,   48,   16,   GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  'D',  D_EXIT,  0,    0,    "&Done"},   { x_raine_button_proc,104,  82,   48,   16,   GUI_COL_TEXT_1,  GUI_BOX_COL_MIDDLE,  'C',  D_EXIT,  0,    0,    "&Cancel"},   { x_text_proc,        48,   26,   0,    8,    GUI_COL_TEXT_2,  GUI_BOX_COL_MIDDLE,  0,    0,       0,    0,    "Rom Directories:"},   { x_edit_proc,        48,   38,   6*30, 8,    GUI_COL_TEXT_1,  253,  0,    0,       240,  0,    romedit[0]},   { x_edit_proc,        48,   48,   6*30, 8,    GUI_COL_TEXT_1,  253,  0,    0,       240,  0,    romedit[1]},   { x_edit_proc,        48,   58,   6*30, 8,    GUI_COL_TEXT_1,  253,  0,    0,       240,  0,    romedit[2]},

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -