/trunk/ChatScroll
Change List |
v3.1 |
- More agressive button hiding |
- Better saved variable initialization |
- Now uses embedded LibDefaults |
- More aggressive button hiding |
- Now uses LibDefaults for variable initialization |
v3.0 |
- Updated for WoW 3.0 |
- Added Portfolio Options, Removed Khaos Options |
-- <= == == == == == == == == == == == == => |
local function ScrollButton_OnShow(self) |
if (ChatScroll_SavedVars and ChatScroll_SavedVars.HideChatButtons) then |
if (ChatScroll_SavedVars and ChatScroll_SavedVars.HideChatButtons == "1") then |
self:Hide() |
end |
end |
else |
local loader = LibStub("LibDefaults") |
local addonName = "ChatScroll" |
loader:SetDefault(addonName, savedVarTableName, "EnableScrolling", "1") |
loader:SetDefault(addonName, savedVarTableName, "HideChatButtons", "0") |
local defaults = { |
EnableScrolling = "1"; |
HideChatButtons = "0"; |
} |
loader:SetDefault(addonName, savedVarTableName, defaults) |
loader:SetScript(addonName, ChatScroll.UpdateButtons) |
end |
## Notes: Makes chat windows scrollable with the mouse wheel and has scroll button visibility options. |
## Notes-deDE: Erlaubt es das Chatfenster mit dem Mausrad rauf und runter zu scrollen. |
## Author: AnduinLothar |
## OptionalDeps: Portfolio |
## SavedVariables: ChatScroll_SavedVars |
## OptionalDeps: Portfolio, LibDefaults |
## SavedVariables: ChatScroll_SavedVars, meh |
## Version: 3.1 |
## X-Date: Oct 25 2008 |
## X-Category: Chat |