public override void Show(C2DGraphics g2d, int w, int h) { if (!visible) { return; } int iw = 0, ih = 0; g2d.GetImageDim(imgname, ref iw, ref ih); int px = GuiConfig.GetPosition(0, w, iw, x, docking[1]); int py = GuiConfig.GetPosition(0, h, ih, y, docking[0]); g2d.SetColor(color); g2d.Image(imgname, px, py); }