|
You last visited: Today at 19:51
Advertisement
Color buff timer
Discussion on Color buff timer within the Flyff Private Server forum part of the Flyff category.
03/19/2018, 13:12
|
#1
|
elite*gold: 0
Join Date: Jan 2017
Posts: 301
Received Thanks: 28
|
Color buff timer
Hi epvpers,
Currently im having timer that is in blue. "buffs timer" I like to go back to normal text color. Were can i change this. I know this is in WndManager or WndTaskmanager but i cant find it
|
|
|
03/19/2018, 14:59
|
#2
|
elite*gold: 0
Join Date: Mar 2018
Posts: 71
Received Thanks: 5
|
WdManager.cpp just compare from the official
|
|
|
03/19/2018, 15:31
|
#3
|
elite*gold: 0
Join Date: Jan 2017
Posts: 301
Received Thanks: 28
|
Quote:
Originally Posted by Rhea03
WdManager.cpp just compare from the official
|
Unlucky my WndManager.cpp has a lot of difference with the original v19 so this wont help me. Anyone that know the name of this color? like dwColor.....
|
|
|
03/20/2018, 16:40
|
#4
|
elite*gold: 0
Join Date: Jan 2008
Posts: 130
Received Thanks: 78
|
It's actually in WndField.cpp, not WndManager lol.
|
|
|
03/21/2018, 09:52
|
#5
|
elite*gold: 0
Join Date: Jan 2017
Posts: 301
Received Thanks: 28
|
Quote:
Originally Posted by Sammyz
It's actually in WndField.cpp, not WndManager lol.
|
Thanks sir, could you give me more hints to solve the problem. so much color defines
|
|
|
03/21/2018, 12:45
|
#6
|
elite*gold: 60
Join Date: Sep 2017
Posts: 424
Received Thanks: 138
|
In Function ~
Code:
void CWndMgr::PutDestParam( DWORD dwDst1, DWORD dwDst2, DWORD dwAdj1, DWORD dwAdj2, CEditString &str )
Change it two Times....
Code:
#ifdef __NEW_FONT_COLOR
str.AddString(strTemp, D3DCOLOR_XRGB( 255, 0, 0 ) );
#else
str.AddString(strTemp, D3DCOLOR_XRGB( 0, 0, 255 ) );
#endif
-----
Neuz -> VC.h
Code:
#define __NEW_FONT_COLOR
-----
255, 0, 0 = RED
|
|
|
03/21/2018, 12:59
|
#7
|
elite*gold: 0
Join Date: Jan 2017
Posts: 301
Received Thanks: 28
|
Quote:
Originally Posted by Dr. Peacock
In Function ~
Code:
void CWndMgr::PutDestParam( DWORD dwDst1, DWORD dwDst2, DWORD dwAdj1, DWORD dwAdj2, CEditString &str )
Change it two Times....
Code:
#ifdef __NEW_FONT_COLOR
str.AddString(strTemp, D3DCOLOR_XRGB( 255, 0, 0 ) );
#else
str.AddString(strTemp, D3DCOLOR_XRGB( 0, 0, 255 ) );
#endif
-----
Neuz -> VC.h
Code:
#define __NEW_FONT_COLOR
-----
255, 0, 0 = RED
|
Thanks for your reply. But i think this is more like the eatable buffs. I ment more like the buffs you get from buff pang. The count down timer is in blue color
|
|
|
03/21/2018, 13:13
|
#8
|
elite*gold: 60
Join Date: Sep 2017
Posts: 424
Received Thanks: 138
|
Quote:
Originally Posted by KingKeesie
Thanks for your reply. But i think this is more like the eatable buffs. I ment more like the buffs you get from buff pang. The count down timer is in blue color
|
This is for the Buffs from the Buff Pang/Peng.
This is R/G/B Color... Try to search for the right one you want? 0, 0, 255 = BLUE
|
|
|
03/21/2018, 15:59
|
#9
|
elite*gold: 0
Join Date: Jan 2008
Posts: 130
Received Thanks: 78
|
Quote:
Originally Posted by Dr. Peacock
This is for the Buffs from the Buff Pang/Peng.
This is R/G/B Color... Try to search for the right one you want? 0, 0, 255 = BLUE
|
Incorrect.
Quote:
Originally Posted by KingKeesie
Thanks sir, could you give me more hints to solve the problem. so much color defines
|
Here you go,
WndField.cpp:
Code:
void CWndBuffStatus::RenderOptBuffTime(C2DRender *p2DRender, CPoint& point, CTimeSpan &ct, DWORD dwColor )
{
if(g_Option.m_bVisibleBuffTimeRender)
{
CString str;
int seconds = (int)(ct.GetTotalSeconds());
CD3DFont* pOldFont = p2DRender->GetFont();
p2DRender->SetFont( CWndBase::m_Theme.m_pFontText );
if( seconds >= 3600 ){
seconds = (int)(ct.GetTotalHours());
str.Format( "%d" , seconds );
p2DRender->TextOut(point.x+2, point.y+20, str+"h", dwColor, 0xFF000000);//hours
}
else if( seconds >= 60 ){
seconds = (int)(ct.GetTotalMinutes());
str.Format( "%d" , seconds );
p2DRender->TextOut(point.x+2, point.y+20, str+"m", dwColor, 0xFF000000);///minutes
}
else {
seconds = (int)(ct.GetTotalSeconds());
if( seconds < 10 )
dwColor = D3DCOLOR_XRGB( 190, 0, 0 );
str.Format( "%d" , seconds );
p2DRender->TextOut(point.x+2, point.y+20, str+"s", dwColor, 0xFF000000);//seconds
}
p2DRender->SetFont( pOldFont );
}
}
|
|
|
03/21/2018, 17:19
|
#10
|
elite*gold: 0
Join Date: Jan 2017
Posts: 301
Received Thanks: 28
|
Quote:
Originally Posted by Sammyz
Incorrect.
Here you go,
WndField.cpp:
Code:
void CWndBuffStatus::RenderOptBuffTime(C2DRender *p2DRender, CPoint& point, CTimeSpan &ct, DWORD dwColor )
{
if(g_Option.m_bVisibleBuffTimeRender)
{
CString str;
int seconds = (int)(ct.GetTotalSeconds());
CD3DFont* pOldFont = p2DRender->GetFont();
p2DRender->SetFont( CWndBase::m_Theme.m_pFontText );
if( seconds >= 3600 ){
seconds = (int)(ct.GetTotalHours());
str.Format( "%d" , seconds );
p2DRender->TextOut(point.x+2, point.y+20, str+"h", dwColor, 0xFF000000);//hours
}
else if( seconds >= 60 ){
seconds = (int)(ct.GetTotalMinutes());
str.Format( "%d" , seconds );
p2DRender->TextOut(point.x+2, point.y+20, str+"m", dwColor, 0xFF000000);///minutes
}
else {
seconds = (int)(ct.GetTotalSeconds());
if( seconds < 10 )
dwColor = D3DCOLOR_XRGB( 190, 0, 0 );
str.Format( "%d" , seconds );
p2DRender->TextOut(point.x+2, point.y+20, str+"s", dwColor, 0xFF000000);//seconds
}
p2DRender->SetFont( pOldFont );
}
}
|
this is code how it is now. I think 0xFF000000 is white color? BTW the second part where it checks is the seconds are under 3600 at your code, is this the beter notation like 19m and not seconds only
Code:
void CWndBuffStatus::RenderOptBuffTime(C2DRender *p2DRender, CPoint& point, CTimeSpan &ct, DWORD dwColor )
{
if(g_Option.m_bVisibleBuffTimeRender)
{
CString str;
int seconds = (int)(ct.GetTotalSeconds());
str.Format( "%d" , seconds );
p2DRender->TextOut(point.x+2, point.y+22, str, dwColor, 0xFF000000);
}
}
Quote:
Originally Posted by Dr. Peacock
In Function ~
Code:
void CWndMgr::PutDestParam( DWORD dwDst1, DWORD dwDst2, DWORD dwAdj1, DWORD dwAdj2, CEditString &str )
Change it two Times....
Code:
#ifdef __NEW_FONT_COLOR
str.AddString(strTemp, D3DCOLOR_XRGB( 255, 0, 0 ) );
#else
str.AddString(strTemp, D3DCOLOR_XRGB( 0, 0, 255 ) );
#endif
-----
Neuz -> VC.h
Code:
#define __NEW_FONT_COLOR
-----
255, 0, 0 = RED
|
This is the full void, 255, 255, 255 rgb is white? ingame it's blue
Code:
void CWndMgr::PutDestParam( DWORD dwDst1, DWORD dwDst2, DWORD dwAdj1, DWORD dwAdj2, CEditString &str )
{
CString strTemp;
CString strSignAdj;
#if __VER >= 10 // __LEGEND // 10Â÷ Àü½Â½Ã½ºÅÛ Neuz, World, Trans
if( dwDst1 != NULL_ID && dwDst1 != 0 && dwDst1 != DST_CHRSTATE )
#else
if( dwDst1 != NULL_ID && dwDst1 != 0 )
#endif //__LEGEND // 10Â÷ Àü½Â½Ã½ºÅÛ Neuz, World, Trans
{
int nAdj = dwAdj1;
if(nAdj < 0)
strSignAdj = "";
else
strSignAdj = "+";
if( IsDst_Rate(dwDst1) )
{
if( dwDst1 == DST_ATTACKSPEED )
strTemp.Format( "\n%s%s%d%%", FindDstString(dwDst1), strSignAdj, static_cast< int >( dwAdj1 ) / 2 / 10 );
else
strTemp.Format( "\n%s%s%d%%", FindDstString(dwDst1), strSignAdj, dwAdj1 );
}
else
{
strTemp.Format( "\n%s%s%d", FindDstString(dwDst1), strSignAdj, dwAdj1 );
}
str.AddString(strTemp, D3DCOLOR_XRGB( 255, 255, 255 ) );
}
#if __VER >= 10 // __LEGEND // 10Â÷ Àü½Â½Ã½ºÅÛ Neuz, World, Trans
if( dwDst2 != NULL_ID && dwDst2 != 0 && dwDst2 != DST_CHRSTATE )
#else
if( dwDst2 != NULL_ID && dwDst2 != 0 )
#endif //__LEGEND // 10Â÷ Àü½Â½Ã½ºÅÛ Neuz, World, Trans
{
int nAdj = dwAdj2;
if(nAdj < 0)
strSignAdj = "";
else
strSignAdj = "+";
if( IsDst_Rate(dwDst2) )
{
if( dwDst2 == DST_ATTACKSPEED )
strTemp.Format( "\n%s%s%d%%", FindDstString(dwDst2), strSignAdj, static_cast< int >( dwAdj2 ) / 2 / 10 );
else
strTemp.Format( "\n%s%s%d%%", FindDstString(dwDst2), strSignAdj, dwAdj2 );
}
else
{
strTemp.Format( "\n%s%s%d", FindDstString(dwDst2), strSignAdj, dwAdj2 );
}
str.AddString(strTemp, D3DCOLOR_XRGB( 255, 255, 255 ) );
}
}
|
|
|
03/21/2018, 18:18
|
#11
|
elite*gold: 0
Join Date: Jan 2008
Posts: 130
Received Thanks: 78
|
It is, and 0xFF000000 is black and the shadow. You can change dwColor to your liking and it will change the text color.
|
|
|
03/22/2018, 09:54
|
#12
|
elite*gold: 0
Join Date: Jan 2017
Posts: 301
Received Thanks: 28
|
Quote:
Originally Posted by Sammyz
It is, and 0xFF000000 is black and the shadow. You can change dwColor to your liking and it will change the text color.
|
Thanks for the help il try this at home. BTW 0xFF000000 is not a hex color. is there some way i can convert this to color. Like an color converter to see what color it wil be. Hex color is alot shorter hex
|
|
|
03/22/2018, 12:08
|
#13
|
elite*gold: 0
Join Date: Jan 2008
Posts: 130
Received Thanks: 78
|
000000 is the hex, just like FFFFFF is to  Just as long as you don't mess with 0xFF you'll be fine. Or use a tool like
|
|
|
Similar Threads
|
Job Timer (Taxi Timer, etc)
09/01/2011 - SRO Hacks, Bots, Cheats & Exploits - 2 Replies
A small utility to keep track of jobs that need timing.
http://img834.imageshack.us/img834/6076/jt01.png
Always read the changelog!
To get access to Job Timer, register at "www.error- soft.net" ( without the spaces between the - )
Press thanks if this helps at all.
|
WoW Color Hack (Use color-codes in text)
09/23/2007 - WoW Exploits, Hacks, Tools & Macros - 31 Replies
WoWColorHack.flt
-=Preamble=-
I'm quite surprised that no one has released
anything similar yet - the theory behind
this dates back to the alpha days. Hell,
I first used this filter on my own alpha
sandbox.
-=Theory=-
|
All times are GMT +1. The time now is 19:54.
|
|