Quantcast
Download
(60 Kb)
Download
Updated: 06/13/14 11:19 PM
Addon for:
Inventory Grid View.
Pictures
File Info
Compatibility:
Craglorn (1.1)
Updated:06/13/14 11:19 PM
Created:06/13/14 11:19 PM
Monthly downloads:36
Total downloads:2,230
Favorites:9
MD5:
Categories:Discontinued & Outdated, Bags, Bank, Inventory
Inventory Grid View Skin Template
Version: 1.0
by: Randactyl, ingeniousclown
PLEASE UPLOAD YOUR SKINS AS AN OPTIONAL ADD-ON FOR INVENTORY GRID VIEW!

ALSO NOTE! There IS an issue in ESO where new textures are not loaded with just a /reloadui. This means that if you're testing this and the textures don't show up, they will NOT show up until you quit the game and start again.

I got tired of being forced to explicitly add neat skins that people came up with, so I made a way for a skin maker to easily add their own skins to Inventory Grid View.

This template means to make this process as easy as possible for non-programmers.

This "add-on" has two files, plus a folder with the "classic" skin in it as an example:
IGVSkinTemplate.txt
MySkin.lua

First, change "IGVSkinTemplate.txt" to a unique name to name the skin you're making; no spaces! Whatever you name this, change the folder it is in to be named the same thing!
You can change the name of "MySkin.lua" if you wish, but it is not necessary.
Also, do not forget to replace the textures in the folder with your own!

Open the .txt file you renamed. It should have this inside it:
Code:
## Title: IGVSkinTemplate
## Author: ingeniousclown
## Version: 1.0
## APIVersion: 100004
## DependsOn: InventoryGridView

MySkin.lua
Change the "title" to a unique name to name your skin. This is what will show up in the "Add-ons" menu inside the game. This may have spaces and even color codes (if you know how to do that kinda thing).

Change the author name and version number if you wish.

Check this page to see if the "Current API version" has changed. Make the field match, or it will be "out of date".

LEAVE THE DEPENDS ON!

If you changed the name of the lua file, make sure it is changed inside the .txt file as well.


Now for the other file!
lua Code:
  1. InventoryGridView_RegisterSkin(
  2.     "My Skin's Name",                                   --name
  3.     "IGVSkinTemplate/assets/griditem_background.dds",           --background
  4.     "IGVSkinTemplate/assets/griditem_outline.dds",              --outline
  5.     "IGVSkinTemplate/assets/griditem_hover.dds",                --highlight/hover
  6.     "IGVSkinTemplate/assets/grid_view_toggle_button.dds"        --toggle icon
  7. )

This file is simple. Change "My Skin's Name" to the name you want to give your skin inside the Inventory Grid View settings. The next lines are commented as to what they are, but in order they are: background texture, outline texture, mouse-over texture, grid toggle icon (bottom center).

Remember to replace "IGVSkinTemplate" in the path with whatever you renamed the folder for your skin.

If you wish to use the "classic" icon for any of these (as you might for the toggle icon), simply pass nil instead of a string. That may be confusing for non-programmers, so here is an example that will use the "classic" themed grid toggle icon:
lua Code:
  1. --uses original toggle icon
  2. InventoryGridView_RegisterSkin(
  3.     "My Skin's Name",                                   --name
  4.     "IGVSkinTemplate/assets/griditem_background.dds",           --background
  5.     "IGVSkinTemplate/assets/griditem_outline.dds",              --outline
  6.     "IGVSkinTemplate/assets/griditem_hover.dds",                --highlight/hover
  7.     nil                                         --toggle icon
  8. )
  9.  
  10. --uses "classic" ugly fat outline
  11. InventoryGridView_RegisterSkin(
  12.     "My Skin's Name",                                   --name
  13.     "IGVSkinTemplate/assets/griditem_background.dds",           --background
  14.     nil,                                            --outline
  15.     "IGVSkinTemplate/assets/griditem_hover.dds",                --highlight/hover
  16.     "IGVSkinTemplate/assets/grid_view_toggle_button.dds"        --toggle icon
  17. )


That should be it. Please let me know in the comments section if you have issues.
There have been no comments posted to this file.
Be the first to add one.



Category Jump: