ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   Chat settings are server based? (https://www.esoui.com/forums/showthread.php?t=4912)

QuadroTony 07/20/15 03:33 AM

Chat settings are server based?
 
interesting info

i login to the friend's account and looks like my chat settings was taken from the server

for example my friend using colors and size of the fonts, not default, and yes the imported to me too
also he using RUESO addon, im not
and when i login on his character from my PC i see this instead of
"Chat" on main tab

this supposed to be cyrillic letters if i will install RuESO


SmashingQuasar 07/20/15 04:33 AM

Nice info :) Is there any way to access server-side data?

By the way it might be a noobish question but how do you change the color of text contain in CT_LABEL objects? I want to color some things in the UI :)

Baertram 07/20/15 05:44 AM

Get the label control by help of
local labelCtrl = WINDOW_MANAGER:GetControlByName("name here", "")
if labelCtrl ~= nil then
labelCtrl:SetColor(r, g, b, a)
end

Or just use the name of the label control if you know it already
ZOS_GameMenuLabel1:SetColor(r, g, b, a)

SmashingQuasar 07/20/15 06:54 AM

Quote:

Originally Posted by Baertram (Post 22128)
Get the label control by help of
local labelCtrl = WINDOW_MANAGER:GetControlByName("name here", "")
if labelCtrl ~= nil then
labelCtrl:SetColor(r, g, b, a)
end

Or just use the name of the label control if you know it already
ZOS_GameMenuLabel1:SetColor(r, g, b, a)

I'm sorry but my code doesn't seem to work correctly, it doesn't do anything.

Here's my code:

Code:

ZO_StatsPanelPaneScrollChildAttributeRow1HealthName:SetColor(191, 33, 40, 255) -- I also tried setting the alpha to 1 since it was unclear if the value was expressed as decimal or integer
The text color doesn't change at all :-/

QuadroTony 07/21/15 03:34 AM

also keybinds too - server based

why ZOS did this? interesting

Ayantir 07/21/15 07:11 AM

because it's a mmorpg.

did you never played to other games ?
almost 99% of settings are server sided saved

Baertram 07/21/15 09:51 AM

Try something simple like :SetColor(1, 0, 0, 1) -- should be red then
Inspect ZO_StatsPanelPaneScrollChildAttributeRow1HealthName with ZGOO addon and see if the SetCoor function exists, and check if the "Name" child of ZO_StatsPanelPaneScrollChildAttributeRow1Health is the correct control to colorize. Maybe it has to be another control, like the parent ZO_StatsPanelPaneScrollChildAttributeRow1Health itsself.

I did not check the controls (currently at work) so you need to check for yourself please.

Quote:

Originally Posted by SmashingQuasar (Post 22132)
I'm sorry but my code doesn't seem to work correctly, it doesn't do anything.

Here's my code:

Code:

ZO_StatsPanelPaneScrollChildAttributeRow1HealthName:SetColor(191, 33, 40, 255) -- I also tried setting the alpha to 1 since it was unclear if the value was expressed as decimal or integer
The text color doesn't change at all :-/


SmashingQuasar 07/21/15 11:09 AM

Quote:

Originally Posted by Baertram (Post 22170)
Try something simple like :SetColor(1, 0, 0, 1) -- should be red then
Inspect ZO_StatsPanelPaneScrollChildAttributeRow1HealthName with ZGOO addon and see if the SetCoor function exists, and check if the "Name" child of ZO_StatsPanelPaneScrollChildAttributeRow1Health is the correct control to colorize. Maybe it has to be another control, like the parent ZO_StatsPanelPaneScrollChildAttributeRow1Health itsself.

I did not check the controls (currently at work) so you need to check for yourself please.

Thanks for your help, I will try this tonight, I'm always using Zgoo so the SetColor() function definitely exists for this control and it seems to be the proper control since it is the only one that contains the text I want (parent isn't even a CT_LABEL and doesn't contain any text)

Thanks for you help I'll tell you how things turn out :)

circonian 07/21/15 11:29 AM

The r,g,b,a values are from 0-1 and its because you spelled it wrong, Attributes has an s on the end of it.
Lua Code:
  1. ZO_StatsPanelPaneScrollChildAttributesRow1HealthName:SetColor(1, 1, 0, 1)


All times are GMT -6. The time now is 09:42 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI