feat: add MeshPort overlay networking, item actions window, and AVA2 client enhancements
- add MeshPort peer-to-peer overlay networking SDK, C++ integration, and Python bindings - add item actions quick use/split/delete/lock overlay window (mt_item_actions) - add shop name range and NPC name visibility settings to system display options - support battlepass ticket activation and month validation in mt_battlepass - support boss tracking teleport destination button in mt_bosses - support asynchronous account registration cancellation and pending login cancellation - update AVA2 item conversion for attr lock scrolls and battlepass tickets - update .gitignore for local build outputs and caches
This commit is contained in:
@@ -2472,11 +2472,24 @@ void CInstanceBase::__UpdateEffectShown()
|
||||
else
|
||||
isShown = false;
|
||||
}
|
||||
m_GraphicThingInstance.SetAttachingEffectShown(isShown);
|
||||
m_GraphicThingInstance.SetAttachingEffectShown(isShown && PORT_IsDisplayVisible());
|
||||
}
|
||||
|
||||
bool CInstanceBase::PORT_IsDisplayVisible()
|
||||
{
|
||||
// AVA2 CActorInstance::IsShop and InstanceBase::__CanRender, including
|
||||
// the original 100/60/40/20/10 metre range presets. Never hide the main actor.
|
||||
CInstanceBase* main = __GetMainInstancePtr();
|
||||
if (!main || main == this || GetRace() < 30000 || GetRace() > 30020)
|
||||
return true;
|
||||
static const unsigned ranges[] = {10000, 6000, 4000, 2000, 1000};
|
||||
return NEW_GetDistanceFromDestInstance(*main) <= ranges[CPythonSystem::Instance().GetShopNamesRange()];
|
||||
}
|
||||
|
||||
bool CInstanceBase::__CanRender()
|
||||
{
|
||||
if (!PORT_IsDisplayVisible())
|
||||
return false;
|
||||
if (!__IsInViewFrustum())
|
||||
return false;
|
||||
if (IsAffect(AFFECT_INVISIBILITY))
|
||||
|
||||
Reference in New Issue
Block a user