Go to Page... |
Updated: | 05-27-18 01:29 AM |
Created: | 05-04-12 03:55 PM |
Downloads: | 49,403 |
Favorites: | 152 |
MD5: |
cast [shift] @unit Symbol of the Torch cast Symbol of the Sun
:if role == 1 or role == 6 then target @unit :end :if role == 2 then target @unit cast Healing Spray :end :if role == 3 or role == 4 or role == 5 then cast [shift] @unit Symbol of the Torch cast @unit Symbol of the Sun :end
File Name |
Version |
Size |
Author |
Date |
0.11 |
5MB |
Wildtide |
05-26-18 04:46 PM |
|
0.10.19 |
10MB |
Wildtide |
05-13-18 01:09 PM |
|
0.10.17 |
10MB |
Wildtide |
08-20-16 07:16 AM |
|
0.10.16 |
10MB |
Wildtide |
12-27-15 06:44 AM |
|
0.10.15 |
10MB |
Wildtide |
12-26-15 07:50 AM |
|
0.10.9 |
10MB |
Wildtide |
11-30-15 02:10 AM |
|
0.10.8 |
10MB |
Wildtide |
10-04-15 01:49 PM |
|
0.10.7 |
10MB |
Wildtide |
08-30-15 11:35 AM |
|
0.10.2 |
9MB |
Wildtide |
07-20-15 02:05 PM |
|
0.10.0 |
9MB |
Wildtide |
07-18-15 02:49 AM |
|
0.8.6 |
8MB |
Wildtide |
05-12-15 07:00 AM |
|
0.8.5 |
8MB |
Wildtide |
05-05-15 05:28 AM |
|
0.8.4 |
8MB |
Wildtide |
04-22-15 05:59 AM |
|
0.8.3 |
8MB |
Wildtide |
04-10-15 01:52 AM |
|
0.8.2 |
8MB |
Wildtide |
04-09-15 06:12 AM |
|
0.8.0 |
6MB |
Wildtide |
04-08-15 01:30 PM |
|
0.7.2 |
4MB |
Wildtide |
12-07-14 03:05 AM |
|
0.7.1 |
4MB |
Wildtide |
10-22-14 12:26 PM |
|
0.7.0 |
4MB |
Wildtide |
10-22-14 09:10 AM |
|
0.6.3 |
4MB |
Wildtide |
06-24-14 12:32 AM |
|
0.6.2 |
4MB |
Wildtide |
05-04-14 10:09 AM |
|
0.6.0 |
4MB |
Wildtide |
05-01-14 11:13 PM |
|
0.5.91 |
4MB |
Wildtide |
01-03-14 11:31 AM |
|
0.5.9 |
4MB |
Wildtide |
01-03-14 09:22 AM |
|
0.5.7 |
4MB |
Wildtide |
12-01-13 03:04 AM |
|
0.5.61 |
4MB |
Wildtide |
11-08-13 04:28 AM |
|
0.5.6 |
4MB |
Wildtide |
11-03-13 02:45 AM |
|
0.5.51 |
4MB |
Wildtide |
10-16-13 06:11 AM |
|
0.5.4 |
4MB |
Wildtide |
10-06-13 03:37 AM |
|
0.5.3 |
4MB |
Wildtide |
10-01-13 02:39 PM |
|
0.5.2 |
4MB |
Wildtide |
09-23-13 01:21 AM |
|
0.5.1 |
4MB |
Wildtide |
09-22-13 11:58 PM |
|
0.4.92 |
4MB |
Wildtide |
09-17-13 01:25 PM |
|
0.4.8 |
3MB |
Wildtide |
07-04-13 05:39 PM |
|
0.4.7 |
3MB |
Wildtide |
07-04-13 02:44 PM |
|
0.4.6 |
3MB |
Wildtide |
06-21-13 03:37 PM |
|
0.4.5 |
3MB |
Wildtide |
06-17-13 11:56 AM |
|
0.4.4 |
3MB |
Wildtide |
06-16-13 05:45 PM |
|
0.4.3 |
3MB |
Wildtide |
06-15-13 06:02 AM |
|
0.4.2-beta |
3MB |
Wildtide |
06-15-13 03:11 AM |
|
0.4.1-beta |
3MB |
Wildtide |
06-14-13 12:25 AM |
|
0.4.0-beta |
3MB |
Wildtide |
06-13-13 05:17 PM |
|
0.3.104 |
3MB |
Wildtide |
03-15-13 02:29 AM |
|
0.3.103 |
3MB |
Wildtide |
03-12-13 12:40 PM |
|
0.3.102 |
3MB |
Wildtide |
03-11-13 04:58 PM |
|
0.3.101 |
3MB |
Wildtide |
03-06-13 02:35 AM |
|
0.3.100 |
3MB |
Wildtide |
02-28-13 06:17 PM |
|
0.3.99 |
3MB |
Wildtide |
02-28-13 02:24 AM |
|
0.3.98 |
3MB |
Wildtide |
02-18-13 03:25 AM |
|
0.3.97 |
3MB |
Wildtide |
02-18-13 02:19 AM |
|
0.3.96 |
3MB |
Wildtide |
02-16-13 03:34 AM |
Comment Options |
02-07-13, 06:01 AM | ||
|
Quote:
|
|
|
Wildtide |
View Public Profile |
Send a private message to Wildtide |
Send email to Wildtide |
Find More Posts by Wildtide |
Add Wildtide to Your Buddy List |
Wildtide |
View Public Profile |
Send a private message to Wildtide |
Send email to Wildtide |
Find More Posts by Wildtide |
Add Wildtide to Your Buddy List |
02-13-13, 08:53 PM | |
Forum posts: 0
File comments: 1
Uploads: 0
|
Awesome addon.
Question: How do you disable the default unit frames? I want to use gadgets unit frames. but can't remove the default frames. |
|
spitfire122 |
View Public Profile |
Send a private message to spitfire122 |
Send email to spitfire122 |
Find More Posts by spitfire122 |
Add spitfire122 to Your Buddy List |
02-13-13, 11:04 PM | ||
Quote:
One important note though (unless Trion changed this) is that you won't have the same right-click functionality on those windows like you will the default ones (i.e. right-click self portrait to set mentor level, dungeon difficulty, private/public group and such). It's been a while since I used custom unit frames (for this specific reason) so if you can do all that now with custom ones I need to start using them again. |
||
|
Elaani |
View Public Profile |
Send a private message to Elaani |
Send email to Elaani |
Visit Elaani's homepage! |
Find More Posts by Elaani |
Add Elaani to Your Buddy List |
02-14-13, 01:56 AM | ||
|
Quote:
|
|
|
Wildtide |
View Public Profile |
Send a private message to Wildtide |
Send email to Wildtide |
Visit Wildtide's homepage! |
Find More Posts by Wildtide |
Add Wildtide to Your Buddy List |
02-18-13, 03:04 PM | |
Forum posts: 0
File comments: 45
Uploads: 0
|
you should update to latesr libsimplewidgets library
|
|
topiland |
View Public Profile |
Send a private message to topiland |
Send email to topiland |
Visit topiland's homepage! |
Find More Posts by topiland |
Add topiland to Your Buddy List |
03-01-13, 06:12 AM | |
|
Ive been tinkering again.. And made a change to the XP Bar, adding a new type. (Also, converted the standard rift events to the new Command.Event.Attach model)
PA XP to Cap. For the masochists amongst us! [PA#: 637] 556,282,709/1,525,794,478 [0] (36.46%) Code:
--[[ G A D G E T S ----------------------------------------------------------------- [email protected] DoomSprout: Rift Forums ----------------------------------------------------------------- Gadgets Framework : v0.3.100 Project Date (UTC) : 2013-03-01T00:08:19Z File Modified (UTC) : 2013-02-28T08:20:03Z (Wildtide) ----------------------------------------------------------------- --]] local toc, data = ... local AddonId = toc.identifier local TXT = Library.Translate local XBG = {} -- wtXPPercent Gadget - a simple % display of current XP local xpGadgets = {} local paGadgets = {} local prGadgets = {} local prDetails = nil local paDetails = nil local iconRestedAddon = "Rift" local iconRestedFile = "indicator_friendlyNPC.png.dds" local MAX_CH_LEVEL = 60 local PA_T2_CAP = 628 local PA_T3_CAP = 1079 local PA_T2_EXP = PA_T2_CAP*((PA_T2_CAP*1219)+98781) local PA_T3_EXP = PA_T3_CAP*((PA_T3_CAP*1219)+98781) local PA_T3_ONLY = PA_T3_EXP - PA_T2_EXP local MAX_PA_LEVEL = PA_T3_CAP local MAX_PAXP_REQ = PA_T3_EXP function XBG.OnPAChange(h, accum) if not accum then return end if paDetails == nil then paDetails = Inspect.Attunement.Progress() end if paDetails.needed == nil then for idx, gadget in ipairs(paGadgets) do gadget.bar:SetPoint("BOTTOMRIGHT", gadget, 1.0, 1.0) if gadget.text then gadget.text:SetText(string.format("MAX Planar Attunement Points: %d", paDetails.available+paDetails.spent)) end end else local percent local percentRested = 0 if paDetails.rested and paDetails.rested > accum then percentRested = (paDetails.rested / paDetails.needed) end for idx, gadget in ipairs(paGadgets) do if percentRested > 0 then if gadget.barRested then gadget.barRested:SetPoint("BOTTOMRIGHT", gadget, percentRested, 1.0) gadget.barRested:SetVisible(true) end else if gadget.barRested then gadget.barRested:SetVisible(false) end end if gadget.text then local unspent = "" local pa_cur = 0 local pa_req = 0 if paDetails.available then unspent = string.format("[%d] ", paDetails.available) end if gadget.xpType == "PAXP" then pa_cur = accum pa_req = paDetails.needed else local pa_pts = paDetails.spent+paDetails.available pa_cur = (pa_pts*((pa_pts*1219)+98781))+accum if gadget.pat3 then pa_req = PA_T3_ONLY if pa_cur >= PA_T2_EXP then pa_cur = pa_cur - PA_T2_EXP else pa_cur = 0 end else pa_req = MAX_PAXP_REQ end end percent = (pa_cur / pa_req) gadget.bar:SetPoint("BOTTOMRIGHT", gadget, percent, 1.0) percent = percent*100 if gadget.textType then gadget.text:SetText(string.format("[PA#: %d] %s/%s %s(%.2f%%)", paDetails.spent+paDetails.available+1, WT.Utility.NumberComma(pa_cur), WT.Utility.NumberComma(pa_req), unspent, percent)) else gadget.text:SetText(string.format("[PA#: %d] %s/%s %s(%.2f%%)", paDetails.spent+paDetails.available+1, WT.Utility.NumberDesc(pa_cur), WT.Utility.NumberDesc(pa_req), unspent, percent)) end end end end end function XBG.PAPtChange(h) paDetails = Inspect.Attunement.Progress() XBG.OnPAChange(0, paDetails.accumulated) end function XBG.OnPrestige(h, accum) if not accum then return end if prDetails == nil then prDetails = Inspect.Pvp.Prestige() if prDetails.rank == 1 and prDetails.needed == nil and accum==0 then prDetails.needed=1 end end -- Fix for strange error with nil needed value (API bug?) prDetails.needed = prDetails.needed or 1 local percent = (accum/prDetails.needed) * 100 for idx, gadget in ipairs(prGadgets) do gadget.bar:SetPoint("BOTTOMRIGHT", gadget, accum/prDetails.needed, 1.0) if gadget.text then if gadget.textType then gadget.text:SetText(string.format("[Rank: %d] %s/%s (%.2f%%)", prDetails.rank, WT.Utility.NumberComma(accum), WT.Utility.NumberComma(prDetails.needed), percent)) else gadget.text:SetText(string.format("[Rank: %d] %s/%s (%.2f%%)", prDetails.rank, WT.Utility.NumberDesc(accum), WT.Utility.NumberDesc(prDetails.needed), percent)) end end end end function XBG.RankChange(h) prDetails = Inspect.Pvp.Prestige() XBG.OnPrestige(0, prDetails.accumulated) end function XBG.OnExperience(h, accum, rested, needed) if not accum then return end local pLevel = Inspect.Unit.Detail("player").level if pLevel == MAX_CH_LEVEL then needed = -1 end if needed == -1 then for idx, gadget in ipairs(xpGadgets) do gadget.bar:SetPoint("BOTTOMRIGHT", gadget, 1.0, 1.0) if gadget.text then gadget.text:SetText(string.format("MAX Level: %d", pLevel)) end end else local percent = (accum / needed) * 100 local percentRested = 0 if rested and rested > accum then percentRested = (rested / needed) end local percentString = string.format("%i", math.floor(percent)) .. "%" for idx, gadget in ipairs(xpGadgets) do gadget.bar:SetPoint("BOTTOMRIGHT", gadget, accum / needed, 1.0) if percentRested > 0 then if gadget.barRested then gadget.barRested:SetPoint("BOTTOMRIGHT", gadget, percentRested, 1.0) gadget.barRested:SetVisible(true) end gadget.iconRested:SetPoint("TOPCENTER", gadget, percentRested, 1.0, 0, -18) -- gadget.iconRested:SetVisible(true) -- Icon doesn't look right yet, will fix later else if gadget.barRested then gadget.barRested:SetVisible(false) end gadget.iconRested:SetVisible(false) end if gadget.text then if gadget.textType then gadget.text:SetText(string.format("[Level: %d] %s/%s (%.2f%%)", pLevel, WT.Utility.NumberComma(accum), WT.Utility.NumberComma(needed), percent)) else gadget.text:SetText(string.format("[Level: %d] %s/%s (%.2f%%)", pLevel, WT.Utility.NumberDesc(accum), WT.Utility.NumberDesc(needed), percent)) end end end end end function XBG.Create(configuration) local wrapper = UI.CreateFrame("Texture", WT.UniqueName("wtXP"), WT.Context) wrapper:SetWidth(512) wrapper:SetHeight(15) wrapper:SetTexture("Gadgets", "img/wtXPBar.tga") local bar = UI.CreateFrame("Frame", WT.UniqueName("wtXP"), wrapper) bar:SetPoint("TOPLEFT", wrapper, "TOPLEFT") bar:SetPoint("BOTTOMRIGHT", wrapper, 0.5, 1.0) wrapper.bar = bar if configuration.xpType == nil then configuration.xpType = "XP" end if configuration.colBar == nil then configuration.colBar = {0,0.8,0,0.4} end bar:SetBackgroundColor(unpack(configuration.colBar)) if configuration.tintRested then local barRested = UI.CreateFrame("Frame", WT.UniqueName("wtXPRested"), wrapper) barRested:SetPoint("TOPLEFT", bar, "CENTERRIGHT") barRested:SetPoint("BOTTOMRIGHT", wrapper, 0.5, 1.0) barRested:SetBackgroundColor(0.0,0.6,0.0,0.2) barRested:SetVisible(false) wrapper.barRested = barRested end local rested = UI.CreateFrame("Texture", "texRested", bar) rested:SetPoint("TOPCENTER", wrapper, "BOTTOMLEFT", 0, -18) rested:SetTexture(iconRestedAddon, iconRestedFile) rested:SetVisible(false) wrapper.iconRested = rested if configuration.showText then local txt = UI.CreateFrame("Text", WT.UniqueName("wtXP"), bar) txt:SetFontColor(1,1,1,1) txt:SetPoint("CENTER", wrapper, "CENTER") txt:SetText("-/- (0%)") wrapper.textType = configuration.showFullText wrapper.text = txt bar.Event.Size = function() if configuration.largeText then txt:SetFontSize(bar:GetHeight() * 0.9) else txt:SetFontSize(bar:GetHeight() * 0.6) end end end if configuration.xpType == "XP" then table.insert(xpGadgets, wrapper) elseif configuration.xpType == "PAXP" or configuration.xpType == "PAXPCAP" then wrapper.xpType = configuration.xpType wrapper.pat3 = configuration.pat3 table.insert(paGadgets, wrapper) elseif configuration.xpType == "PRXP" then table.insert(prGadgets, wrapper) end return wrapper, { resizable={100, 8, 1500, 40 } } end local dialog = false function XBG.ConfigDialog(container) dialog = WT.Dialog(container) :Label("Resizable XP Bar Gadget") :Checkbox("showText", "Show Text", false) :Checkbox("largeText", "Large Text", false) :Checkbox("showFullText", "Show Full XP Values", false) :Checkbox("tintRested", "Tint Rested XP on Bar", false) :Combobox("xpType", "XP Type", "XP", { {text="XP", value="XP"}, {text="PA XP", value="PAXP"}, {text="PA XP to cap", value="PAXPCAP"}, {text="Prestige", value="PRXP"} }) :Checkbox("pat3", "Show PA Cap for T3 only", false) :ColorPicker("colBar", "Bar Color", 0, 0.8, 0, 0.4) end function XBG.GetConfiguration() return dialog:GetValues() end function XBG.SetConfiguration(config) dialog:SetValues(config) end WT.Gadget.RegisterFactory("XPBar", { name="XP Bar", description="XP Bar", author="Wildtide/Adelea", version="1.1.0", ["Create"] = XBG.Create, ["ConfigDialog"] = XBG.ConfigDialog, ["GetConfiguration"] = XBG.GetConfiguration, ["SetConfiguration"] = XBG.SetConfiguration, }) function XBG.OnPlayerAvailable(h) XBG.OnExperience(0, Inspect.TEMPORARY.Experience()) local prestige = Inspect.Pvp.Prestige() if prestige and prestige.accumulated then XBG.OnPrestige(0,prestige.accumulated) else XBG.OnPrestige(0,0) end local attunement = Inspect.Attunement.Progress() if attunement and attunement.accumulated then XBG.OnPAChange(0,attunement.accumulated) else XBG.OnPAChange(0,0) end end table.insert(WT.Event.PlayerAvailable, {XBG.OnPlayerAvailable, AddonId, "XPBarGadget_OnPlayerAvailable"}) Command.Event.Attach(Event.TEMPORARY.Experience, XBG.OnExperience, "OnExperienceBar") Command.Event.Attach(Event.Pvp.Prestige.Accumulated, XBG.OnPrestige, "Event.Pvp.Prestige.Accumulated") Command.Event.Attach(Event.Pvp.Prestige.Rank, XBG.RankChange, "Event.Pvp.Prestige.Rank") Command.Event.Attach(Event.Attunement.Progress.Accumulated, XBG.OnPAChange, "Inspect.Attunement.Progress") Command.Event.Attach(Event.Attunement.Progress.Available, XBG.PAPtChange, "Event.Attunement.Progress.Available") Edit: Made the XP bar NOT behave like a PA bar + added an option for PAXP to Cap to only show progress relative to T3
Last edited by adelea : 03-08-13 at 04:40 PM.
|
|
adelea |
View Public Profile |
Send a private message to adelea |
Send email to adelea |
Visit adelea's homepage! |
Find More Posts by adelea |
Add adelea to Your Buddy List |
03-01-13, 06:23 AM | |
|
I've also modified the cast bar a bit.
- Shows the icon next to the bar - Allows the colors to be set (only really works on alpha based textures) - Resized text of spell and timer, and moved timer to bottom right Added some new textures which I use (if you want to include them in gadgets, feel free): Light - Dark : Dark - Light : And this is what the bar looks like using the L2D texture, tinted 0,0,1 Code:
--[[ G A D G E T S ----------------------------------------------------------------- [email protected] DoomSprout: Rift Forums ----------------------------------------------------------------- Gadgets Framework : v0.3.91 Project Date (UTC) : 2012-12-12T21:27:16Z File Modified (UTC) : 2012-12-08T18:16:51Z (Wildtide) ----------------------------------------------------------------- --]] local toc, data = ... local AddonId = toc.identifier local PHICON = "Data/\\UI\\texture\\global\\placeholder_icon.dds" -- wtCastBar provides a simple bar for the player's charge -- Only useful for mages, and it only exists because I didn't want to add a charge bar to the standard frame local function OnCastName(unitFrame, castname) if castname then local unit = unitFrame.Unit if unitFrame.icon then local cbd = Inspect.Unit.Castbar(unit.id) if cbd and cbd.abilityNew then local ad = Inspect.Ability.New.Detail(cbd.abilityNew) if ad and ad.icon then unitFrame.icon:SetTexture("Rift", ad.icon) else unitFrame.icon:SetTexture("Rift", PHICON) end else unitFrame.icon:SetTexture("Rift", PHICON) end end if unit.castUninterruptible then unitFrame.barCast.Image:SetTexture(unitFrame.mediaNoInterrupt.addonId, unitFrame.mediaNoInterrupt.filename) unitFrame.barCast.Image:SetBackgroundColor(unitFrame.colorNoInterrupt[1], unitFrame.colorNoInterrupt[2], unitFrame.colorNoInterrupt[3], unitFrame.colorNoInterrupt[4]) else unitFrame.barCast.Image:SetTexture(unitFrame.mediaInterrupt.addonId, unitFrame.mediaInterrupt.filename) unitFrame.barCast.Image:SetBackgroundColor(unitFrame.colorInterrupt[1], unitFrame.colorInterrupt[2], unitFrame.colorInterrupt[3], unitFrame.colorInterrupt[4]) end end end local function Create(configuration) local castBar = WT.UnitFrame:Create(configuration.unitSpec) castBar:SetWidth(170) castBar:SetHeight(24) if not configuration.hideNotCasting then castBar:SetBackgroundColor(0,0,0,0.4) end if configuration.cbColorInt == nil then configuration.cbColorInt = {0,0,1,0.5} end if configuration.cbColorNonInt == nil then configuration.cbColorNonInt = {1,0.75,0.16,0.5} end castBar.mediaInterrupt = Library.Media.GetTexture(configuration.texture) castBar.mediaNoInterrupt = Library.Media.GetTexture(configuration.textureNoInterrupt) castBar.colorInterrupt = configuration.cbColorInt castBar.colorNoInterrupt = configuration.cbColorNonInt castBar.barCast = castBar:CreateElement( { id="barCast", type="Bar", parent="frame", layer=25, attach = { { point="TOPLEFT", element="frame", targetPoint="TOPLEFT" }, { point="BOTTOMRIGHT", element="frame", targetPoint="BOTTOMRIGHT" }, }, visibilityBinding="castName", binding="castPercent", media=configuration.texture, --colorBinding="castColor", backgroundColor={r=0, g=0, b=0, a=1} }) castBar.labelCast = castBar:CreateElement( { id="labelCast", type="Label", parent="frame", layer=26, attach = {{ point="CENTERLEFT", element="barCast", targetPoint="CENTERLEFT", offsetX=6, offsetY=0 }}, visibilityBinding="castName", text="{castName}", default="", fontSize=12 }) if configuration.showCastTime then castBar.labelTime = castBar:CreateElement( { id="labelTime", type="Label", parent="frame", layer=26, attach = {{ point="BOTTOMRIGHT", element="barCast", targetPoint="BOTTOMRIGHT", offsetX=-4, offsetY=-4 }}, visibilityBinding="castName", text="{castTime}", default="", fontSize=10 }) end if configuration.showIcon then castBar.icon = castBar:CreateElement({ id="abilityIcon", type="Image", parent="frame", layer=30, attach = {{ point = "TOPRIGHT", element="barCast", targetPoint = "TOPLEFT", offsetX=-2, offsetY=0 }}, visibilityBinding="castName", texAddon="Rift", texFile=PHICON }) end castBar.barCast.Event.Size = function(frame) local fh = frame:GetHeight() local s = math.floor(fh * 0.4) if s > 24 then s = 24 end castBar.labelCast:SetFontSize(s) if castBar.labelTime then local l = math.floor(fh * 0.2) if l < 8 then l = 8 end castBar.labelTime:SetFontSize(l) end if configuration.showIcon then castBar.icon:SetHeight(fh) castBar.icon:SetWidth(fh) end end castBar:CreateBinding("castName", castBar, OnCastName, nil) castBar.barCast:SetVisible(false) return castBar, { resizable = { 140, 15, 1000, 300 } } end local dialog = false local function ConfigDialog(container) local lMedia = Library.Media.FindMedia("bar") local listMedia = {} for mediaId, media in pairs(lMedia) do table.insert(listMedia, { ["text"]=mediaId, ["value"]=mediaId }) end dialog = WT.Dialog(container) :Label("The cast bar gadget shows a cast bar for the unit selected.") :Combobox("unitSpec", "Unit to track", "player", { {text="Player", value="player"}, {text="Target", value="player.target"}, {text="Target's Target", value="player.target.target"}, {text="Focus", value="focus"}, {text="Focus's Target", value="focus.target"}, {text="Pet", value="player.pet"}, }, false) :TexSelect("texture", "Texture", "wtCastInterruptable", "bar") :ColorPicker("cbColorInt", "Interruptible color", 0,0,1,0.5) :TexSelect("textureNoInterrupt", "Noninterruptable Texture", "wtCastUninterruptable", "bar") :ColorPicker("cbColorNonInt", "Non-Interruptible color", 1,0.75,0.16,0.5) :Checkbox("hideNotCasting", "Hide when inactive", true) :Checkbox("showCastTime", "Show cast time", true) :Checkbox("showIcon", "Show ability icon", false) end local function GetConfiguration() return dialog:GetValues() end local function SetConfiguration(config) dialog:SetValues(config) end local function Reconfigure(config) assert(config.id, "No id provided in reconfiguration details") local gadgetConfig = wtxGadgets[config.id] local gadget = WT.Gadgets[config.id] assert(gadget, "Gadget id does not exist in WT.Gadgets") assert(gadgetConfig, "Gadget id does not exist in wtxGadgets") assert(gadgetConfig.type == "adCastBar", "Reconfigure Gadget is not a castbar") -- Detect changes to config and apply them to the gadget local requireRecreate = false if gadgetConfig.unitSpec ~= config.unitSpec then gadgetConfig.unitSpec = config.unitSpec requireRecreate = true end if gadgetConfig.texture ~= config.texture then gadgetConfig.texture = config.texture gadget.mediaInterrupt = Library.Media.GetTexture(config.texture) end if gadgetConfig.textureNoInterrupt ~= config.textureNoInterrupt then gadgetConfig.textureNoInterrupt = config.textureNoInterrupt gadget.mediaNoInterrupt = Library.Media.GetTexture(config.textureNoInterrupt) end if gadgetConfig.hideNotCasting ~= config.hideNotCasting then gadgetConfig.hideNotCasting = config.hideNotCasting if not config.hideNotCasting then gadget:SetBackgroundColor(0,0,0,0.4) else gadget:SetBackgroundColor(0,0,0,0) end end if gadgetConfig.showCastTime ~= config.showCastTime then gadgetConfig.showCastTime = config.showCastTime requireRecreate = true end if gadgetConfig.showIcon ~= config.showIcon then gadgetConfig.showIcon = config.showIcon requireRecreate = true end if requireRecreate then WT.Gadget.Delete(gadgetConfig.id) WT.Gadget.Create(gadgetConfig) end end WT.Gadget.RegisterFactory("adCastBar", { name="adCastbar", description="Castbar", author="Wildtide", version="1.1.0", iconTexAddon=AddonId, iconTexFile="img/wtCastBar.png", ["Create"] = Create, ["ConfigDialog"] = ConfigDialog, ["GetConfiguration"] = GetConfiguration, ["SetConfiguration"] = SetConfiguration, ["Reconfigure"] = Reconfigure, })
Last edited by adelea : 03-02-13 at 07:08 AM.
|
|
adelea |
View Public Profile |
Send a private message to adelea |
Send email to adelea |
Visit adelea's homepage! |
Find More Posts by adelea |
Add adelea to Your Buddy List |
03-06-13, 02:43 AM | |
|
D'oh, didn't see these before releasing 0.3.101... I'll get these incorporated into the next release.
Looking awesome as ever |
|
Wildtide |
View Public Profile |
Send a private message to Wildtide |
Send email to Wildtide |
Visit Wildtide's homepage! |
Find More Posts by Wildtide |
Add Wildtide to Your Buddy List |
03-08-13, 04:42 PM | ||
|
Quote:
- Stopped the XP bar behaving like a PA bar. - Added an option that only affects the PA2Cap bar - where it shows XP relative to T3 - assuming the 0 point is capped T2 - shown: Not sure if I prefer being 39.60% done of the total, or 6.25% done of the extra that T3 brought along! |
|
|
adelea |
View Public Profile |
Send a private message to adelea |
Send email to adelea |
Visit adelea's homepage! |
Find More Posts by adelea |
Add adelea to Your Buddy List |
03-10-13, 08:36 AM | |
Forum posts: 0
File comments: 1
Uploads: 0
|
First of all, great addon, keep up the good work.
Now I got a bit of a problem that I cant seem to fix, when using the "standard frame" unit frame template in the new version the role icon gets distorted --> So wondered if you had a fix for it?
Last edited by Erein : 03-10-13 at 08:48 AM.
|
|
Erein |
View Public Profile |
Send a private message to Erein |
Send email to Erein |
Visit Erein's homepage! |
Find More Posts by Erein |
Add Erein to Your Buddy List |
03-11-13, 04:21 AM | ||
|
Quote:
|
|
|
Wildtide |
View Public Profile |
Send a private message to Wildtide |
Send email to Wildtide |
Visit Wildtide's homepage! |
Find More Posts by Wildtide |
Add Wildtide to Your Buddy List |
03-13-13, 06:16 AM | |
Forum posts: 0
File comments: 32
Uploads: 0
|
@Adelea
I really like the castbar on the pic u posted a few posts ago. What do i have to do to get that blue wonder in my game too ? |
|
Omenpapa |
View Public Profile |
Send a private message to Omenpapa |
Send email to Omenpapa |
Visit Omenpapa's homepage! |
Find More Posts by Omenpapa |
Add Omenpapa to Your Buddy List |
03-13-13, 02:40 PM | ||
|
Quote:
|
|
|
Wildtide |
View Public Profile |
Send a private message to Wildtide |
Send email to Wildtide |
Visit Wildtide's homepage! |
Find More Posts by Wildtide |
Add Wildtide to Your Buddy List |
03-14-13, 02:13 AM | |||
|
Quote:
http://www.exyles.com/addons/LibMedi...eaTextures.zip You can then choose the texture from the castbar configuration. My screenshot was taken using the gradientL2D, with a color set to Red = 0, Green =0, Blue = 1, Alpha = 1 I really like the L2D gradient - and (probably over)use it everywhere! |
||
|
adelea |
View Public Profile |
Send a private message to adelea |
Send email to adelea |
Visit adelea's homepage! |
Find More Posts by adelea |
Add adelea to Your Buddy List |