Ejemplo n.º 1
0
Archivo: intro.c Proyecto: 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;
}
Ejemplo n.º 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);
  }
}
Ejemplo n.º 3
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);
}
Ejemplo n.º 4
0
Archivo: intro.c Proyecto: 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;
}
Ejemplo n.º 5
0
/*
 * 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);
}
Ejemplo n.º 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);
}