Skip to content
Snippets Groups Projects
Select Git revision
  • d670139404831a32fc57c477223cd286fe2a4cc5
  • next default protected
  • master
  • acs
  • spriteinfo-refactor
  • 1392-2-2-15-attempting-to-draw-a-hud-graphic-with-the-same-lump-name-as-a-lua-script-crashes-the
  • clipmidtex
  • custom-map-names
  • nogravity-trampolines
  • 2214-pre4
  • 2214-pre3
  • just-in-case
  • fix-opengl-parameter-crash
  • 2214-pre2
  • 2214-pre1
  • delfile2
  • cleanupmusic
  • gametype-refactor-1
  • extra-textures
  • optimize-storewallrange
  • increase-maxconditionsets
  • SRB2_release_2.2.15
  • SRB2_release_2.2.13
  • SRB2_release_2.2.12
  • SRB2_release_2.2.11
  • SRB2_release_2.2.10
  • SRB2_release_2.2.9
  • SRB2_release_2.2.8
  • SRB2_release_2.2.7
  • SRB2_release_2.2.6
  • SRB2_release_2.2.5
  • SRB2_release_2.2.4
  • SRB2_release_2.2.3
  • SRB2_release_2.2.2
  • SRB2_release_2.2.1
  • SRB2_release_2.2.0
  • SRB2_release_2.1.25
  • SRB2_release_2.1.24
  • SRB2_release_2.1.23
  • SRB2_release_2.1.22
  • SRB2_release_2.1.21
41 results

lua_consolelib.c

Blame
  • Forked from STJr / SRB2
    Source project has a limited visibility.
    console.h 2.04 KiB
    // SONIC ROBO BLAST 2
    //-----------------------------------------------------------------------------
    // Copyright (C) 1998-2000 by DooM Legacy Team.
    // Copyright (C) 1999-2021 by Sonic Team Junior.
    //
    // This program is free software distributed under the
    // terms of the GNU General Public License, version 2.
    // See the 'LICENSE' file for more details.
    //-----------------------------------------------------------------------------
    /// \file  console.h
    /// \brief Console drawing and input
    
    #include "d_event.h"
    #include "command.h"
    #include "i_threads.h"
    
    void CON_Init(void);
    
    void CON_StartRefresh(void);
    void CON_StopRefresh(void);
    
    boolean CON_Responder(event_t *ev);
    
    #ifdef HAVE_THREADS
    extern I_mutex con_mutex;
    #endif
    
    // set true when screen size has changed, to adapt console
    extern boolean con_recalc;
    
    // console being displayed at game startup
    extern boolean con_startup;
    
    // needs explicit screen refresh until we are in the main game loop
    extern boolean con_refresh;
    
    // top clip value for view render: do not draw part of view hidden by console
    extern INT32 con_clipviewtop;
    
    // 0 means console if off, or moving out
    extern INT32 con_destlines;
    
    extern INT32 con_clearlines; // lines of top of screen to refresh
    extern boolean con_hudupdate; // hud messages have changed, need refresh
    extern UINT32 con_scalefactor; // console text scale factor
    
    extern consvar_t cons_backcolor;
    
    extern UINT8 *yellowmap, *magentamap, *lgreenmap, *bluemap, *graymap, *redmap, *orangemap, *skymap, *purplemap, *aquamap, *peridotmap, *azuremap, *brownmap, *rosymap, *invertmap;
    
    // Console bg color (auto updated to match)
    extern UINT8 *consolebgmap;
    extern UINT8 *promptbgmap;
    
    void CON_SetupBackColormapEx(INT32 color, boolean prompt);
    void CON_SetupBackColormap(void);
    void CON_ClearHUD(void); // clear heads up messages
    
    void CON_Ticker(void);
    void CON_Drawer(void);
    void CONS_Error(const char *msg); // print out error msg, and wait a key
    
    // force console to move out
    void CON_ToggleOff(void);
    
    // Is console down?
    boolean CON_Ready(void);
    
    void CON_LogMessage(const char *msg);