consoleColors

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderator: Moderators

Message
Author
Kaspy
Halfway to Eternity
Halfway to Eternity
Posts: 398
Joined: 08 Jun 2012, 15:42
Noob?: No
Location: Brazil

consoleColors

#1 Post by Kaspy »

[EN] How do I get the color value "warning" and "error" as defined in consolecolors.txt?

[PT-BR] Como faço para pegar o valor da cor "warning" e "error" definida no consolecolors.txt?
Image

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: consoleColors

#2 Post by EternalHarvest »

I can't understand that. What do you mean by "get"? Colors defined in those sections are for messages sent with "warning" and "error" functions.

Kaspy
Halfway to Eternity
Halfway to Eternity
Posts: 398
Joined: 08 Jun 2012, 15:42
Noob?: No
Location: Brazil

Re: consoleColors

#3 Post by Kaspy »

[EN]
consoleColors:
[error]
default red

[warning]
default yellow
info yellow
How do I find the color values ​​"Warning" and "error" already pre-defined in order to change to other colors.

I need to find the value was i put in bold to use in plugin:
http://forums.openkore.com/viewtopic.php?f=34&t=16866

[PT-BR]
consoleColors:
[error]
default red

[warning]
default yellow
info yellow


Preciso pegar o valor que deixei em negrito para usar em um plugin:
http://forums.openkore.com/viewtopic.php?f=34&t=16866
Image

Kaspy
Halfway to Eternity
Halfway to Eternity
Posts: 398
Joined: 08 Jun 2012, 15:42
Noob?: No
Location: Brazil

Re: consoleColors

#4 Post by Kaspy »

[EN]
[error]
default red

[warning]
default yellow
info yellow
I need to find the value that i put in bold to use in plugin:
http://forums.openkore.com/viewtopic.php?f=34&t=16866

[PT-BR]
[error]
default red

[warning]
default yellow
info yellow


Preciso pegar o valor que deixei em negrito para usar em um plugin:
http://forums.openkore.com/viewtopic.php?f=34&t=16866
Image

User avatar
SkylorD
Moderators
Moderators
Posts: 1166
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: consoleColors

#5 Post by SkylorD »

Are you talking about color code ?
EG.

Code: Select all

Red : #FF0000 
Learn rules

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: consoleColors

#6 Post by EternalHarvest »

From the consolecolors.txt itself:
# Valid colors are:
# black, darkgrey, grey, white
# red, darkred, yellow, brown, green, darkgreen,
# cyan, darkcyan, blue, darkblue, magenta, darkmagenta,
# default

Kaspy
Halfway to Eternity
Halfway to Eternity
Posts: 398
Joined: 08 Jun 2012, 15:42
Noob?: No
Location: Brazil

Re: consoleColors

#7 Post by Kaspy »

[EN]
This is not, SkylorD and EternalHarvest

I need the suitable value chosed by botter use in consolecolors.txt, in parts that i pointed, to plugin know the [error] and [warning] colors to use, EVEN IT CHANGED BY USER, but i need the variable or algorithm 'cause all users have your own settings

EG.
[error]
default green

[warning]
default yellow
info yellow
color [error] -> returns green
color [warning] -> returns yellow

[PT-BR]
Não é isso, SkylorD e EternalHarvest.

Eu preciso do valor "trocavel" selecionado que o usuario usar em consolecolors.txt, as partes que eu apontei, para o plugin saber as cores de [error] e [warning] para usar, MESMO QUE TROCADO PELO USUARIO, mas eu preciso da variável ou algoritmo pois todo usuário tem sua própria configuração

EX.
[error]
default green

[warning]
default yellow
info yellow
color [error] -> retorna green
color [warning] -> retorna yellow
Image

User avatar
SkylorD
Moderators
Moderators
Posts: 1166
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: consoleColors

#8 Post by SkylorD »

Then, you want change the color...
But, continue printing yellow ?
[warning]
default pink
Algorithm ?
:D
Learn rules

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: consoleColors

#9 Post by EternalHarvest »

KeplerBR wrote:I need the suitable value chosed by botter use in consolecolors.txt, in parts that i pointed, to plugin know the [error] and [warning] colors to use, EVEN IT CHANGED BY USER, but i need the variable or algorithm 'cause all users have your own settings

Code: Select all

use Globals;
$consoleColors{warning}{default}

Kaspy
Halfway to Eternity
Halfway to Eternity
Posts: 398
Joined: 08 Jun 2012, 15:42
Noob?: No
Location: Brazil

Re: consoleColors

#10 Post by Kaspy »

[EN] EternalHarvest, exactly what was needed!
Vlw

How did you find this command?

[PT-BR] EternalHarvest, era exatamente isso que precisava!
Vlw

Como descobriu esse comando?
Image

Locked