Could you do it and see if there are any debug messages that will help us find the source of the problem?įrom what I can tell all of them. To do it you have to change "TamrielTradeCentre.IsDebug = false" to true in "a". In the meantime could you do a little debugging? I can see that TTC has some debug messages that need to be turned on. I will try to reproduce the problem and debug it. In TTC there's a long function called "GetPriceInfo" with a lot of ifs and I suspect one of the conditions is not met and the function returns nil. But then for some reason TTC hookup function doesn't find "PriceInfo". It looks like TTC hookup is working because as you've noticed there is an empty section divider and the first thing TTC does is inserting it into tooltip. Both addons call the base function so it should work no matter which addon hooks to the function as the first one. TTC uses it to insert its information and CQC just changes the color of the item string. I looked briefly at the code and it turns out that both TTC and CQC hijack the same function responsible for displaying item tooltip. CQC works by hijacking the tooltip display functions (there are a few of them) and simply changes the color of the item string a moment before it is displayed. The quest reward and inventory may use different tooltip screens so it's quite possible that one of them is working just fine and the other runs into problems. Later in the day I'll prepare a new version of the addon and we'll see I hope that delaying my hookup function will solve this problem. Your findings and the message from Akopian Atrebates (thanks!) confirm that the root cause of the problem are the changes I make to the SI_TOOLTIP_ITEM_NAME string. With: zo_strformat(SI_TOOLTIP_ITEM_NAME, CustomQualit圜olors.GetItemQualit圜(item_quality):Colorize(CustomQualit圜olors.OriginalTooltipName))Įdit: And I realized after I typed a reply you came to a similar conclusion. Replaced: SafeAddString(SI_TOOLTIP_ITEM_NAME, CustomQualit圜olors.GetItemQualit圜(item_quality):Colorize(CustomQualit圜olors.OriginalTooltipName), 2) (colorHex|Text) I was able to get around this by using zo_strformat instead of SafeAddString. ![]() With some string formatting it looks like the string coloring is also transferred with the string so the TTC lookup fails. (TamrielTradeCentre.ItemLookUpTable) What didn't make sense is the input seemed the same. I had to add quite a few to TTC to figure out where the failure point was. Microsoft, if you are listening, it is stupid things like this that make people hate your environment.There are no obvious debug messages. So, thank you for helping me find out what Microsoft couldn't bother to tell me. There should be a light mode and a dark mode and then if someone wants to go to the trouble to change specific aspects of the syntax to their favorite color, then they can type in all the commands. It is very hard to type the commands when I can't read what I am typing. ![]() I found you very informative article and surprise, surprise, Microsoft provides a great deal of customizability, but not through their GUI. The background did become white, but the text was yellow and it was even harder to read. Well, because of the syntax highlighting, my color changes did not do what I think any reasonable person would expect. ![]() I went in and changed the text to black and the background to white. For some ridiculous trendy reason, the background on PowerShell is black. I am working on a VM, it is past midnight and the standard color scheme is very difficult to read. There are no words to describe how much I hate what Microsoft did here. You can the display the colors with the Show-TMOutputColor cmdlet: To see how the colors look you can install the TMOutput module: Install-Module -Name TMOutput $ = Available colors ^Īs mentioned above, the number of colors you can choose from is somewhat limited: Black, DarkBlue, DarkGreen, DarkCyan, DarkRed, DarkMagenta, DarkYellow, Gray, DarkGray, Blue, Green, Cyan, Red, Magenta, Yellow, and White. Here is the complete list: $host.ui.rawui.ForegroundColor =
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |