Announce system and Color ingame

04/21/2019 10:36 matonskie23#1
Hello guys i know this is noob asking but i need to know :)
how can i move to top the announce system and make it small its too big in height so i want to minimize it
second how can i change the font color ingame i cant find any tut for this :(
[Only registered and activated users can see links. Click Here To Register...]
04/21/2019 15:56 -Valor#2
#2 = Mover.h -> #define COLOR_NPC
04/22/2019 00:49 yasukomoonflyff#3
# 1 = WndWorld.cpp -> OnEraseBkgnd
05/02/2019 12:38 matonskie23#4
Quote:
Originally Posted by yasukomoonflyff View Post
# 1 = WndWorld.cpp -> OnEraseBkgnd

i want to move my announce system like this thanks ,

[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
05/02/2019 15:42 -Valor#5
BOOL CWndWorld::OnEraseBkgnd

Code:
#ifdef __MESSAGE_SYSTEM
	if (lpMessage.GetLength())
	{
		CRect rect(CPoint(0, 0), CPoint(g_Option.m_nResWidth, 25));
		p2DRender->RenderFillRect(rect, 0xAA2E2E2E);
		p2DRender->TextOut(nxPos--, 5, lpMessage, 0xFFFFFFFF);
		if (nxPos <= 0)
		{
			CSize size = p2DRender->m_pFont->GetTextExtent(lpMessage);
			if (nxPos + size.cx <= 0)
				nxPos = g_Option.m_nResWidth;
		}
	}
#endif // __MESSAGE_SYSTEM
[Only registered and activated users can see links. Click Here To Register...]
05/05/2019 12:57 matonskie23#6
Quote:
Originally Posted by -Valor View Post
BOOL CWndWorld::OnEraseBkgnd

Code:
#ifdef __MESSAGE_SYSTEM
	if (lpMessage.GetLength())
	{
		CRect rect(CPoint(0, 0), CPoint(g_Option.m_nResWidth, 25));
		p2DRender->RenderFillRect(rect, 0xAA2E2E2E);
		p2DRender->TextOut(nxPos--, 5, lpMessage, 0xFFFFFFFF);
		if (nxPos <= 0)
		{
			CSize size = p2DRender->m_pFont->GetTextExtent(lpMessage);
			if (nxPos + size.cx <= 0)
				nxPos = g_Option.m_nResWidth;
		}
	}
#endif // __MESSAGE_SYSTEM
[Only registered and activated users can see links. Click Here To Register...]
i got different code i try to edit to 25 Height every code but still not working sorry if im asking this another noob question
05/05/2019 13:38 Crimal#7
Code:
CRect rect(CPoint(0, 0), CPoint(g_Option.m_nResWidth,20));
p2DRender->RenderFillRect(rect, 0xAA2E2E2E);
p2DRender->TextOut(nxPos--, 11, g_strGlobalMsg, 0xFFFFFFFF);
05/13/2019 11:21 matonskie23#8
Quote:
Originally Posted by Crimal View Post
Code:
CRect rect(CPoint(0, 0), CPoint(g_Option.m_nResWidth,20));
p2DRender->RenderFillRect(rect, 0xAA2E2E2E);
p2DRender->TextOut(nxPos--, 11, g_strGlobalMsg, 0xFFFFFFFF);
after trying to add this code i got bug ingame