[Mini-Release] Post Box Button

03/23/2020 13:19 FIorist#1
Heya :awesome:



Neuz/VersionCommon.h
Code:
#define __WORLDPOST

FuncApplet.cpp
Code:
#ifdef __WORLDPOST
#include "WndWorldPost.h"
#endif // __WORLDPOST
Code:
#ifdef __WORLDPOST
DECLAREAPPLET(AppMain_WndWorldPost, new CWndWorldPost);
#endif // __WORLDPOST
Code:
#ifdef __WORLDPOST
	AddAppletFunc(AppMain_WndWorldPost, APP_WORLDPOST, _T("CWndWorldPost"), NULL, GETTEXT(TID_TIP_DIALOG), 0);
#endif // __WORLDPOST
WndControl.cpp
Code:
#ifdef __WORLDPOST
#include "WndWorldPost.h"
#endif
Search:
Code:
	if( ( m_dwStyle & WBS_HIGHLIGHT ) && m_GlobalShortcut.m_dwShortcut == SHORTCUT_NONE )
	{
Add below:
Code:
#ifdef __WORLDPOST
	if (GetParentWnd()->GetWndId() == APP_WORLDPOST)
	{
		if (GetClientRect().PtInRect(m_ptMouse))
		{
			((CWndWorldPost*)GetParentWnd())->bRenderBg = TRUE;
			if (m_bEnable == TRUE)
				m_bHighLight = TRUE;

			CString strTT2, strTmp;
			CEditString str;

			if (g_pPlayer && !g_pPlayer->IsMode(MODE_MAILBOX))
			{
				if (GetAsyncKeyState(VK_SHIFT) & 0x8000)
				{
					strTT2.Format("Post Box \nNew messages: none\n[Pull outside the edges of the envelope to drag the icon]");
				}
				else
				{
					strTT2.Format("Post Box \nNew messages: none");
				}
			}
			else
			{
				if (GetAsyncKeyState(VK_SHIFT) & 0x8000)
				{
					strTT2.Format("Post Box \nThere are new messages!\n[Pull outside the edges of the envelope to drag the icon]");
				}
				else
				{
					strTT2.Format("Post Box \nThere are new messages!");

				}
			}

			str.AddParsingString(strTT2);
			g_toolTip.PutToolTip(APP_WORLDPOST, str, m_rectCurrentClient, point, 3);
		}
	}
	else
#endif
WndManager.cpp
Search:
Code:
ObjectExecutor(SHORTCUT_APPLET, APP_WORLD);
Add below:
Code:
#ifdef __WORLDPOST
	ObjectExecutor(SHORTCUT_APPLET, APP_WORLDPOST);
#endif
Search:
Code:
#if __VER >= 15 // __GUILD_HOUSE
								if( pWndBase->GetWndApplet()->dwWndId != APP_GH_MAIN )
#endif //__GUILD_HOUSE
Change it to:
Code:
#if __VER >= 15 // __GUILD_HOUSE
								if( pWndBase->GetWndApplet()->dwWndId != APP_GH_MAIN 
#ifdef __WORLDPOST
									&& pWndBase->GetWndApplet()->dwWndId != APP_WORLDPOST
#endif
									)
#endif //__GUILD_HOUSE
ResData.h
(! dont forget to change APP ID to your own)
Code:
#define APP_WORLDPOST    9999
ResData.inc
Code:
APP_WORLDPOST "WndTile00.tga" 1 80 96 0x2410000 26
{
// Title String
""
}
{
// ToolTip
""
}
{
    WTYPE_CUSTOM WIDC_CUSTOM1 "" 0 8 8 63 59 0x260000 0 0 0 0
    {
    // Title String
    ""
    }
    {
    // ToolTip
    ""
    }
    WTYPE_BUTTON WIDC_BUTTON1 "" 0 14 12 56 52 0x220010 0 0 0 0
    {
    // Title String
    ""
    }
    {
    // ToolTip
    ""
    }

}
1) Download WorldPost.rar;
2) Copy WndWorldPost.cpp and WndWorldPost.h to Source/Neuz folder and include to Neuz project;
3) Copy worldpost.tga and worldpost01.tga to your Theme folder.

