/// <summary> /// Set icon of the soft key buttons directly. /// </summary> /// <param name="buttonID">The button index</param> /// <param name="icon">Supplied icon</param> public void SetSoftKeyIcon(int buttonID, SoftKeyIcon icon) { Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION, Handle, "SET_SOFT_KEYS"); Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, buttonID); Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_BOOL, true); Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, (int)icon); Function.Call(Hash._POP_SCALEFORM_MOVIE_FUNCTION_VOID); }
public void SetSoftKey(SoftKey index, SoftKeyIcon icon, Color color) { Cellphone.CallFunction( "SET_SOFT_KEYS", (int)index, true, (int)icon ); Cellphone.CallFunction( "SET_SOFT_KEYS_COLOUR", (int)index, (int)color.R, (int)color.G, (int)color.B ); }