示例#1
0
文件: intro.c 项目: callaa/luola
/* Save settings */
static int save_settings (MenuCommand cmd, struct MenuItem * item)
{
    if (cmd != MNU_ENTER)
        return 0;
    save_game_config ();
    intro_message ("Game settings were saved");
    return 0;
}
示例#2
0
/// Show the intro message when not editing a file.
void maybe_intro_message(void)
{
  if (bufempty()
      && (curbuf->b_fname == NULL)
      && (firstwin->w_next == NULL)
      && (vim_strchr(p_shm, SHM_INTRO) == NULL)) {
    intro_message(FALSE);
  }
}
示例#3
0
文件: version.c 项目: mischief/vim
/*
 * Show the intro message when not editing a file.
 */
    void
maybe_intro_message(void)
{
    if (BUFEMPTY()
	    && curbuf->b_fname == NULL
	    && firstwin->w_next == NULL
	    && vim_strchr(p_shm, SHM_INTRO) == NULL)
	intro_message(FALSE);
}
示例#4
0
文件: intro.c 项目: callaa/luola
/* Ask a new key */
static int set_player_key (MenuCommand cmd, struct MenuItem * item)
{
    if (cmd != MNU_ENTER)
        return 0;
    intro_message ("Press a key");
    intr_message.setkey = &game_settings.controller[item->parent->ID].keys[item->ID-2];
    draw_intro_screen ();
    intro_event_loop ();
    return 1;
}
示例#5
0
文件: version.c 项目: ybian/macvim
/*
 * Show the intro message when not editing a file.
 */
    void
maybe_intro_message(void)
{
    if (bufempty()
	    && curbuf->b_fname == NULL
#ifdef FEAT_WINDOWS
	    && firstwin->w_next == NULL
#endif
	    && vim_strchr(p_shm, SHM_INTRO) == NULL)
	intro_message(FALSE);
}
示例#6
0
/// ":intro": clear screen, display intro screen and wait for return.
///
/// @param eap
void ex_intro(exarg_T *eap)
{
  screenclear();
  intro_message(TRUE);
  wait_return(TRUE);
}