Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] CLOSECONTAINER and CLOSEVENDORMENU #1293

Open
canerksk opened this issue Sep 19, 2024 · 0 comments
Open

[Feature Request] CLOSECONTAINER and CLOSEVENDORMENU #1293

canerksk opened this issue Sep 19, 2024 · 0 comments

Comments

@canerksk
Copy link
Contributor

	case CV_CLOSECONTAINER:
	{
		const CItem* pItem = pItem;
		if (s.HasArgs())
		{
			CGrayUID uid = s.GetArgVal();
			if (!uid.IsItem())
				return(false);
			pItem = uid.ItemFind();
		}
		if (pItem)
			closeUIWindow(pItem, PacketCloseUIWindow::Container);
	}
	break;

	case CV_CLOSEVENDORMENU:
	{
		const CChar* pChar = m_pChar;
		if (s.HasArgs())
		{
			CGrayUID uid = s.GetArgVal();
			if (!uid.IsChar())
				return(false);
			pChar = uid.CharFind();
		}
		if (pChar)
			addVendorClose(pChar);
	}
	break;

The codes here are purely examples. Although many have been tested, some may need to be rewritten.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant