示例#1
0
 private static EntityDataRoot smethod_17(Map map_0)
 {
     return(GClass891.smethod_16(0.5f, 0.5f, new EntityRenderFragment[]
     {
         GClass891.smethod_11(Color.Gray, "60px Arial", "center", map_0.MapName, null)
     }));
 }
示例#2
0
    private static EntityDataRoot smethod_18(GClass890 gclass890_0, Map map_0)
    {
        string text = string.Join("\r\n", gclass890_0.method_70());

        if (string.IsNullOrWhiteSpace(text))
        {
            return(null);
        }
        return(GClass891.smethod_16(0.98f, 0.1f, new EntityRenderFragment[]
        {
            GClass891.smethod_11(Color.Red, "30px Arial", "right", text, null)
        }));
    }
示例#3
0
    private static EntityDataRoot smethod_20(Map map_0, Ship ship_0)
    {
        EntityDataRoot entityDataRoot   = new EntityDataRoot((ship_0 is Hero) ? 0.8333333f : 0.166666672f, 0.8f);
        float          hpPercentage     = ship_0.HpPercentage;
        float          shieldPercentage = ship_0.ShieldPercentage;
        string         hpDisplay        = ship_0.HpDisplay;
        string         shieldDisplay    = ship_0.ShieldDisplay;
        int            num  = (int)(Math.Ceiling((double)(116f * hpPercentage / 200f)) * 2.0);
        int            num2 = (int)(Math.Ceiling((double)(116f * shieldPercentage / 200f)) * 2.0);

        entityDataRoot.Data = new List <EntityRenderFragment>
        {
            GClass891.smethod_7(Color.FromArgb(150, Color.LightSlateGray), 120, 20, null),
            GClass891.smethod_7(Color.FromArgb(150, Color.LawnGreen), num, 16, null),
            GClass891.smethod_11(Color.FromArgb(150, Color.White), "12px Arial", "center", hpDisplay, null),
            GClass891.smethod_7(Color.FromArgb(150, Color.LightSlateGray), 120, 20, null),
            GClass891.smethod_7(Color.FromArgb(150, Color.DodgerBlue), num2, 16, null),
            GClass891.smethod_11(Color.FromArgb(150, Color.White), "12px Arial", "center", shieldDisplay, null)
        };
        entityDataRoot.Data[1].OffsetX = (float)(num / 2 - 58);
        entityDataRoot.Data[2].OffsetY = 4f;
        entityDataRoot.Data[3].OffsetY = 24f;
        entityDataRoot.Data[4].OffsetX = (float)(num2 / 2 - 58);
        entityDataRoot.Data[4].OffsetY = 24f;
        entityDataRoot.Data[5].OffsetY = 24f + entityDataRoot.Data[2].OffsetY;
        string string_ = ship_0.Name;
        Hero   hero    = ship_0 as Hero;

        if (hero != null)
        {
            string_ = "";
            if (hero.Cloaked)
            {
                string_ = "Cloaked";
            }
        }
        entityDataRoot.Data.Add(GClass891.smethod_11(Color.DarkRed, "13px Arial", "center", string_, null));
        entityDataRoot.Data.Last <EntityRenderFragment>().OffsetY = entityDataRoot.Data[2].OffsetY - 24f;
        return(entityDataRoot);
    }
示例#4
0
    private static EntityDataRoot smethod_19(GClass890 gclass890_0)
    {
        string  text = string.Format("{0} | CFG: {1} | FRM: {2}", gclass890_0.State.ToString(), gclass890_0.Hero.Config, gclass890_0.Hero.Formation.ToString());
        HeroPet pet  = gclass890_0.Hero.Pet;

        if (pet != null && pet.IsAvailable)
        {
            text += " | PET: ";
            if (gclass890_0.Hero.Pet.IsEnabled)
            {
                text += gclass890_0.Hero.Pet.Mode.ToString();
            }
            else
            {
                text += "Off";
            }
        }
        return(GClass891.smethod_16(0.02f, 0.95f, new EntityRenderFragment[]
        {
            GClass891.smethod_11(Color.Red, "16px Arial", "left", text, null)
        }));
    }