本文整理汇总了Java中me.ichun.mods.ichunutil.client.gui.window.element.ElementMinimize类的典型用法代码示例。如果您正苦于以下问题:Java ElementMinimize类的具体用法?Java ElementMinimize怎么用?Java ElementMinimize使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ElementMinimize类属于me.ichun.mods.ichunutil.client.gui.window.element包,在下文中一共展示了ElementMinimize类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Window
import me.ichun.mods.ichunutil.client.gui.window.element.ElementMinimize; //导入依赖的package包/类
public Window(IWorkspace parent, int x, int y, int w, int h, int minW, int minH, String title, boolean hasTit)
{
workspace = parent;
posX = x;
posY = y;
oriWidth = width = w;
oriHeight = height = h;
minWidth = minW;
minHeight = minH;
titleLocale = title;
hasTitle = hasTit;
if(hasTitle)
{
elements.add(new ElementTitle(this, 0, 0, parent.width - 13, 13, -100));
}
if(canMinimize())
{
elements.add(new ElementMinimize(this, width - 13, 2, 10, 10, -100));
}
docked = -1;
}
示例2: canClickOnElement
import me.ichun.mods.ichunutil.client.gui.window.element.ElementMinimize; //导入依赖的package包/类
@Override
public boolean canClickOnElement(Window window, Element element)
{
return !(sceneManager.scenes.isEmpty() && !window.interactableWhileNoProjects() && !(element instanceof ElementMinimize));
}
示例3: canClickOnElement
import me.ichun.mods.ichunutil.client.gui.window.element.ElementMinimize; //导入依赖的package包/类
@Override
public boolean canClickOnElement(Window window, Element element)
{
return !(projectManager.projects.isEmpty() && !window.interactableWhileNoProjects() && !(element instanceof ElementMinimize));
}