SpoutDev/Spout — Issue #807: Size from GenericItemWidget
Author: TheCherry
Created: 2011-10-25 20:40:25+00:00
State: open

Hello,

i try to use the GenericItemWidget, then i switch the windows size the images switchs it wrong.
See here :

Window : http://666kb.com/u.php
Fullscreen : http://666kb.com/i/by3uf82a5a4g1mjl2.png

I had try much, here my Code :

''' Java
cTest[i] = new GenericContainer();
itemwidget[i] = new GenericItemWidget(new ItemStack(340 + i)); //This makes it display Wool
//itemwidget[i].setX(x).setY(y);
itemwidget[i].setHeight(8).setWidth(8).setDepth(8);
itemwidget[i].setFixed(true);
itemwidget[i].setTooltip("ITEMNAME - GOLDMENGE Gold");

cTest[i].addChild(itemwidget[i]);
cTest[i].setX(x).setY(y);
cTest[i].setAuto(false);
cTest[i].setFixed(true);
cTest[i].setHeight(8).setWidth(8);
somepopup.attachWidget(plugin, cTest[i]);
'''

I had try it with pl.getMainScreen().getX() & pl.getMainScreen().getHeight()
but this values aren't the Screen size.

I hope u can help me.
Sorry for my bad english