private void drawOptionMenu()
{
GUILayout.BeginHorizontal();
{
// push the font size of buttons
var pushFontsize = GUI.skin.button.fontSize;
GUI.skin.button.fontSize = 11;
foreach (OPTION_MENUS menu in Enum.GetValues(typeof(OPTION_MENUS)))
{
RTUtil.FakeStateButton(new GUIContent(menu.ToString()), () => this.mMenuValue = (int)menu, this.mMenuValue, (int)menu, GUILayout.Height(16));
}
// pop the saved button size back
GUI.skin.button.fontSize = pushFontsize;
}
GUILayout.EndHorizontal();
}