📄 guichatlog.cc
字号:
//guiChatLog.cc
/*/////////////////////////////////////////////////////////////////
李亦
liease@163.com 4040719
2006-8-5
/*/////////////////////////////////////////////////////////////////
#include "gui/game/guiChatLog.h"
#include "gui/containers/guiScrollCtrl.h"
//#include "rpg/gobjects/GPlayer.h"
//#include "rpg/RPGSetting.h"
//#include "rpg/RPGChat.h"
/////////////////////////////////////////////////////////////////
IMPLEMENT_CONOBJECT(GuiChatLog);
IMPLEMENT_CONSOLETYPE(GuiChatLog);
IMPLEMENT_GETOBJECTTYPE(GuiChatLog);
IMPLEMENT_SETOBJECTTYPE(GuiChatLog);
//using namespace RPG;
/////////////////////////////////////////////////////////////////
// class GuiChatLog 构造函数 /析构函数
GuiChatLog::GuiChatLog()
{
m_bCheckCursor = true;
SetShadow(Point2I(1,1),ColorI(0x01,0x20,0x10) );
}
GuiChatLog::~GuiChatLog()
{
}
void GuiChatLog::initPersistFields()
{
Parent::initPersistFields();
}
bool GuiChatLog::onWake()
{
if(!Parent::onWake())
return false;
//RPGChat::OutputTipF(TIP_WELCOME,
// g_pGPlayer ? g_pGPlayer->GetIDName() : "你",
// g_pRPGSetting ? g_pRPGSetting->GetGameName() : "本系统");
return true;
}
//void GuiChatLog::consoleInit()
//{
//}
void GuiChatLog::AppendText(CSTR szText)
{
if(szText == NULL || szText[0] == 0)
return;
addText(szText,dStrlen(szText), true);
setCursorPosition(0x7fffffff);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -