Go to Page... |
Thread Tools | Display Modes |
04-12-09, 02:42 AM | #1 |
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 Last edited by bytora : 04-12-09 at 03:04 AM. |
|
WoWInterface » Featured Projects » OpenRDX » OpenRDX Community » OpenRDX: Community Chat » Help with ease of Customization |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|