Quantcast

Upped version to 10.0.5 and lowered max width of name box from 32 to 16

Christopher Tse [01-28-23 - 05:56]
Upped version to 10.0.5 and lowered max width of name box from 32 to 16
Filename
ChatBubblePool.lua
SpeakerBee.toc
TotalRP3.lua
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);