Skip to content

Commit

Permalink
Release 1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Septh committed Nov 3, 2016
1 parent ccedb66 commit aa96e38
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion 2048.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Title: 2048
## Notes: Play while you wait!
## Notes-frFR: Jouez au 2048 entre deux raids !
## Version: 1.1.2
## Version: 1.1.3
## Author: Septh
## SavedVariables: DB2048
## X-Category: Minigames
Expand Down
20 changes: 11 additions & 9 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,34 @@ I rarely read comments here on Curse.com; should you need any help, you'd better

## Change Log

* Version 1.1.2 - 10/26/2016
* Version 1.1.3 - 2016/11/03
* Don't highlight the LDB frame if the display is Bazooka
* Version 1.1.2 - 2016/10/26
* Toc update for 7.1
* Version 1.1.1 - 10/17/2016
* Version 1.1.1 - 2016/10/17
* Internal enhancements
* Highlight LDB frame on show tooltip
* Version 1.1.0 - 09/29/2016
* Version 1.1.0 - 2016/09/29
* Minor code tweaks
* Added an option to hide the visual pad
* Added support for the `Enter` key to restart the game
* Version 1.0.0 - 09/27/2016
* Version 1.0.0 - 2016/09/27
* Release!
* More code cleanup
* Added moves counter
* Cool animations :)
* Changes in saved variables > previous settings from beta versions can't be imported and thus are reset. Sorry about that.
* Version 0.0.5-beta - 09/26/2016
* Version 0.0.5-beta - 2016/09/26
* Many code cleanup, some bug fixes
* Added locales
* Smooth animations
* Version 0.0.4-beta - 09/24/2016
* Version 0.0.4-beta - 2016/09/24
* Minor update for Legion. Still many things to do! :)
* Version 0.0.3-beta - 08/04/2015
* Version 0.0.3-beta - 2015/08/04
* TOC update for 6.2
* Version 0.0.2-beta - 12/04/2014
* Version 0.0.2-beta - 2014/12/04
* Implemented `/2048` slash command and LDB functionality (need to find a better icon, though)
* Version 0.0.1-beta - 12/01/2014
* Version 0.0.1-beta - 2014/12/01
* First beta version. Need some testing and feedback before release.


Expand Down
12 changes: 6 additions & 6 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -563,17 +563,18 @@ function addon:OnEnable()
self.highlightTexture = self.highlightFrame:CreateTexture(nil, 'OVERLAY')
self.highlightTexture:SetTexture('Interface\\QuestFrame\\UI-QuestTitleHighlight')
self.highlightTexture:SetBlendMode('ADD')
self.highlightTexture:Hide()
end

self.lbo = self.lbo or self.ldb:NewDataObject('2048', {
type = 'launcher',
icon = 'Interface\\AddOns\\2048\\img\\checkboard',
OnEnter = function(LDBFrame)
-- Highlight the LDB frame
addon.highlightTexture:SetParent(LDBFrame)
addon.highlightTexture:SetAllPoints(LDBFrame)
addon.highlightTexture:Show()
-- Highlight the LDB frame if not using Bazooka
local LDBFrameName = LDBFrame:GetName() or ''
if not LDBFrameName:find('Bazooka', 1) then
addon.highlightTexture:SetParent(LDBFrame)
addon.highlightTexture:SetAllPoints(LDBFrame)
end

-- Show the tooltip
GameTooltip:SetOwner(LDBFrame, 'ANCHOR_BOTTOM')
Expand All @@ -586,7 +587,6 @@ function addon:OnEnable()
GameTooltip:Hide()

-- Turn highlighting off
addon.highlightTexture:Hide()
addon.highlightTexture:SetParent(addon.highlightFrame)
end
end,
Expand Down

0 comments on commit aa96e38

Please sign in to comment.