From 7f952cee30ab0a84a9449e89cb2c9316bd0874f4 Mon Sep 17 00:00:00 2001 From: Christopher Tse Date: Sat, 28 Jan 2023 16:56:04 +1100 Subject: [PATCH] Upped version to 10.0.5 and lowered max width of name box from 32 to 16 --- ChatBubblePool.lua | 4 ++-- SpeakerBee.toc | 2 +- TotalRP3.lua | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChatBubblePool.lua b/ChatBubblePool.lua index a682a12..f5014f1 100644 --- a/ChatBubblePool.lua +++ b/ChatBubblePool.lua @@ -45,7 +45,7 @@ local function adjustNameBoxWidth(chatBubble) local nameBox = chatBubble.nameBox; local nameBoxBg = nameBox.background; local strWidth = nameBox.stringMeasure:GetStringWidth(); - local minWidth = 32; + local minWidth = 16; local padding = nameBox.padding.L + nameBox.padding.R; --The max width usually won't be reached because of the character limit on the name box local maxWidth = chatBubble:GetWidth() - padding - nameBox.margin.L @@ -351,7 +351,7 @@ local function createChatBubble(fontSize) local paddingL = nameBox.padding.L; nameBoxBackground:SetPoint("BOTTOMLEFT",nameBox,"BOTTOMLEFT",-paddingL,-nameBox.margin.D) nameBoxBackground:SetPoint("TOPLEFT",nameBox,"TOPLEFT",-paddingL,nameBox.margin.T + 12); - nameBoxBackground:SetWidth(32); + nameBoxBackground:SetWidth(16); nameBoxBackground:SetFrameLevel("12"); nameBoxBackground:SetScript("OnClick", function(self) nameBox:SetFocus() end); nameBoxBackground:SetScript("OnMouseDown", function(self) newChatBubble:StartMoving() end ) diff --git a/SpeakerBee.toc b/SpeakerBee.toc index 0f40305..d886c19 100644 --- a/SpeakerBee.toc +++ b/SpeakerBee.toc @@ -1,7 +1,7 @@ ## Title: Speaker Bee ## Version: 1.0 ## Author: Christopher Tse -## Interface: 100002 +## Interface: 100005 ## OptionalDeps: totalRP3 ## SavedVariablesPerCharacter: settings diff --git a/TotalRP3.lua b/TotalRP3.lua index 84ef7e8..dec6293 100644 --- a/TotalRP3.lua +++ b/TotalRP3.lua @@ -152,6 +152,7 @@ function getTargetTRP3NameAndColor() if targetID == nil then return nil; end + local owner, companionID = companionIDToInfo(targetID); local profile = getCompanionInfo(owner, companionID, targetID); -- 1.7.9.5