diff --git a/Classes/PassiveTreeView.lua b/Classes/PassiveTreeView.lua index 08e556fd..fafddef9 100644 --- a/Classes/PassiveTreeView.lua +++ b/Classes/PassiveTreeView.lua @@ -219,6 +219,27 @@ function PassiveTreeViewClass:Draw(build, viewPort, inputEvents) SetDrawColor(1, 1, 1) DrawImage(bg.handle, viewPort.x, viewPort.y, viewPort.width, viewPort.height, (self.zoomX + viewPort.width/2) / -bgSize, (self.zoomY + viewPort.height/2) / -bgSize, (viewPort.width/2 - self.zoomX) / bgSize, (viewPort.height/2 - self.zoomY) / bgSize) + -- Hack to draw class background art, the position data doesn't seem to be in the tree JSON yet + if build.spec.curClassId == 1 then + local scrX, scrY = treeToScreen(-2750, 1600) + self:DrawAsset(tree.assets.BackgroundStr, scrX, scrY, scale) + elseif build.spec.curClassId == 2 then + local scrX, scrY = treeToScreen(2550, 1600) + self:DrawAsset(tree.assets.BackgroundDex, scrX, scrY, scale) + elseif build.spec.curClassId == 3 then + local scrX, scrY = treeToScreen(-250, -2200) + self:DrawAsset(tree.assets.BackgroundInt, scrX, scrY, scale) + elseif build.spec.curClassId == 4 then + local scrX, scrY = treeToScreen(-150, 2350) + self:DrawAsset(tree.assets.BackgroundStrDex, scrX, scrY, scale) + elseif build.spec.curClassId == 5 then + local scrX, scrY = treeToScreen(-2100, -1500) + self:DrawAsset(tree.assets.BackgroundStrInt, scrX, scrY, scale) + elseif build.spec.curClassId == 6 then + local scrX, scrY = treeToScreen(2350, -1950) + self:DrawAsset(tree.assets.BackgroundDexInt, scrX, scrY, scale) + end + -- Draw the group backgrounds for _, group in pairs(tree.groups) do local scrX, scrY = treeToScreen(group.x, group.y) diff --git a/README.md b/README.md index dcf1791a..52213025 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,7 @@ Other changes: * Moving these into a dedicated tab will provide room for more options to be added in the future * The names of many options have been changed to clarify their function * Some options now have tooltips that explain aspects of their function + * The new class background artworks have been added to the passive skill tree * Support gem compatability is now determined using the same data the game itself uses, and should now be 100% accurate ### 1.1.11 - 2016/10/25 diff --git a/changelog.txt b/changelog.txt index 5cf92fec..442690be 100644 --- a/changelog.txt +++ b/changelog.txt @@ -29,6 +29,7 @@ Other changes: * Moving these into a dedicated tab will provide room for more options to be added in the future * The names of many options have been changed to clarify their function * Some options now have tooltips that explain aspects of their function + * The new class background artworks have been added to the passive skill tree * Support gem compatability is now determined using the same data the game itself uses, and should now be 100% accurate VERSION[1.1.11][2016/10/25] * Added flat mana to ES armour rare templates diff --git a/manifest.xml b/manifest.xml index 4a7d0bb8..9826216f 100644 --- a/manifest.xml +++ b/manifest.xml @@ -7,7 +7,7 @@ - + @@ -28,7 +28,7 @@ - + @@ -135,7 +135,7 @@ - +