Ejemplo n.º 1
0
 public void Render(Location pos, Location size)
 {
     if (RenderedBlock != null)
     {
         return;
     }
     if (Tex == null)
     {
         if (Name == "block")
         {
             Tex = TheClient.Textures.GetTexture("blocks/icons/" + SecondaryName.ToLowerFast());
         }
         else
         {
             return;
         }
     }
     Tex.Bind();
     TheClient.CWindow.Rendering2D.SetColor(TheClient.Rendering.AdaptColor(ClientUtilities.Convert(TheClient.Player.GetPosition()), GetColor()));
     TheClient.CWindow.Rendering2D.RenderRectangle(TheClient.CWindow.MainUI.UIContext, (int)pos.X, (int)pos.Y, (int)(pos.X + size.X), (int)(pos.Y + size.Y));
 }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     return(Code.GetHashCode() ^ Name.GetHashCode() ^ ShortName.GetHashCode() ^ VariantName.GetHashCode() ^ StandAloneName.GetHashCode() ^ SecondaryName.GetHashCode() ^ Locale.GetHashCode());
 }