|
Crossfire Client, Trunk
R18666
|
#include <gtk/gtk.h>#include <glade/glade.h>#include <ctype.h>#include "client.h"#include "image.h"#include "main.h"#include "gtk2proto.h"#include "metaserver.h"
Go to the source code of this file.
Defines | |
| #define | NUM_OPT_FIELDS 6 |
| #define | RACE_OPT_START 0 |
| #define | CLASS_OPT_START NUM_OPT_FIELDS/2 |
| #define | RACE_OPT_END CLASS_OPT_START - 1 |
| #define | CLASS_OPT_ENG NUM_OPT_FIELDS - 1 |
| #define | STARTING_MAP_PANE 0 |
| #define | WINDOW_NONE 0 |
| #define | WINDOW_CREATE_CHARACTER 1 |
| #define | WINDOW_CHOOSE_MAP 2 |
Functions | |
| void | create_character_window_show () |
| void | create_character_window_hide () |
| void | on_button_cc_cancel (GtkButton *button, gpointer user_data) |
| void | on_button_choose_starting_map (GtkButton *button, gpointer user_data) |
| void | on_button_cc_done (GtkButton *button, gpointer user_data) |
| void | on_spinbutton_cc (GtkSpinButton *spinbutton, gpointer user_data) |
| void | on_combobox_rcs_changed (GtkComboBox *box, gpointer user_data) |
| void | new_char_window_update_info () |
| void | on_button_csm_cancel (GtkButton *button, gpointer user_data) |
| void | on_combobox_starting_map_changed (GtkComboBox *box, gpointer user_data) |
| void | starting_map_update_info () |
| void | init_create_character_window () |
Variables | |
| const char *const | rcsid_gtk2_create_char_c = "$Id: create_char.c 12988 2010-04-27 04:04:46Z kbulgrien $" |
| GtkTextBuffer * | textbuf_starting_map |
| Info_Pane | create_char_pane [1] |
Handles creation of new characters
Definition in file create_char.c.
| #define CLASS_OPT_ENG NUM_OPT_FIELDS - 1 |
Definition at line 65 of file create_char.c.
| #define CLASS_OPT_START NUM_OPT_FIELDS/2 |
Definition at line 63 of file create_char.c.
| #define NUM_OPT_FIELDS 6 |
Definition at line 61 of file create_char.c.
| #define RACE_OPT_END CLASS_OPT_START - 1 |
Definition at line 64 of file create_char.c.
| #define RACE_OPT_START 0 |
Definition at line 62 of file create_char.c.
| #define STARTING_MAP_PANE 0 |
Definition at line 86 of file create_char.c.
| #define WINDOW_CHOOSE_MAP 2 |
Definition at line 91 of file create_char.c.
| #define WINDOW_CREATE_CHARACTER 1 |
Definition at line 90 of file create_char.c.
| #define WINDOW_NONE 0 |
Definition at line 89 of file create_char.c.
| void create_character_window_hide | ( | ) |
Basically opposite as above - hide the create character windows - this is called from hide_all_login_windows(), which is called when the client gets an addme success command.
Definition at line 212 of file create_char.c.

| void create_character_window_show | ( | ) |
This function is here so that other files, in particular account.c:on_button_create_character_clicked() can pop up this window. This function also requests necessary data from server if we don't already have it.
Definition at line 169 of file create_char.c.


| void init_create_character_window | ( | ) |
Initializes the create character window.
Definition at line 806 of file create_char.c.


| void new_char_window_update_info | ( | ) |
We have gotten some new information from the server, so we need to update the information - race/class choices or stat points/min stat/max stat information.
Definition at line 646 of file create_char.c.

| void on_button_cc_cancel | ( | GtkButton * | button, |
| gpointer | user_data | ||
| ) |
User has hit the 'return to character selection' button - basically meaning that we have to hide the current window and show the choose_char_window.
| button | ignored |
| user_data | ignored |
Definition at line 378 of file create_char.c.


| void on_button_cc_done | ( | GtkButton * | button, |
| gpointer | user_data | ||
| ) |
User has hit the done button. Need to verify input, and if it looks good, send it to the server. Note: This callback is used for the 'Done' button in both the character character window and starting map window.
| button | ignored |
| user_data | ignored |
Definition at line 513 of file create_char.c.

| void on_button_choose_starting_map | ( | GtkButton * | button, |
| gpointer | user_data | ||
| ) |
User has hit the choose starting map button. Not much to do, other than make that window visible
| button | ignored |
| user_data | ignored |
Definition at line 393 of file create_char.c.

| void on_button_csm_cancel | ( | GtkButton * | button, |
| gpointer | user_data | ||
| ) |
User has hit the 'return to character creation' button - basically meaning that we have to hide the current window and show the create_character_window.
| button | ignored |
| user_data | ignored |
Definition at line 733 of file create_char.c.

| void on_combobox_rcs_changed | ( | GtkComboBox * | box, |
| gpointer | user_data | ||
| ) |
User has changed one of the fields in the race/class combobox. Since the logic for the two is somewhat the same, we use one function to handle the event - as such, we really need to pay attention to what box is set to.
| box | The combobox that generated the event. |
| user_data | ignored |
Definition at line 549 of file create_char.c.


| void on_combobox_starting_map_changed | ( | GtkComboBox * | box, |
| gpointer | user_data | ||
| ) |
Definition at line 740 of file create_char.c.


| void on_spinbutton_cc | ( | GtkSpinButton * | spinbutton, |
| gpointer | user_data | ||
| ) |
User has changed one of the spinbutton values. We need to total back up the values.
Definition at line 531 of file create_char.c.

| void starting_map_update_info | ( | ) |
We have gotten starting map information from the server - now update the combo boxes.
Definition at line 767 of file create_char.c.

Definition at line 87 of file create_char.c.
| const char* const rcsid_gtk2_create_char_c = "$Id: create_char.c 12988 2010-04-27 04:04:46Z kbulgrien $" |
Definition at line 1 of file create_char.c.
| GtkTextBuffer* textbuf_starting_map |
Definition at line 82 of file create_char.c.
1.7.6.1