Thread Tools Display Modes
11/01/14, 07:35 PM   #1
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Is there a way to shift an icon in text between |t tags?

Here's my problem:


It's an addition to Harven's Trait and Style written by votan. He used the first bag icon, which is a miniature of the icon in the top menu bar for opening the inventory - and I think it doesn't look all that good after shrinking. The second icon is the one normally shown at the top right corner, but no matter what size I use, it's always placed like this. I'm about to split the string into a control with 3 labels and 2 icons in it, but it'd be so much easier if I could just shift the icon down a bit with some markup.
  Reply With Quote
11/01/14, 11:45 PM   #2
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Which image are you trying to use? Are you trying to get one of these?


Lua Code:
  1. text = zo_strjoin(nil, text, count, "|t35:35:/esoui/art/inventory/inventory_all_tabicon_active.dds|t", "|t35:35:/esoui/art/inventory/inventory_all_tabicon_inactive.dds|t")

or maybe you meant this one?
Lua Code:
  1. text = zo_strjoin(nil, text, count, "|t35:35:/esoui/art/menubar/menubar_inventory_over.dds|t", "|t45:45:/esoui/art/menubar/menubar_inventory_over.dds|t")

Last edited by circonian : 11/01/14 at 11:58 PM.
  Reply With Quote
11/02/14, 04:20 AM   #3
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
Originally Posted by merlight View Post
Here's my problem:


It's an addition to Harven's Trait and Style written by votan. He used the first bag icon, which is a miniature of the icon in the top menu bar for opening the inventory - and I think it doesn't look all that good after shrinking. The second icon is the one normally shown at the top right corner, but no matter what size I use, it's always placed like this.
You are absolutely right. Now you know what the problem was....
It took me hours to find the image and when that. You can not imagine what kind of words I used.
Be the way, the chest image has the same problem.
I already googled up and down.

The only image, that may comes closer is:
|t25:25:esoui/art/inventory/inventory_all_tabicon_active.dds:inheritColor|t

Last edited by votan : 11/02/14 at 05:50 AM.
  Reply With Quote
11/02/14, 06:38 AM   #4
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
What about this icons?
"EsoUI/Art/Tooltips/icon_bag.dds"
"EsoUI/Art/Notifications/notificationicon_trade.dds"
"EsoUI/Art/MapPins/compassvendor.dds"
"EsoUI/Art/Inventory/Gamepad/inventory_all_tabicon_default.dds"
"EsoUI/Art/Crafting/crafting_provisioner_inventorycolumn_icon.dds"

Except of the first image all images are white with black border, so they are suitable for colorization. If you want use the same color as text color, just use "inheritColor":
"|t<width>:<height>:EsoUI/Art/MapPins/compassvendor.dds:inheritColor|t"

This is with disabled colors for trait, width = 20, height = 27:

Last edited by Garkin : 11/02/14 at 06:58 AM.
  Reply With Quote
11/02/14, 07:31 AM   #5
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
Thumbs up

Originally Posted by Garkin View Post
What about this icons?
"EsoUI/Art/Tooltips/icon_bag.dds"
"EsoUI/Art/Notifications/notificationicon_trade.dds"
"EsoUI/Art/MapPins/compassvendor.dds"
"EsoUI/Art/Inventory/Gamepad/inventory_all_tabicon_default.dds"
"EsoUI/Art/Crafting/crafting_provisioner_inventorycolumn_icon.dds"

Except of the first image all images are white with black border, so they are suitable for colorization. If you want use the same color as text color, just use "inheritColor":
"|t<width>:<height>:EsoUI/Art/MapPins/compassvendor.dds:inheritColor|t"

This is with disabled colors for trait, width = 20, height = 27:
ah. great.

The first is the problematic one.
The fourth does not work for me.
I vote for the last one, because "Crafting" is a good category and looks like the third.

Last edited by votan : 11/02/14 at 07:59 AM.
  Reply With Quote
11/02/14, 11:29 AM   #6
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Thanks, "esoui/art/inventory/inventory_all_tabicon_active.dds" looks good enough, hope it won't be removed as it doesn't appear to be used in game.

Question still stands, although I'm pretty sure the answer is NO
  Reply With Quote
11/02/14, 11:35 AM   #7
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Originally Posted by Garkin View Post
What about this icons?
"EsoUI/Art/Tooltips/icon_bag.dds"
"EsoUI/Art/Notifications/notificationicon_trade.dds"
"EsoUI/Art/MapPins/compassvendor.dds"
"EsoUI/Art/Inventory/Gamepad/inventory_all_tabicon_default.dds"
"EsoUI/Art/Crafting/crafting_provisioner_inventorycolumn_icon.dds"
Oh, replied without refresh. I'll try the last one again, previously I viewed it in the chat window with size 24x24 and there were some artifacts around edges, so I dismissed it, but it might be ok for tooltip.
  Reply With Quote
11/04/14, 01:41 PM   #8
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
I was wondering why on Garkin's picture the bag in the top right corner looks so weird. It was from the PTS, right? Because now that poor squeezed bag is on live
  Reply With Quote
11/04/14, 02:27 PM   #9
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by merlight View Post
I was wondering why on Garkin's picture the bag in the top right corner looks so weird. It was from the PTS, right? Because now that poor squeezed bag is on live
Yup. I was just testing updated Pawksickles and I had switched client to to french language...
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Is there a way to shift an icon in text between |t tags?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off