[Translater's Note: Since Japanese Kanji conflicts with Latin character, (which means you can hardly display these characters in one web page) I moved the original author's notice to another page, and made a link.]
[訳注: 日本語とラテン文字がかちあうため(すなわち、一つのページ内に これらの文字を混在させるのは難しいということ)、私は原著者の情報を 別のページに移し、リンクを張った。]
ゲームのハイスコアを表示するために特化されたウイジェット。 gnome-score ととても統一がとれており、全ての作業をするのに 一つの関数を呼ぶだけで済む。
A specialized widget to display "High Scores" for games. It's very integrated with the gnome-score stuff so you only need to call one function to do all the work...
|
void gnome_scores_display(gchar *title, gchar *app_name, gchar *level, int pos);情報を引き出すために gnome_score_get_notables を呼び、 ウィンドウを生成し、表示する。
It calls gnome_score_get_notables to retrieve the info, creates the window, and show it.
なにも返さない。
Doesn't return nothing
pos = gnome_score_log (score, level, TRUE);
gnome_scores_display (_ ("Mi game"), "migame", level, pos); |
gchar *title
タイトル
Title.
gchar *app_name
gnome_score_init の時のように、アプリケーションの名前。
Name of the application, as in gnome_score_init.
gchar *level
ゲームのレベル、または NULL。
Level of the game or NULL.
int pos
gnome_score_log によって返される、現在のプレイヤーのトップテンでの順位。
Position in the top ten of the current player, as returned by gnome_score_log.
GtkWidget *gnome_scores_new(guint n_scores, gchar **names, gfloat *scores, time_t *times, guint clear);ハイスコアウィンドウを生成する
guint n_scores
順位の数。
Number of positions.
gchar **names
プレイヤーの名前。
Names of the players.
gfloat *scores
スコア
time_t *times
スコアが作られた時間。
Time in which the scores were done
guint clear
"Clear" ボタンを追加するかどうか。
Add a "Clear" Button?
void gnome_scores_set_logo_label(GnomeScores *gs, gchar *txt, gchar *font, GdkColor *color);ロゴとなるラベルを生成する
Creates a label to be the logo
GnomeScores *gs
GNOME Scores ウイジェット。
GNOME Scores widget.
gchar *txt
ラベルのテキスト
Text in the label.
gchar *font
ラベルで使うフォント。
Font to use in the label.
GdkColor *color
ラベルで使うカラー
Color to use in the label.
void gnome_scores_set_logo_pixmap(GnomeScores *gs, gchar *logo);ロゴとなるピックスマップを生成する
Creates a pixmap to be the logo
GnomeScores *gs
GNOME Scores ウイジェット。
GNOME Scores widget.
gchar *logo
.xpm の名前
Name of the .xpm.
void gnome_scores_set_logo_widget(GnomeScores *gs, GtkWidget *w);ロゴとなる任意のウイジェットを設定。
Set an arbitrary widget to be the logo.
GnomeScores *gs
GNOME Scores ウイジェット。
GNOME Scores widget.
GtkWidget *w
ロゴとして使われるウイジェット。
Widget to be used as logo.
void gnome_scores_set_color(GnomeScores *gs, guint pos, GdkColor *col);一つのエントリーの色を設定する
Set the color of one entry.
GnomeScores *gs
GNOME Scores ウイジェット
GNOME Scores widget.
guint pos
色を変更するエントリー。
Entry to be changed.
GdkColor *col
色。
Color.
void gnome_scores_set_def_color(GnomeScores *gs, GdkColor *col);エントリーのデフォルトの色を設定する。
Set the default color of the entries.
GnomeScores *gs
GNOME Scores ウイジェット。
GNOME Scores widget.
GdkColor *col
色
Color.
void gnome_scores_set_colors(GnomeScores *gs, GdkColor *col);全エントリーの色を設定する。
Set the color of all the entries.
GnomeScores *gs
Not Descripted.
GdkColor *col
色を格納した配列
Array of colors.
void gnome_scores_set_logo_label_title(GnomeScores *gs, gchar *txt);ロゴとなるラベルを生成する
Creates a label to be the logo
GnomeScores *gs
GNOME Scores ウイジェット
GNOME Scores widget.
gchar *txt
ロゴの名前
Name of the logo.
void gnome_scores_set_current_player(GnomeScores *gs, gint i);トップテンでの現在のプレイヤーのインデックスを設定する
Set the index of the current player in top ten.
GnomeScores *gs
GNOME Scores ウイジェット
GNOME Scores widget.
gint i
現在のプレイヤーのインデックス (0 から 9 の範囲で)。
Index of the current(from 0 to 9).