I would like to know the following:
1. How would I be able to compare the current player color with a color table of my own (granted my own table has the full rgba).
eg.
Code: Select all
if (game.player.color == mycolors.white || game.local_player.color == mycolors.white) then
--#change player color
eg.
Code: Select all
If (game.player.color in mycolors) then
--#true/false
I created this:
Code: Select all
data.raw["gui-style"].default["my_label"] =
{
type="label_style",
parent="label_style",
color={r=1,g=1,b=1},
fontcolor={r=0,g=0,b=0}
}
Code: Select all
path["flow"..ii].add({type="label",name="label"..ii, caption="caption", stype="my_label"})
4. I tried doing inline styles, and it will tell me that the key value doesn't exist
eg.
Code: Select all
player.gui.top.frame["flow"..ii]["label"..ii].style.fontcolor = {r=1,g=1,b=1}