public void DrawAllHitPrims() { if (GlobalForceDummyPolyIDVisible < -1) { return; } lock (_lock_everything_monkaS) { if (GlobalForceDummyPolyIDVisible == -1) { foreach (var kvp in HitPrims) { foreach (var prim in kvp.Value) { prim.Draw(null, Matrix.Identity); } } } foreach (var dmy in DummyPoly) { bool isVis = (GlobalForceDummyPolyIDVisible == -1 && DummyPolyVisibleByRefID.ContainsKey(dmy.ReferenceID) && (DummyPolyVisibleByRefID[dmy.ReferenceID] || dmy.ShowAttack != null || dmy.BulletSpawnIDs.Count > 0 || dmy.MiscSpawnTexts.Count > 0 || dmy.SFXSpawnIDs.Count > 0)); bool isForce = GlobalForceDummyPolyIDVisible == (GlobalDummyPolyIDOffset + dmy.ReferenceID); if (isVis || isForce) { dmy.DrawPrim(MODEL.CurrentTransform.WorldMatrix, isForce); } } } }
public void DrawAllHitPrimTexts() { lock (_lock_everything_monkaS) { foreach (var dmy in DummyPoly) { if ((GlobalForceDummyPolyIDVisible < 0 && DummyPolyVisibleByRefID.ContainsKey(dmy.ReferenceID) && DummyPolyVisibleByRefID[dmy.ReferenceID]) || GlobalForceDummyPolyIDVisible == (GlobalDummyPolyIDOffset + dmy.ReferenceID)) { dmy.DrawPrimText(MODEL.CurrentTransform.WorldMatrix, GlobalForceDummyPolyIDVisible == (GlobalDummyPolyIDOffset + dmy.ReferenceID), ShowGlobalIDOffset ? GlobalDummyPolyIDOffset : 0); } } } }
public void DrawAllHitPrims() { lock (_lock_everything_monkaS) { if (GlobalForceDummyPolyIDVisible < 0) { foreach (var kvp in HitPrims) { foreach (var prim in kvp.Value) { prim.Draw(null, MODEL.CurrentTransform.WorldMatrix); } } } foreach (var dmy in DummyPoly) { if ((GlobalForceDummyPolyIDVisible < 0 && DummyPolyVisibleByRefID.ContainsKey(dmy.ReferenceID) && DummyPolyVisibleByRefID[dmy.ReferenceID]) || GlobalForceDummyPolyIDVisible == (GlobalDummyPolyIDOffset + dmy.ReferenceID)) { dmy.DrawPrim(MODEL.CurrentTransform.WorldMatrix, GlobalForceDummyPolyIDVisible == (GlobalDummyPolyIDOffset + dmy.ReferenceID)); } } } }