Yeah, I also want it, as I am playing on OpenMW from past few days. But sadly it's not possible currently.
There's no API or functions to grab an existing UI component and edit it. I tried implementing one of my other mods - a simple one - to show empty containers, and I found no way to edit the tooltip that shows when you look at chests.
We can only wait until the capability to edit such things is added by OpenMW team.
P.S. In this case, I can easily create new tooltips, but can't add it to the specific buttons (admire,bribe etc.).
I think I actually kept it like that for the numbers. The percentages looked a bit wierd without the extra space. And I did not feel like adding extra lines of code just for this minor thing. Maybe I'm a bit lazy.
27 comments
Any plans?
There's no API or functions to grab an existing UI component and edit it. I tried implementing one of my other mods - a simple one - to show empty containers, and I found no way to edit the tooltip that shows when you look at chests.
We can only wait until the capability to edit such things is added by OpenMW team.
P.S. In this case, I can easily create new tooltips, but can't add it to the specific buttons (admire,bribe etc.).
One nitpick that's easily fixable, if you are interested. Line
local chanceText = t:createLabel{ text = "Chance: " .. targets[i] }
Could be edited to remove the extra empty space after Chance:
That way, instead of reading
Chance: Very Low
It will read
Chance: Very Low
As I said, very minor nitpick.