ID:155693
Apr 12 2011, 10:49 am
|
|
I just wanna know is it possible to maintain the size of an obj in say, your Inventory. If the obj is over 32x32 Pixels, it seems to resize it. I just need it to stay at the same size. :/
|
Apr 13 2011, 5:05 am
|
|
I believe it works based off of the world.icon_size variable. If it's over hat it'll be shrunk down, however changing this will also change how your maps are formatted, and would ultimately require re-iconning everything.
|
You could try using a grid for inventory instead of using a stat panel. I believe you can display an icon of any size into a grid cell.
|
In response to Gunbuddy13
|
|
Using the style sheet built into the grid element, you can customize any icon that is output into the grid to whatever size you specify with the following CSS styling.
tag img.icon {width:32px; height:32px;} //changing 32 to whatever size you would like
|
Grids and statpanels presently have only two sizes for any icons that are linked directly to objects: Big and small. The big size is equal to world.icon_size, while the small size is 16x16.
A grid, however, can contain a cell that has a background image of any size. It is possible to make a cell that has just an image and a link, though right-cicking won't give you access to an object's verbs the way outputting an actual atom to the grid would do. Lummox JR |
In response to Lummox JR
|
|
Lummox JR wrote:
Grids and statpanels presently have only two sizes for any icons that are linked directly to objects: Big and small. The big size is equal to world.icon_size, while the small size is 16x16. Just thought i would re bring this up since i came across something. for the stat panel if you change one of the attributes called allow html you can actually use the \icon[an icon] and this will maintain the object size. dont think it works with grid though. Sorry for bringing up a very old post, its just i was looking for something else and though i would try and give my input in to here |