• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OTClient Increase the width from chat button

Helliot1

Owner of Empire Online
Joined
Jul 26, 2017
Messages
315
Solutions
1
Reaction score
58
How I said in the title, I was trying to increase the width, but I tried a lot of ways to make it, but I don't have any other idea. Somebody can help me? This seems that only increase the width with how many letter have the "name of tab", but I need put it to "width: 100"

Have a way to do it with padding but I need to put a fixed amount to the width

I tried to put "width: 100" in the Console.Otui but it didn't works

HtUd0PJ.png
 
Last edited:
This:
Lua:
tab:setWidth(tab:getTextSize().width + tab:getPaddingLeft() + tab:getPaddingRight())
In modules/corelib/ui/tabbar.lua, in function UITabBar:addTab(text, panel, icon)
 
This:
Lua:
tab:setWidth(tab:getTextSize().width + tab:getPaddingLeft() + tab:getPaddingRight())
In modules/corelib/ui/tabbar.lua, in function UITabBar:addTab(text, panel, icon)

Thanks for the beginning!!
I should then start with this formula, how I wanna put a fixed amount on the width, I should delete this part
Code:
"(tab:getTextSize().width + tab:getPaddingLeft() + tab:getPaddingRight())"

and put something like this ?
Code:
  tab:setWidth({ 100 })

I tried this too, but it didn't works

Code:
  local novoTamanho = 100
  tab:setWidth(novoTamanho)
 
Last edited:
Back
Top