ID:224548
 
So I am stumped right now.


This is a screenshot of a project I am currently working on. It's pretty clear in the screenshot that in the weapon grids (the ones labelled weapon 1, weapon 2, and weapon 3), the atoms were intended to show up big enough to fill up the whole grid.

In my case, world.icon_size = 48x24, and the icons for these atoms I would like to send to the grid are 160x64. The grids themselves are slightly larger than 160x64.

I know how to use CSS to get an icon sent to a grid to display at full size, but how do I go about getting an atom to display at full size?


Sending an icon to the grid is an alternative I would like to avoid because I need the mouse interactions (clicking and dragging) with the atom that is displayed in the grid. I know I can still do it with just sending an icon by overriding MouseDrag() and parsing the src_control and over_control, but given the wide variety of objects that will be manipulated in this manner, the icon & parsing approach will likely become very messy and poor alternative to sending the atoms to the grid.
The screen-shot is gorgeous. Good luck and I hope you get this fixed. Sorry, I won't be much help =/
Just a question, do you have "Small icons" ticked in Options when editing the grid?
Yes I do but it is unchecked.
Try to do this when displaying the image in the grid:

src << output("<img src='\ref[weapon.icon]'>", "grid1:1,1");
also try this:
<img src="\ref[icon]" class="icon" style="width:blah;height:blah">
In response to Metamorphman
Metamorphman wrote:
also try this:
<img src="\ref[icon]" class="icon" style="width:blah;height:blah">


You don't need to set width and height, i've tested the code i've posted before and automatically sets it's size without the need of a style.

Just saying.
Ahem:
D4RK3 54B3R wrote:
Sending an icon to the grid is an alternative I would like to avoid because I need the mouse interactions

I don't think it's currently possible. Here's a Feature Request. But I think you'll end up having to use the images. Just write a wrapper capable of tracking it for you.
In response to DarkCampainger
Heh, and:

D4RK3 54B3R wrote:
I know how to use CSS to get an icon sent to a grid to display at full size, but how do I go about getting an atom to display at full size?
src << output("<img src='\ref[atom.icon]'>", "grid1:1,1");


...?
That sends the icon of the atom to the grid, rather than the atom itself. This means that when I use my mouse to click or drag the grid, it won't call atom.Click() or atom.MouseDrop()

I need my mouse interactions with these atoms.
IIRC, I used a second map as part of my HUD to display large objects. I think that might work as a work-around for your problem.
Yeah I'm starting to consider that now. The only problem being that I need about 18 side maps in order to pull it off...