diff --git a/src/net/bdew/lib/gui/widgets/WidgetSimpleIcon.scala b/src/net/bdew/lib/gui/widgets/WidgetSimpleIcon.scala new file mode 100644 index 0000000..7f5b3cc --- /dev/null +++ b/src/net/bdew/lib/gui/widgets/WidgetSimpleIcon.scala @@ -0,0 +1,16 @@ +/* + * Copyright (c) bdew, 2013 - 2014 + * https://github.com/bdew/bdlib + * + * This mod is distributed under the terms of the Minecraft Mod Public + * License 1.0, or MMPL. Please check the contents of the license located in + * http://bdew.net/minecraft-mod-public-license/ + */ + +package net.bdew.lib.gui.widgets + +import net.bdew.lib.gui._ + +case class WidgetSimpleIcon(rect: Rect, icon: Texture) extends Widget { + override def draw(mouse: Point) = parent.drawTexture(rect, icon) +}