FINISH :pimp:
03/23/2020 15:01 FIorist#2
Added a missing part of the code :rolleyes:
03/23/2020 16:01 siono01#3
[Only registered and activated users can see links. Click Here To Register...]
Is there something I did wrong?

He showed it in the login interface
03/23/2020 16:43 FIorist#4
Quote:
Originally Posted by siono01 View Post
[Only registered and activated users can see links. Click Here To Register...]
Is there something I did wrong?

He showed it in the login interface
Try rechecking the entire system from the beginning, I think you will find a solution
03/24/2020 13:19 aoyamananami#5
Quote:
Originally Posted by Zzz.. View Post
Heya :awesome:


[Only registered and activated users can see links. Click Here To Register...]

Neuz/VersionCommon.h
Code:
#define __WORLDPOST

FuncApplet.cpp
Code:
#ifdef __WORLDPOST
#include "WndWorldPost.h"
#endif // __WORLDPOST
Code:
#ifdef __WORLDPOST
DECLAREAPPLET(AppMain_WndWorldPost, new CWndWorldPost);
#endif // __WORLDPOST
Code:
#ifdef __WORLDPOST
	AddAppletFunc(AppMain_WndWorldPost, APP_WORLDPOST, _T("CWndWorldPost"), NULL, GETTEXT(TID_TIP_DIALOG), 0);
#endif // __WORLDPOST
WndControl.cpp
Code:
#ifdef __WORLDPOST
#include "WndWorldPost.h"
#endif
Search:
Code:
	if( ( m_dwStyle & WBS_HIGHLIGHT ) && m_GlobalShortcut.m_dwShortcut == SHORTCUT_NONE )
	{
Add below:
Code:
#ifdef __WORLDPOST
	if (GetParentWnd()->GetWndId() == APP_WORLDPOST)
	{
		if (GetClientRect().PtInRect(m_ptMouse))
		{
			((CWndWorldPost*)GetParentWnd())->bRenderBg = TRUE;
			if (m_bEnable == TRUE)
				m_bHighLight = TRUE;

			CString strTT2, strTmp;
			CEditString str;

			if (g_pPlayer && !g_pPlayer->IsMode(MODE_MAILBOX))
			{
				if (GetAsyncKeyState(VK_SHIFT) & 0x8000)
				{
					strTT2.Format("Post Box \nNew messages: none\n[Pull outside the edges of the envelope to drag the icon]");
				}
				else
				{
					strTT2.Format("Post Box \nNew messages: none");
				}
			}
			else
			{
				if (GetAsyncKeyState(VK_SHIFT) & 0x8000)
				{
					strTT2.Format("Post Box \nThere are new messages!\n[Pull outside the edges of the envelope to drag the icon]");
				}
				else
				{
					strTT2.Format("Post Box \nThere are new messages!");

				}
			}

			str.AddParsingString(strTT2);
			g_toolTip.PutToolTip(APP_WORLDPOST, str, m_rectCurrentClient, point, 3);
		}
	}
	else
#endif
WndManager.cpp
Search:
Code:
ObjectExecutor(SHORTCUT_APPLET, APP_WORLD);
Add below:
Code:
#ifdef __WORLDPOST
	ObjectExecutor(SHORTCUT_APPLET, APP_WORLDPOST);
#endif
Search:
Code:
#if __VER >= 15 // __GUILD_HOUSE
								if( pWndBase->GetWndApplet()->dwWndId != APP_GH_MAIN )
#endif //__GUILD_HOUSE
Change it to:
Code:
#if __VER >= 15 // __GUILD_HOUSE
								if( pWndBase->GetWndApplet()->dwWndId != APP_GH_MAIN 
#ifdef __WORLDPOST
									&& pWndBase->GetWndApplet()->dwWndId != APP_WORLDPOST
#endif
									)
#endif //__GUILD_HOUSE
ResData.h
(! dont forget to change APP ID to your own)
Code:
#define APP_WORLDPOST    9999
ResData.inc
Code:
APP_WORLDPOST "WndTile00.tga" 1 80 96 0x2410000 26
{
// Title String
""
}
{
// ToolTip
""
}
{
    WTYPE_CUSTOM WIDC_CUSTOM1 "" 0 8 8 63 59 0x260000 0 0 0 0
    {
    // Title String
    ""
    }
    {
    // ToolTip
    ""
    }
    WTYPE_BUTTON WIDC_BUTTON1 "" 0 14 12 56 52 0x220010 0 0 0 0
    {
    // Title String
    ""
    }
    {
    // ToolTip
    ""
    }

}
1) Download WorldPost.rar;
2) Copy WndWorldPost.cpp and WndWorldPost.h to Source/Neuz folder and include to Neuz project;
3) Copy worldpost.tga and worldpost01.tga to your Theme folder.

