inline rgb_t to_rgba_clamp() { UINT8 a = (m_a < 0) ? 0 : (m_a > 255) ? 255 : m_a; UINT8 r = (m_r < 0) ? 0 : (m_r > 255) ? 255 : m_r; UINT8 g = (m_g < 0) ? 0 : (m_g > 255) ? 255 : m_g; UINT8 b = (m_b < 0) ? 0 : (m_b > 255) ? 255 : m_b; return(rgb_t(a, r, g, b)); }
public void CreateAvatar(UINT8 country, UINT8 sex, string name) { baseEntityCall.reqCreateAvatar((byte)country, (byte)sex, name); }
public void SelSex(int index) { sex = (UINT8)index; textSex.text = "Sex:" + index.ToString(); }
public void SelContry(int index) { selCountry = (UINT8)index; textCountry.text = "Country:" + index.ToString(); }