Thread Tools Display Modes
09/20/14, 03:03 AM   #1
Woeler
 
Woeler's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2014
Posts: 40
Updating AI Researchgrid

Hello all,

I'm quite new to making addons and I thought I'd give it a try.

Since AI Researschgrid hasn't been updated since april this year I thought I'd try and add the ninth trait to it (Nirnhoned and Nirncrux). However, it's not really working out.

I tried adding the trait and then changing some numbers so the total number of traits would be 18 and not 16, but it's not that simple (obviously).

Would anyone perhaps show me how it's done so I can get a better understanding of how this works?

Thanks, the lua is in the attachmentsbox.
Attached Files
File Type: lua AIResearchGrid.lua (31.4 KB, 422 views)
  Reply With Quote
09/20/14, 06:14 AM   #2
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Not fully tested yet, but try this version:
https://www.dropbox.com/s/2n4cn5fue0...-v2.2-beta.zip

Change log:
- added Nirnhoned trait
- converted from LibAddonMenu-1.0 to LibAddonMenu-2.0
- fixed appearance with disabled motifs
- fixed tooltip texts for german and french language

Known issue:
- I had to reset saved variables because of Nirnhoned trait
  Reply With Quote
09/20/14, 08:32 AM   #3
Woeler
 
Woeler's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2014
Posts: 40
Hey man,

Thanks! So, now I wanted to change the weapontrait to 'nirncrux' (EXAMPLE). Where in the file should I change that? (sorry if that's a n00b question, but I'm trying to learn)

Last edited by Woeler : 09/20/14 at 08:39 AM.
  Reply With Quote
09/20/14, 10:00 AM   #4
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Woeler View Post
Hey man,

Thanks! So, now I wanted to change the weapontrait to 'nirncrux' (EXAMPLE). Where in the file should I change that? (sorry if that's a n00b question, but I'm trying to learn)
Both weapon and armor traits are called Nirnhoned, so I'm not really sure why do you want to show "nirncrux".

Anyway, this is the line you are looking for (in my version it is line 210):
Lua Code:
  1. AIRG.UI.rowLabels[j]:SetText(GetString("SI_ITEMTRAITTYPE",thisTrait))

It is inside of the loop, and actual string is loaded by this comand from the EsoStrings table:
GetString("SI_ITEMTRAITTYPE", ITEM_TRAIT_TYPE_WEAPON_NIRNHONED)
GetString("SI_ITEMTRAITTYPE", ITEM_TRAIT_TYPE_ARMOR_NIRNHONED)

If you want to use EsoStrings table directly, it is:
Lua Code:
  1. EsoStrings[ _G["SI_ITEMTRAITTYPE" .. ITEM_TRAIT_TYPE_WEAPON_NIRNHONED] ] --the same as EsoStrings[SI_ITEMTRAITTYPE25]
  2. EsoStrings[ _G["SI_ITEMTRAITTYPE" .. ITEM_TRAIT_TYPE_ARMOR_NIRNHONED] ]  --the same as EsoStrings[SI_ITEMTRAITTYPE26]
  Reply With Quote
09/24/14, 02:18 AM   #5
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
Originally Posted by Garkin View Post
Not fully tested yet, but try this version:
https://www.dropbox.com/s/2n4cn5fue0...-v2.2-beta.zip

Change log:
- added Nirnhoned trait
- converted from LibAddonMenu-1.0 to LibAddonMenu-2.0
- fixed appearance with disabled motifs
- fixed tooltip texts for german and french language

Known issue:
- I had to reset saved variables because of Nirnhoned trait
you are the best! you must create your own addon page for it

because for now minion want to update it for oldest version


Last edited by QuadroTony : 09/24/14 at 02:27 AM.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Updating AI Researchgrid


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