FINISH :pimp:
It seems i can't open the attached file after downloading it.
03/24/2020 14:06 FIorist#6
Quote:
Originally Posted by aoyamananami View Post
It seems i can't open the attached file after downloading it.
WndWorldPost.h
[Only registered and activated users can see links. Click Here To Register...]

WndWorldPost.cpp
[Only registered and activated users can see links. Click Here To Register...]

worldpost01.tga
[Only registered and activated users can see links. Click Here To Register...]

worldpost.tga
[Only registered and activated users can see links. Click Here To Register...]
03/25/2020 07:41 matonskie23#7
sometimes the icon cannot move .
03/25/2020 10:10 FIorist#8
Quote:
Originally Posted by matonskie23 View Post
sometimes the icon cannot move .
This "system" is based on Madrigal Gift (offi), so moving the icon is only possible near the edges. You can try changing ResData to align the edges of this icon ^^
03/25/2020 19:04 DevilLog#9
Can you share the button image material?
03/25/2020 19:33 FIorist#10
Quote:
Originally Posted by DevilLog View Post
Can you share the button image material?
worldpost01.tga
[Only registered and activated users can see links. Click Here To Register...]

worldpost.tga
[Only registered and activated users can see links. Click Here To Register...]
03/26/2020 02:38 Ecrypter#11
Quote:
Originally Posted by Zzz.. View Post
Heya :awesome:


[Only registered and activated users can see links. Click Here To Register...]

Neuz/VersionCommon.h
Code:
#define __WORLDPOST

FuncApplet.cpp
Code:
#ifdef __WORLDPOST
#include "WndWorldPost.h"
#endif // __WORLDPOST
Code:
#ifdef __WORLDPOST
DECLAREAPPLET(AppMain_WndWorldPost, new CWndWorldPost);
#endif // __WORLDPOST
Code:
#ifdef __WORLDPOST
	AddAppletFunc(AppMain_WndWorldPost, APP_WORLDPOST, _T("CWndWorldPost"), NULL, GETTEXT(TID_TIP_DIALOG), 0);
#endif // __WORLDPOST
WndControl.cpp
Code:
#ifdef __WORLDPOST
#include "WndWorldPost.h"
#endif
Search:
Code:
	if( ( m_dwStyle & WBS_HIGHLIGHT ) && m_GlobalShortcut.m_dwShortcut == SHORTCUT_NONE )
	{
Add below:
Code:
#ifdef __WORLDPOST
	if (GetParentWnd()->GetWndId() == APP_WORLDPOST)
	{
		if (GetClientRect().PtInRect(m_ptMouse))
		{
			((CWndWorldPost*)GetParentWnd())->bRenderBg = TRUE;
			if (m_bEnable == TRUE)
				m_bHighLight = TRUE;

			CString strTT2, strTmp;
			CEditString str;

			if (g_pPlayer && !g_pPlayer->IsMode(MODE_MAILBOX))
			{
				if (GetAsyncKeyState(VK_SHIFT) & 0x8000)
				{
					strTT2.Format("Post Box \nNew messages: none\n[Pull outside the edges of the envelope to drag the icon]");
				}
				else
				{
					strTT2.Format("Post Box \nNew messages: none");
				}
			}
			else
			{
				if (GetAsyncKeyState(VK_SHIFT) & 0x8000)
				{
					strTT2.Format("Post Box \nThere are new messages!\n[Pull outside the edges of the envelope to drag the icon]");
				}
				else
				{
					strTT2.Format("Post Box \nThere are new messages!");

				}
			}

			str.AddParsingString(strTT2);
			g_toolTip.PutToolTip(APP_WORLDPOST, str, m_rectCurrentClient, point, 3);
		}
	}
	else
#endif
WndManager.cpp
Search:
Code:
ObjectExecutor(SHORTCUT_APPLET, APP_WORLD);
Add below:
Code:
#ifdef __WORLDPOST
	ObjectExecutor(SHORTCUT_APPLET, APP_WORLDPOST);
#endif
Search:
Code:
#if __VER >= 15 // __GUILD_HOUSE
								if( pWndBase->GetWndApplet()->dwWndId != APP_GH_MAIN )
#endif //__GUILD_HOUSE
Change it to:
Code:
#if __VER >= 15 // __GUILD_HOUSE
								if( pWndBase->GetWndApplet()->dwWndId != APP_GH_MAIN 
#ifdef __WORLDPOST
									&& pWndBase->GetWndApplet()->dwWndId != APP_WORLDPOST
#endif
									)
#endif //__GUILD_HOUSE
ResData.h
(! dont forget to change APP ID to your own)
Code:
#define APP_WORLDPOST    9999
ResData.inc
Code:
APP_WORLDPOST "WndTile00.tga" 1 80 96 0x2410000 26
{
// Title String
""
}
{
// ToolTip
""
}
{
    WTYPE_CUSTOM WIDC_CUSTOM1 "" 0 8 8 63 59 0x260000 0 0 0 0
    {
    // Title String
    ""
    }
    {
    // ToolTip
    ""
    }
    WTYPE_BUTTON WIDC_BUTTON1 "" 0 14 12 56 52 0x220010 0 0 0 0
    {
    // Title String
    ""
    }
    {
    // ToolTip
    ""
    }

}
1) Download WorldPost.rar;
2) Copy WndWorldPost.cpp and WndWorldPost.h to Source/Neuz folder and include to Neuz project;
3) Copy worldpost.tga and worldpost01.tga to your Theme folder.

FINISH :pimp:
i think if the world post is like and skills if they have message it will appear in the left side of windows.,? what do you think?
03/26/2020 09:56 FIorist#12
Quote:
Originally Posted by Ecrypter View Post
i think if the world post is like and skills if they have message it will appear in the left side of windows.,? what do you think?
I don't really understand what you mean ^^ This system differs from the "statistics" button and the "skills" button. This system is similar, as I said, to Madrigal Gift (v19).

But you can do this: you can hide the icon when there are no new messages in your mail. In other words: if there are mails, the icon will be displayed. If there are no emails, the icon will not be displayed.

For that:

WndWorldPost.cpp
Search:
Code:
//WorldPostButton->SetVisible(FALSE);
Change it to:
Code:
WorldPostButton->SetVisible(FALSE);
03/27/2020 00:08 Ecrypter#13
Quote:
Originally Posted by Zzz.. View Post
I don't really understand what you mean ^^ This system differs from the "statistics" button and the "skills" button. This system is similar, as I said, to Madrigal Gift (v19).

But you can do this: you can hide the icon when there are no new messages in your mail. In other words: if there are mails, the icon will be displayed. If there are no emails, the icon will not be displayed.

For that:

WndWorldPost.cpp
Search:
Code:
//WorldPostButton->SetVisible(FALSE);
Change it to:
Code:
WorldPostButton->SetVisible(FALSE);
yeah thats what i mean., sorry for my bad english
03/27/2020 11:18 DevilLog#14
Quote:
Originally Posted by Zzz.. View Post
worldpost01.tga
[Only registered and activated users can see links. Click Here To Register...]

worldpost.tga
[Only registered and activated users can see links. Click Here To Register...]
Prompt for decryption key
What is the key?

I'm sorry, I may not have made myself clear.Can you share the button of the chat box and the button of the start menu in the lower left corner?The yellow and chat buttons.
03/27/2020 11:32 FIorist#15
Quote:
Originally Posted by DevilLog View Post
Prompt for decryption key
What is the key?

I'm sorry, I may not have made myself clear.Can you share the button of the chat box and the button of the start menu in the lower left corner?The yellow and chat buttons.

I don't think this is the best idea, since they are in Russian ^^
To be honest, I don't know why you need them. But if you really need them, here:

[Only registered and activated users can see links. Click Here To Register...]