void InitButtonDefault(LMS_GuiBaseButton b, LMS_GuiView Details = null, LMS_GuiBaseButton.ClickCallbackDelegate onClick = null, bool ignoreindexing = false) { if (onClick != null) { b.OnClick += onClick; } b.SetTexture((int)E_Texture.DOWN, b.GeneratePlainTexture(Color.black)); b.SetTexture((int)E_Texture.IDLE, b.GeneratePlainTexture(Color.clear)); b.BlendMode = E_BlendMode.BLENDED; if (!ignoreindexing) { SelectionIndex[SelectionIndex.Values.Count] = new KeyValuePair <LMS_GuiView, LMS_GuiBaseButton>(Details, b); } }
void InitButtonDefault(LMS_GuiBaseButton b, LMS_GuiView Details = null, LMS_GuiBaseButton.ClickCallbackDelegate onClick = null, bool ignoreindexing = false) { if (onClick != null) { b.OnClick += onClick; } b.SetTexture((int)E_Texture.DOWN, m_Skin.button.active.background); b.SetTexture((int)E_Texture.IDLE, m_Skin.button.normal.background); b.BlendMode = E_BlendMode.BLENDED; if (!ignoreindexing) { SelectionIndex[SelectionIndex.Values.Count] = new KeyValuePair <LMS_GuiView, LMS_GuiBaseButton>(Details, b); } }
void InitButtonDefault(LMS_GuiBaseButton b, LMS_GuiView Details = null, LMS_GuiBaseButton.ClickCallbackDelegate onClick = null, bool ignoreindexing = false) { if (onClick != null) { b.OnClick += onClick; } b.SetTexture((int)E_Texture.DOWN, b.GeneratePlainTexture(new Color(200f / 255f, 220f / 255f, 35f / 255f, 1f))); b.SetTexture((int)E_Texture.IDLE, b.GeneratePlainTexture(Color.green)); b.AllowInput = true; b.Hidden = false; if (!ignoreindexing) { SelectionIndex[SelectionIndex.Values.Count] = new KeyValuePair <LMS_GuiView, LMS_GuiBaseButton>(Details, b); } }
void InitButtonDefault(LMS_GuiBaseButton b, string text, string title, LMS_GuiBaseButton.ClickCallbackDelegate onClick = null) { b.SetTexture((int)E_Texture.DOWN, LMS_Textures.GetCache("BUTTON_TEX")); b.SetTexture((int)E_Texture.IDLE, b.GeneratePlainTexture(Color.clear)); b.BlendMode = E_BlendMode.BLENDED; if (onClick != null) { b.OnClick += onClick; } LMS_GuiViewSelection sel = new LMS_GuiViewSelection { Text = text, Title = title, CollectionIndex = SelectionIndex.Values.Count }; SelectionIndex[sel.CollectionIndex] = new KeyValuePair <LMS_GuiView, LMS_GuiBaseButton>(sel, b); }
void InitButtonDefault(LMS_GuiBaseButton b, string text = "", string title = "", LMS_GuiBaseButton.ClickCallbackDelegate onClick = null) { b.SetTexture((int)E_Texture.DOWN, m_Skin.button.active.background); b.SetTexture((int)E_Texture.IDLE, m_Skin.button.normal.background); b.BlendMode = E_BlendMode.BLENDED; if (onClick != null) { b.OnClick += onClick; } LMS_GuiViewSelection sel = new LMS_GuiViewSelection { Text = text, Title = title, CollectionIndex = SelectionIndex.Values.Count }; SelectionIndex[sel.CollectionIndex] = new KeyValuePair <LMS_GuiView, LMS_GuiBaseButton>(sel, b); }
void InitButtonDefault(LMS_GuiBaseButton b, string text, string title, int textSize = 15, LMS_GuiBaseButton.ClickCallbackDelegate onClick = null) { b.SetTexture((int)E_Texture.DOWN, m_Skin.button.active.background); b.SetTexture((int)E_Texture.IDLE, LMS_GuiBaseUtils.NextGrade(m_Skin.button.normal.background)); b.BlendMode = E_BlendMode.NORMAL; if (onClick != null) { b.OnClick += onClick; } LMS_GuiViewSelection sel = new LMS_GuiViewSelection { Text = text, Title = "<size=" + textSize + ">" + title + "</size>", CollectionIndex = SelectionIndex.Values.Count }; SelectionIndex[sel.CollectionIndex] = new KeyValuePair <LMS_GuiView, LMS_GuiBaseButton>(sel, b); }