public void PaintWorld(WorldLayer layer) { if (!Hud.Game.Me.IsInTown) { gBrush.DrawEllipse(Hud.Window.CursorX, Hud.Window.CursorY, 9, 9, 0); rBrush.DrawEllipse(Hud.Window.CursorX, Hud.Window.CursorY, 18, 18, 0); gBrush.DrawEllipse(Hud.Window.CursorX, Hud.Window.CursorY, 27, 27, 0); } }
private void ShowEssence() { //var monsterCount = Hud.Game.AliveMonsters.Where(monster => monster.NormalizedXyDistanceToMe < 30 && monster.SummonerAcdDynamicId == 0).Count(); //var layout = SimulacrumRemainFont.GetTextLayout(string.Format("{0:N0}", Hud.Game.Me.Stats.ResourceCurEssence)); //SimulacrumRemainFont.DrawText(layout, HudWidth * 0.5f - (layout.Metrics.Width * 0.5f), HudHeight * (MonsterInBoneRangeYPos + 0.015f)); //_boneArmorSkill. //Hud.Game.Me.Stats.ResourceCurEssence var labelWidth = map(CurEssence, 0, MaxEssence, 1, 100); var color = (int)map(CurEssence, 0, MaxEssence, 0, 255); _essenceBrush = Hud.Render.CreateBrush(245, 255 - (int)(color * 0.8f), color, 0, 0); _essenceBrush.DrawRectangle(HudWidth * 0.5f - labelWidth * 0.5f, HudHeight * 0.485f, labelWidth, EssenceLabelHeight); _essenceBrush.DrawEllipse(HudWidth * 0.5f - labelWidth * 0.5f, HudHeight * 0.485f + EssenceLabelHeight / 2, EssenceLabelHeight / 2, EssenceLabelHeight / 2); _essenceBrush.DrawEllipse(HudWidth * 0.5f + labelWidth * 0.5f, HudHeight * 0.485f + EssenceLabelHeight / 2, EssenceLabelHeight / 2, EssenceLabelHeight / 2); }
public void Paint(float x, float y, float radius, IBrush brush, IBrush shadowBrush) { if (shadowBrush != null) { shadowBrush.StrokeWidth = brush.StrokeWidth + 1; shadowBrush.DrawEllipse(x, y, radius, radius); } brush.DrawEllipse(x, y, radius, radius); }