Atrinik Client 1.0
include/dialog.h
Go to the documentation of this file.
00001 /************************************************************************
00002 *            Atrinik, a Multiplayer Online Role Playing Game            *
00003 *                                                                       *
00004 *    Copyright (C) 2009-2011 Alex Tokar and Atrinik Development Team    *
00005 *                                                                       *
00006 * Fork from Daimonin (Massive Multiplayer Online Role Playing Game)     *
00007 * and Crossfire (Multiplayer game for X-windows).                       *
00008 *                                                                       *
00009 * This program is free software; you can redistribute it and/or modify  *
00010 * it under the terms of the GNU General Public License as published by  *
00011 * the Free Software Foundation; either version 2 of the License, or     *
00012 * (at your option) any later version.                                   *
00013 *                                                                       *
00014 * This program is distributed in the hope that it will be useful,       *
00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00017 * GNU General Public License for more details.                          *
00018 *                                                                       *
00019 * You should have received a copy of the GNU General Public License     *
00020 * along with this program; if not, write to the Free Software           *
00021 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.             *
00022 *                                                                       *
00023 * The author can be reached at admin@atrinik.org                        *
00024 ************************************************************************/
00025 
00030 #ifndef DIALOG_H
00031 #define DIALOG_H
00032 
00034 #define OPTWIN_MAX_TAB 20
00035 
00037 #define OPTWIN_MAX_OPT 26
00038 
00040 #define MAX_MS_DESC_LINE 298
00041 
00043 typedef struct _option
00044 {
00046     char *name;
00047 
00049     char *info;
00050 
00052     char *val_text;
00053 
00055     int sel_type;
00056 
00058     int minRange, maxRange, deltaRange;
00059 
00061     int default_val;
00062 
00064     void *value;
00065 
00067     int value_type;
00068 } _option;
00069 
00070 extern _option opt[];
00071 
00073 extern enum
00074 {
00076     VAL_BOOL,
00080     VAL_TEXT,
00082     VAL_CHAR,
00084     VAL_INT,
00086     VAL_U32
00087 } value_type;
00088 
00089 #define TXT_START_NAME  136
00090 #define TXT_Y_START      82
00091 
00092 extern int active_button;
00093 
00094 extern const char *opt_tab[];
00095 
00096 #endif