Thread Tools Display Modes
04-12-09, 02:42 AM   #1
bytora
A Fallenroot Satyr
Join Date: Apr 2009
Posts: 22
Help with ease of Customization

This is a heal grid.

I am looking for ideas how to make this as easy as possible to customize for someone who downloads it.

For starters - It is currently setup with a Full Talent Tree holy paladin.
There are two unit frames, one for a tank as well as yourself, and one for DPS.
Tank has a button for beacon of light and sacred shield.
DPS has Hand of Salvation and Sacrifice.
Both unit frames have two hotspot heal locations.
1. on the left side of the health bar for large heals. left click for Holy Light right click to pop your trinket, Wrath and Holy shock.
2. on the right side of the health bar for small heals. Left click for Flash of Light right click for holy shock.
The name plate has two functions as well, left click cleanse, right click Lay of Hands.

Two notification overlays on the health bar exist. Location (A) is a debuff for cleansing. Location (B) is the Player status and identifies AFK, Dead, Disconnected and targeted, and party leader.

A number of things are customizable in the typical OpenRDX way and some are non-standard.

For example, the far right side buttons change when you click control to an alternate skill and is capable of handling ctrl, alt and shift. The cooldown and alternate skill are all handled in the below script. To customize this it is necessary for someone to go in here, modify the iconDisplaySpellName, iconCtrlDisplaySpellName, iconShiftDisplaySpallName or iconAltDisplaySpellName. The spellCoolDown is used to determin the opacity of the button based on cooldown. There is also an aura icon overlay that will display the skill aura over the button once it has been activated so you can see the expiration. All these will make it very dificult for anyone to customize.

How can I create an interface to add this sort of customization?

Here is the code
Code:
local iconDisplaySpellName = "Hand of Salvation";
local spellCoolDown = "Hand of Salvation";
local iconCtrlDisplaySpellName = "Greater Blessing of Might";
local iconShiftDisplaySpellName = "";
local iconAltDisplaySpellName = "";
local showIfBuffed = false;
local modifyerSpell = "";
local modifyer = false;
local showSkill2 = true;

if(IsAltKeyDown() and string.len(iconAltDisplaySpellName) > 0)then
  modifyer = true;
  modifyerSpell =  iconAltDisplaySpellName;
elseif(IsShiftKeyDown() and string.len(iconShiftDisplaySpellName) > 0)then
  modifyer = true;
  modifyerSpell =  iconShiftDisplaySpellName;
elseif(IsControlKeyDown() and string.len(iconCtrlDisplaySpellName) > 0)then
  modifyer = true;
  modifyerSpell =  iconCtrlDisplaySpellName;
end

if(modifyer == true)then
  local a, b, icon, c, d, e, f, g, h;
  a, b, icon, c, d, e, f, g, h = GetSpellInfo(modifyerSpell);
  frame.Tex_tSkill2:SetTexture(icon);
  local alpha = "1";
   if(showIfBuffed==false)then
     local name = UnitBuff(uid, modifyerSpell);
     if(name ~= nil and string.len(name) > 0)then
       alpha = ".2"
     end
  end
  frame.Frame_fSkill2:SetAlpha(alpha); 
else
  local a, b, icon, c, d, e, f, g, h;
  a, b, icon, c, d, e, f, g, h = GetSpellInfo(iconDisplaySpellName);
  frame.Tex_tSkill2:SetTexture(icon)
  local spellfr = 0;
  local timeLeft = 0;
  local time = GetTime();
  local start, duration, enabled = GetSpellCooldown(spellCoolDown);
  local SpellUsable, nomana = IsUsableSpell(spellCoolDown);
  local SpellUsable = SpellUsable and UnitInRange(uid);

  if duration > 0 then
    timeLeft = (start + duration - time)
    spellfr =   timeLeft / duration;
  end 

  if not SpellUsable then
    frame.Frame_fSkill2:SetAlpha(".1"); 
  else 
    if timeLeft > 1.5  then
       frame.Frame_fSkill2:SetAlpha(".1"); 
    else
       local tl = timeLeft / 1.5;
       local alpha = 1 - (.9 * tl);
       frame.Frame_fSkill2:SetAlpha(alpha); 
    end
  end
end
Attached Thumbnails
Click image for larger version

Name:	Grid.jpg
Views:	824
Size:	47.5 KB
ID:	2463  
Attached Files
File Type: zip OOBE_BytGrid.zip (7.3 KB, 770 views)
File Type: zip OOBE_BytTextures.zip (11.7 KB, 797 views)

Last edited by bytora : 04-12-09 at 03:04 AM.
  Reply With Quote

WoWInterface » Featured Projects » OpenRDX » OpenRDX Community » OpenRDX: Community Chat » Help with ease of Customization


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