|
You last visited: Today at 22:51
Advertisement
Announce system and Color ingame
Discussion on Announce system and Color ingame within the Flyff Private Server forum part of the Flyff category.
04/21/2019, 10:36
|
#1
|
elite*gold: 0
Join Date: Jul 2012
Posts: 261
Received Thanks: 16
|
Announce system and Color ingame
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
|
|
|
04/21/2019, 15:56
|
#2
|
elite*gold: 0
Join Date: Jul 2018
Posts: 93
Received Thanks: 59
|
#2 = Mover.h -> #define COLOR_NPC
|
|
|
04/22/2019, 00:49
|
#3
|
elite*gold: 0
Join Date: Nov 2016
Posts: 31
Received Thanks: 9
|
# 1 = WndWorld.cpp -> OnEraseBkgnd
|
|
|
05/02/2019, 12:38
|
#4
|
elite*gold: 0
Join Date: Jul 2012
Posts: 261
Received Thanks: 16
|
Quote:
Originally Posted by yasukomoonflyff
# 1 = WndWorld.cpp -> OnEraseBkgnd
|
i want to move my announce system like this thanks ,
|
|
|
05/02/2019, 15:42
|
#5
|
elite*gold: 0
Join Date: Jul 2018
Posts: 93
Received Thanks: 59
|
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
|
|
|
05/05/2019, 12:57
|
#6
|
elite*gold: 0
Join Date: Jul 2012
Posts: 261
Received Thanks: 16
|
Quote:
Originally Posted by -Valor
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
|
#ifdef __ANNOUNCEMENT_SYSTEM
if (g_pPlayer)
{
if (g_strGlobalMsg.GetLength() && g_Option.m_bGlobalBar)
{
#ifdef __RESOLUTION
if (g_Option.m_nResWidth == 1920 && g_Option.m_nResHeight == 1080)
{
CRect rect(CPoint(0, g_Option.m_nResHeight - 90), CPoint(g_Option.m_nResWidth, g_Option.m_nResHeight - 20));
p2DRender->RenderFillRect(rect, 0xAA2E2E2E);
p2DRender->TextOut(nxPos--, g_Option.m_nResHeight - 84, lpMessage, 0xFFFFFFFF);
}
else if (g_Option.m_nResWidth == 1600 && g_Option.m_nResHeight == 1200)
{
CRect rect(CPoint(0, g_Option.m_nResHeight - 210), CPoint(g_Option.m_nResWidth, g_Option.m_nResHeight - 20));
p2DRender->RenderFillRect(rect, 0xAA2E2E2E);
p2DRender->TextOut(nxPos--, g_Option.m_nResHeight - 204, lpMessage, 0xFFFFFFFF);
}
else
#endif // __RESOLUTION
{
CRect rect(CPoint(0, g_Option.m_nResHeight -25), CPoint(g_Option.m_nResWidth, g_Option.m_nResHeight - 20));
p2DRender->RenderFillRect(rect, 0xAA2E2E2E);
p2DRender->TextOut(nxPos--, g_Option.m_nResHeight -84, g_strGlobalMsg, 0xFFFFFFFF);
}
if (nxPos <= 0)
{
CSize size = p2DRender->m_pFont->GetTextExtent(g_strGlobalMsg);
if (nxPos + size.cx <= 0)
nxPos = g_Option.m_nResWidth;
}
}
}
#endif // __ANNOUNCEMENT_SYSTEM
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
|
#7
|
elite*gold: 0
Join Date: Dec 2009
Posts: 51
Received Thanks: 22
|
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
|
#8
|
elite*gold: 0
Join Date: Jul 2012
Posts: 261
Received Thanks: 16
|
Quote:
Originally Posted by Crimal
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
|
|
|
Similar Threads
|
Perfection(PVP)☆120 PVP☆Silk/hour☆Plus Success Announce☆Mastery System&More
06/22/2013 - SRO PServer Advertising - 123 Replies
http://imageshack.us/a/img703/7395/logodhv.png
• Welcome back to perfection, the longest lasting PvP server in silkroad history,
season two of perfection has been launched, we will welcome back all our players, and we will always stay the #1 silkroad private server and server not closed again He new Team Likes to have fun .
Warning: Thenew team is not responsible for the old game.
Server Information:
Starter LvL: 120
Cap: 120
|
All times are GMT +2. The time now is 22:51.
|
|