Skip to content

Commit

Permalink
Added zodiac to the unit status screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
Putnam3145 committed Feb 19, 2018
1 parent 7366912 commit 4598d40
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions raw/scripts/fortbent/extra_gui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,17 @@ function ExtraUnitScreen:onRender()
dfhack.screen.paintString(self.claspectInfo.color,2+self.claspectInfo.classLength,3,self.claspectInfo.aspect)
end
end
if self.extendedZodiacInfo.color~=COLOR_BLACK then
dfhack.screen.paintString({fg=self.extendedZodiacInfo.color,bg=COLOR_BLACK},3,5,self.extendedZodiacInfo.name)
if dfhack.screen.inGraphicsMode() then
dfhack.screen.paintTile({fg=COLOR_BLACK,bg=COLOR_GREY},2,5,'a',self.extendedZodiacInfo.tile)
end
end
end

function ExtraUnitScreen:init(args)
self.claspectInfo=getClaspect(args.parent.unit)
self.extendedZodiacInfo=getZodiac(args.parent.unit)
end

viewscreenActions={}
Expand Down

0 comments on commit 4598d40

Please sign in to comment.