diff --git a/src/Classes/NotableDBControl.lua b/src/Classes/NotableDBControl.lua index c0a9277aa9..771d990ca8 100644 --- a/src/Classes/NotableDBControl.lua +++ b/src/Classes/NotableDBControl.lua @@ -12,7 +12,7 @@ local m_floor = math.floor local m_huge = math.huge local s_format = string.format -local emotionList = {"Ire", "Guilt", "Greed", "Paranoia", "Envy", "Disgust", "Despair", "Fear", "Suffering", "Isolation" } +local emotionList = {"Ire", "Guilt", "Greed", "Paranoia", "Envy", "Disgust", "Despair", "Fear", "Suffering", "Isolation", "Contempt", "Ferocity", "Melancholy"} ---@param node table ---@return boolean @@ -22,7 +22,7 @@ end ---@class NotableDBControl : ListControl local NotableDBClass = newClass("NotableDBControl", "ListControl", function(self, anchor, rect, itemsTab, db, dbType) - local headerHeight = 68 + local headerHeight = 96 local innerRect = {rect[1], rect[2]+headerHeight, rect[3], rect[4]-headerHeight} self.ListControl(anchor, innerRect, 16, "VERTICAL", false) self.itemsTab = itemsTab @@ -77,7 +77,14 @@ local NotableDBClass = newClass("NotableDBControl", "ListControl", function(self local emotionCheckBoxes = {} for i,emo in ipairs(emotionList) do - local emoCtl = emoCheck(emo, emotionCheckBoxes[i-1] or self.controls.emotionLabel) + local emoCtl + if i == 11 then + local ctl = new("CheckBoxControl", {"TOPLEFT", emotionCheckBoxes[1], "BOTTOMLEFT"}, {0, 2, 26, 26}, "", emoCheckOnChange(emo), "Distilled "..emo, true) + if self.emotionImages then ctl:SetCheckImage(self.emotionImages[emo]) end + emoCtl = ctl + else + emoCtl = emoCheck(emo, emotionCheckBoxes[i-1] or self.controls.emotionLabel) + end emotionCheckBoxes[i] = emoCtl self.controls["emotionCheckbox"..emo] = emoCtl end