gnome-scores - "High Scores" ウイジェット

著者

Author

[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.]

[訳注: 日本語とラテン文字がかちあうため(すなわち、一つのページ内に これらの文字を混在させるのは難しいということ)、私は原著者の情報を 別のページに移し、リンクを張った。]

説明 Description

ゲームのハイスコアを表示するために特化されたウイジェット。 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...

使いかた Usage

gnome_scores_display を使いなさい。他の関数はなくなる予定だ..... (いいだろう、その前にピックスマップのサポートを *_display に追加する べきだね。)

Use the gnome_scores_display.The other functions are going to be discontinued...(ok, i should add pixmap support to * _display before)

gnome_scores_display - ベストスコアを表示する全ての作業を行なう Does all the work of displaying the best scores.

void gnome_scores_display(gchar *title, gchar *app_name, gchar *level, int pos);

説明 Description

情報を引き出すために gnome_score_get_notables を呼び、 ウィンドウを生成し、表示する。

It calls gnome_score_get_notables to retrieve the info, creates the window, and show it.

返り値 Returns

なにも返さない。

Doesn't return nothing

使いかた Usage

pos = gnome_score_log (score, level, TRUE);
gnome_scores_display (_ ("Mi game"), "migame", level, pos);

パラメータ Parameters

gnome_scores_new - ハイスコアウィンドウを生成する。

GtkWidget *gnome_scores_new(guint n_scores, gchar **names, gfloat *scores, time_t *times, guint clear);

説明 Description

ハイスコアウィンドウを生成する

パラメータ Parameters

gnome_scores_set_logo_label - ロゴとなるラベルを生成する Creates a label to be the logo

void gnome_scores_set_logo_label(GnomeScores *gs, gchar *txt, gchar *font, GdkColor *color);

説明 Description

ロゴとなるラベルを生成する

Creates a label to be the logo

パラメータ Parameters

gnome_scores_set_logo_pixmap - ロゴとなるピックスマップを生成 Creates a pixmap to be the logo

void gnome_scores_set_logo_pixmap(GnomeScores *gs, gchar *logo);

説明 Description

ロゴとなるピックスマップを生成する

Creates a pixmap to be the logo

パラメータ Parameters

gnome_scores_set_logo_widget - ロゴとなる任意のウイジェットを設定 Set an arbitrary widget to be the logo.

void gnome_scores_set_logo_widget(GnomeScores *gs, GtkWidget *w);

説明 Description

ロゴとなる任意のウイジェットを設定。

Set an arbitrary widget to be the logo.

パラメータ Parameters

gnome_scores_set_color - 一つのエントリーの色を設定する

void gnome_scores_set_color(GnomeScores *gs, guint pos, GdkColor *col);

説明 Description

一つのエントリーの色を設定する

Set the color of one entry.

パラメータ Parameters

gnome_scores_set_def_color - エントリーのデフォルトの色を設定する Set the default color of the entries.

void gnome_scores_set_def_color(GnomeScores *gs, GdkColor *col);

説明 Description

エントリーのデフォルトの色を設定する。

Set the default color of the entries.

Parameters

gnome_scores_set_colors - 全エントリーの色を設定する Set the color of all the entries.

void gnome_scores_set_colors(GnomeScores *gs, GdkColor *col);

Description

全エントリーの色を設定する。

Set the color of all the entries.

パラメータ Parameters

gnome_scores_set_logo_label_title - ロゴとなるラベルを生成する Creates a label to be the logo

void gnome_scores_set_logo_label_title(GnomeScores *gs, gchar *txt);

説明 Description

ロゴとなるラベルを生成する

Creates a label to be the logo

パラメータ Parameters

gnome_scores_set_current_player - トップテンでの現在のプレイヤーのインデックスを設定する Set the index of the current player in top ten.

void gnome_scores_set_current_player(GnomeScores *gs, gint i);

Description

トップテンでの現在のプレイヤーのインデックスを設定する

Set the index of the current player in top ten.

パラメータ Parameters