ls- / ls_glass Goto Github PK
View Code? Open in Web Editor NEWSmooth as glass.
License: Apache License 2.0
Smooth as glass.
License: Apache License 2.0
Hello!
I wrote some code to filter out a specific message sent by a specific addon. Glass doesn't seem to like that at all, getting very confused when I pass back nil
instead of the message proper.
The code I was going to use is as follows:
local function ChatFrame_AddMessageOverride(self, message, ...)
-- Check if the message contains the specific string
if message and message:find("Tooltip prices disabled%. Run |cFFFFFF78/oetooltip on|r to enable%.") then
-- Don't add the message to the ChatFrame
return
end
-- Add the message to the ChatFrame
self:ChatFrame_AddMessageOriginal(message, ...)
end
-- Hook the ChatFrame's AddMessage method
for i = 1, NUM_CHAT_WINDOWS do
local frame = _G["ChatFrame"..i]
if frame then
frame.ChatFrame_AddMessageOriginal = frame.AddMessage
frame.AddMessage = ChatFrame_AddMessageOverride
end
end
I currently have a workaround in place where it sends a blank message instead of filtering out the message entirely. So, my question: is this an issue with Glass not accommodating addons filtering out messages, or is this an issue with my own coding incompetence?
Would it be possible to add timestamps to chat messages as a togglable option?
Any chance you can make the animated Twitch emotes work as well? The static ones work but the animated ones only move by 1 frame when you scroll up or down.
Would it be possible to add an option to hide the social button or add it to the chat window's fade?
If you switch chat tabs, the chat in said tabs will now be completely blank, no amount of switching chat tabs fixes the issue.
This one, I understand, will be very niche, but... I don't have a scroll wheel on my mouse!
Do you think it'd be possible to make the default scrollbar toggleable in the options? (Appearing only on mouseover, of course!)
It would help tremendously with accessibility, and I promise that with this and my other request (text alignment), I will almost definitely stop poking you for new features!!
Thank you again! :D
Hi currently you cannot click on chat links with this addon I have another addon that does this but it currently gives me errors when i attempt to do it
-- ClickLinks.lua was here
Hello! The original Glass addon didn't have this feature, which made me terribly sad because it would otherwise be the perfect chat addon for me!
I like to have two chat windows onscreen; one for all the actual chatting and its respective tabs, and the other for loot/system messages/etc. so that those things don't clutter up my chat, whilst still always being visible as they occur.
With that in mind, do you think it'd be possible to integrate multiple chat windows into Glass? Same functionality and all on both!
If it's not possible, I understand completely, and if it's already a feature, I apologise for being a doofus and not noticing!
Thank you for your hard work, it's extremely appreciated!!
Hi, since I am using a 4k Monitor and want the chat to be really small can you add more fonz sizes (maybe down to 6)?
Hello!
First of all: Thank you so much for your addon. I really love it!
I'm not sure if that's a thing on LS: Glass' or BasicChatMods' site but there's currently some unbeautiful behavior between fading in new messages and chat formatting provided by BasicChatMods.
Example:
https://streamable.com/9hacot
It seems like formatting is applied after the fade in animation has finished.
Thanks in advance :)
When i get a whisper i get this error in bugsack, it also pops when i whisper someone or when i reply in a whisper tab, it also doesnt scroll or show the new lines that i typed in that same whisper tab unless i scroll down.
1x ls_Glass/core/components/button.lua:69: attempt to index a nil value
[string "@ls_Glass/core/components/button.lua"]:69: in function HandleMinimizeButton' [string "@ls_Glass/init.lua"]:636: in function <ls_Glass/init.lua:629> [string "=[C]"]: ? [string "=[C]"]: ? [string "=[C]"]: in function
FCF_OpenTemporaryWindow'
[string "@FrameXML/FloatingChatFrame.lua"]:2589: in function <FrameXML/FloatingChatFrame.lua:2572>
Locals:
self =
Noticed this as I started to see more posts on trade chat with profession links. When you mouse over a profession link, it seems a click is triggered automatically. This happens often when trying to scroll the chat with the mouse wheel.
tiptoes in Hi, it's me... back again!
Following on from my previous request about separate windows, I've now gotten a chance to install and try out the addon in-game and you were right! The additional windows work perfectly! Wahoo!
However, I was wondering if it would be possible to add text alignment as an option?
And, crucially, would it also be possible to make it so that you can set separate chat windows to different alignments?
Again, I do understand completely if it's too much trouble, so please don't worry if it's not possible to implement.
Thank you so much all the same!
As the title says, I need to re-apply the custom font everytime I login or reload my UI. I do have an addon changing Blizzard master fonts, however, not sure if that might interfere? But I did check without that addon, and the problem persisted.
Anyway, thank you for your work, this addon is amazing.
This addon is amazing, but I can't get any of my options to stick at all. Every time I reload they reset to default values.
I can see the options have written correctly to the SV but once you open the options panel everything resets.
Would like the option of having a plain consistent background panel, without the gradient. Or at the very least a Gradient that fades from left to right rather than from in the middle outward.
Hello,
Was wondering if you could add an option to have 0 vertical padding (currently restricted at 1) to mimic the default chat.
I'm trying to make it match the combat log, but it seems to have a vertical padding of 0.
Thank you!! :)
Hello, is it possible to add new fonts?
I went to this folder "ls_Glass\embeds\LibSharedMedia-3.0", i edited the file LibSharedMedia-3.0.lua and i added to rows 169 and 188 the following:
SML_MT_font["FONTNAME"] = [[Fonts\FONTNAME.TTF]]
I also added the font in the font folder in the retail directory but after a /reload nothing happens.
Thanks
Issue:
When typing into LS-Glass chat window, I cannot move the cursor via the Left/Right arrow key while typing into the chat.
How to replicate:
Current behavior:
The cursor does not move earlier into the message, and the character turns left.
Expected behavior:
The cursor moves one letter earlier in the message's typing field, with long presses doing multiple moves.
Other Notes:
At this time, it appears that Left Arrow is being pressed as a global button (ie: there's detection that the focus is inside of the Chat Box, instead it attempts to run whatever is associated with the left arrow key (turn character by default).
Chat is resetting to default size everytime I reload the UI. Started happening 30 minutes ago from report.
Not sure why it is happening, or if anyone else is having this issue!
EDIT: upon further investigation, I think this could be a Blizzard issue, the quest log has also been moving vertically during the same period the chat has gone wonky.
Got everything looking smooth and sexy... but I keep seeing the search button out of the corner of my eye. :(
Maybe there is already a way to close this and I'm just dumb?
Any chance to support classic?
I love the fact, that the chat fades out. It makes the view clear and enyojable
But after the chat fades out there is still the Input-Field and Social-Button left over.
It would be great if these also would fade out.
Please allow us to increase the time before fadeout, even at maximum it feels like it fades too quickly and can fade out mid-conversation.
Something that really drives me crazy with WoW chat and that still happens in Glass is that not all lines in the chat are a fixed height, which leads to some lines getting cut off at the top of the chat window. Even when turning vertical padding down to the minimum of 1, a number of things break the uniformity, namely messages that take multiple line, messages with ability icons in them, loot messages, and probably more I'm not thinking of right now.
If possible, I'd love an option to always ensure every line is a uniform height so that no lines ever get cut off.
This error shows up when I start a pet battle.
2x Interface/AddOns/ls_Glass/init.lua:568: table index is nil
[string "@Interface/AddOns/ls_Glass/init.lua"]:568: in function <Interface/AddOns/ls_Glass/init.lua:563>
[string "=[C]"]: in function FCF_SetTemporaryWindowType' [string "@Interface/FrameXML/FloatingChatFrame.lua"]:831: in function <Interface/FrameXML/FloatingChatFrame.lua:787> [string "=[C]"]: in function
FCF_OpenTemporaryWindow'
[string "@Interface/AddOns/Blizzard_PetBattleUI/Blizzard_PetBattleUI.lua"]:173: in function `PetBattleFrame_Display'
[string "@Interface/AddOns/Blizzard_PetBattleUI/Blizzard_PetBattleUI.lua"]:109: in function <...AddOns/Blizzard_PetBattleUI/Blizzard_PetBattleUI.lua:106>
Locals:
chatFrame = ChatFrame11 {
SetJustifyV = defined =[C]:-1
RefreshIfNecessary = defined =[C]:-1
OnPostShow = defined =[C]:-1
CalculateLineAlphaValueFromTimestamp = defined =[C]:-1
isLayoutDirty = true
isDisplayDirty = true
GetFading = defined =[C]:-1
IsTextCopyable = defined =[C]:-1
BaseAddMessage = defined =[C]:-1
shouldFadeAfterInactivity = true
SetIndentedWordWrap = defined =[C]:-1
GetJustifyV = defined =[C]:-1
SetFont = defined =[C]:-1
GetMaxLines = defined =[C]:-1
GetIndentedWordWrap = defined =[C]:-1
buttonSide = "left"
GetFont = defined =[C]:-1
SetMaxLines = defined =[C]:-1
CalculateSelectingCharacterIndicesForVisibleLine = defined =[C]:-1
PageUp = defined =[C]:-1
RefreshDisplay = defined =[C]:-1
SetFontObject = defined =[C]:-1
textIsCopyable = false
SetOnScrollChangedCallback = defined =[C]:-1
CalculateNumVisibleLines = defined =[C]:-1
overrideFadeTimestamp = 0
MarkDisplayDirty = defined =[C]:-1
GetMessageInfo = defined =[C]:-1
GetOnScrollChangedCallback = defined =[C]:-1
AtTop = defined =[C]:-1
GetFontObject = defined =[C]:-1
CanEffectivelyFade = defined =[C]:-1
OnPreSizeChanged = defined =[C]:-1
OnPostMouseUp = defined =[C]:-1
GetSpacing = defined =[C]:-1
OnPreLoad = defined =[C]:-1
SetSpacing = defined =[C]:-1
name = "Pet Battle Combat"
CalculateLineSpacing = defined =[C]:-1
AddMessage = defined @Interface/FrameXML/ChatFrame.lua:2786
InitializeFontableFrame = defined =[C]:-1
GetShadowColor = defined =[C]:-1
isUninteractable = false
SetOnTextCopiedCallback = defined =[C]:-1
originalShow = defined =[C]:-1
AcquireFontString = defined =[C]:-1
TransformMessages = defined =[C]:-1
AtBottom = defined =[C]:-1
buttonFrame = ChatFrame11ButtonFrame {
}
HasFontObject = defined =[C]:-1
GetOnTextCopiedCallback = defined =[C]:-1
SetFading = defined =[C]:-1
OnPostHide = defined =[C]:-1
ScrollByAmount = defined =[C]:-1
GetInsertMode = defined =[C]:-1
SetTimeVisible = defined =[C]:-1
hasOwnFontObject = true
Clear = defined =[C]:-1
oldAlpha = 0
channelList =
Is it possible to have the chat frame fade in when you move your move over the frame? I think that was the original setup as well. Right now mouse wheel down over the frame brings it up
If it is possible, make it so that there is the option in settings to flip the chat window, So that new messages arrive from the top of the window, and the old ones are at the bottom/phase out mid/bottom. This would help me a lot with how my in-game UI is, and i feel it would be a great addition to the customization for others who have their chat like mine, or would just prefer it this way for any reason.
I also think it would be interesting to see if it could be done for the sides, as well.
Hi again,
I have a suggestion, but aware people might not agree. :P
Just like the chat fades from left to right in transparency, becoming completely transparent at the end of the chat box, I think it would look better if this was also matched vertically (from bottom being the value you choose, to the top being completely transparent).
Currently, I think the chat box cuts off abruptly under the chat tabs and would look better smoothed out. But I could be compltely wrong, just imaging it in my head!
First of all, thank you so much for picking up this addon.
One feature of the original Glass addon, was the ability to move the edit box. This made it possible, for instance, to attach the chat to the bottom left corner of the screen, and still have the edit box within bounds.
Would love if you could consider adding this capability to LS: Glass ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.