⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 console.h

📁 3D游戏模板
💻 H
字号:
/* console io
 * Template CS game
 * (C)2001 Mat Sutcliffe. See license.txt for license info (GPL)
 */

#ifndef __CONSOLE_H__
#define __CONSOLE_H__

#include <csutil/ref.h>
#include <ivaria/conout.h>
#include <ivaria/conin.h>
#include <iutil/cfgmgr.h>
#include <iutil/objreg.h>
#include <iutil/eventh.h>
#include <iutil/eventq.h>

class Console {
	private:
		csRef<iConsoleOutput> conout;
		csRef<iConsoleInput> conin;
		csRef<iEventQueue> eventq;
	public:
		struct PerformCallback : public iConsoleExecCallback
		{
			private:
				csRef<iConfigFile> conf;
			public:
				SCF_DECLARE_IBASE;
				PerformCallback (iObjectRegistry *);
				virtual ~PerformCallback () {}
				void Execute (const char* cmd);
		};		
		void show();
		void hide();
		bool toggle();
		bool visible;
		Console(iObjectRegistry *);
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -