Coder Social home page Coder Social logo

gegenschall / lootspecmanager Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 5.0 161 KB

Addon for World of Warcraft to manage loot specializations on certain events in game.

Home Page: https://www.curseforge.com/wow/addons/lootspecmanager

License: MIT License

Lua 100.00%

lootspecmanager's People

Contributors

gegenschall avatar siroza avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

lootspecmanager's Issues

Personal changes for M+

Hello, I like this plugin very much, but its M+ has errors.Because the moment the boss is defeated, loot has been determined.I made a simple modification.

/LootSpecManager/LootSpecManager.lua  line152-168

--M+
function events:CHALLENGE_MODE_START(mapID)
if set_spec(LTSM_API:get_mythicplus_spec(mapID)) then
print("大米开始,拾取已变更")--means M+ start,spec change
end
end

--[[function events:CHALLENGE_MODE_COMPLETED()
print("大米已完成,改回默认拾取。")--means M+ finish,spec default
set_spec(LTSM_API:get_default_spec())
end]]--not necessary

/LootSpecManager/Gui.lua Add to the end

--buttom
local journalRestoreButton = CreateFrame("Button", "EncounterJournalEncounterFrameInfoCreatureButton1LSSRestoreButton",UIParent,"UIPanelButtonTemplate")
local f = CreateFrame("frame", nil, UIParent, BackdropTemplateMixin and "BackdropTemplate")
local loadframe = CreateFrame("frame")

loadframe:RegisterEvent("ADDON_LOADED")
loadframe:SetScript("OnEvent",function(self,event,addon)
if(addon == "Blizzard_EncounterJournal") then
journalRestoreButton:SetWidth(80)
journalRestoreButton:SetHeight(20)
journalRestoreButton:SetText("LTSM>>")
journalRestoreButton:SetParent(EncounterJournal)
journalRestoreButton:ClearAllPoints()
journalRestoreButton:SetPoint("TOPRIGHT",EncounterJournal,"TOPRIGHT",-20,0)
end
end)

journalRestoreButton:SetScript("OnClick",function(self)
LTSM_GUI.frame:Show()
end)
 

My English is very poor, I hope you can understand what I mean.thx,LOL.

Errors that I get when I log into the game

24x LootSpecManager/Gui.lua:102: attempt to index field 'button' (a nil value)
[string "@LootSpecManager/Gui.lua"]:102: in function HideLootSpecDropDown' [string "@LootSpecManager/LootSpecManager.lua"]:129: in function <LootSpecManager/LootSpecManager.lua:127> [string "=(tail call)"]: ? [string "=[C]"]: in function EncounterJournal_DisplayInstance'
[string "*Blizzard_EncounterJournal.xml:2084_OnClick"]:3: in function <[string "*Blizzard_EncounterJournal.xml:2084_OnClick"]:1>
[string "=[C]"]: in function Click' [string "@Blizzard_EncounterJournal/Blizzard_EncounterJournal.lua"]:1044: in function <...zzard_EncounterJournal/Blizzard_EncounterJournal.lua:937> [string "=[C]"]: in function EncounterJournal_DisplayInstance'
[string "@Details/functions/boss.lua"]:553: in function <Details/functions/boss.lua:529>
[string "=[C]"]: in function pcall' [string "@Details/startup.lua"]:583: in function StartMeUp'
[string "@Details/core/parser.lua"]:6115: in function <Details/core/parser.lua:6114>

Locals:
self =

{
UpdateInstanceLootSpecDropdown = defined @LootSpecManager/Gui.lua:83
OnLootSpecDropdownItemClick = defined @LootSpecManager/Gui.lua:33
CreateLootSpecDropdown = defined @LootSpecManager/Gui.lua:43
UpdateEncounterLootSpecDropdown = defined @LootSpecManager/Gui.lua:65
HideLootSpecDropDown = defined @LootSpecManager/Gui.lua:101
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'button' (a nil value)"

Not able to copy loot choices to another difficulty?

Perhaps I missed the options somewhere? or it hasnt been implemented yet, However I was wondering if you could add the functionality to copy the loot choices to a different difficulty? You could in version 1 and it was super easy. not sure if the rework could add this functionality easy or not.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.