public SetBorderTF ( string border, |
||
border | string | |
position | ||
repeat | bool | |
rotate | bool | |
texture | string | |
colorKey | long | |
hasCorners | bool | |
cornerRotate | bool | |
Результат | void |
protected virtual void AllocButtons() { for (int i = 0; i < _itemsPerPage; ++i) { GUIButtonControl cntl = new GUIButtonControl(_controlId, 0, _spinControlPositionX, _spinControlPositionY, _width, _itemHeight, _buttonFocusName, _buttonNonFocusName, _shadowAngle, _shadowDistance, _shadowColor) {ParentControl = this}; cntl.SetBorderTF(_strBorderBF, _borderPositionBF, _borderTextureRepeatBF, _borderTextureRotateBF, _borderTextureFileNameBF, _borderColorKeyBF, _borderHasCornersBF, _borderCornerTextureRotateBF); cntl.SetBorderTNF(_strBorderBNF, _borderPositionBNF, _borderTextureRepeatBNF, _borderTextureRotateBNF, _borderTextureFileNameBNF, _borderColorKeyBNF, _borderHasCornersBNF, _borderCornerTextureRotateBNF); cntl.AllocResources(); cntl.DimColor = DimColor; _listButtons.Add(cntl); } }
public Key(Xkey key, int iwidth, GUIKeyboard kb) { xKey = key; dwWidth = iwidth; // Create a button control template. if (button != null) { button.Dispose(); } button = new GUIButtonControl(kb.GetID, -1, 0, 0, 0, 0, kb._keyTextureFocus, kb._keyTextureNoFocus, kb._keyTextShadowAngle, kb._keyTextShadowDistance, kb._keyTextShadowColor); button.SetBorderTF( kb._strBorderKTF, kb._borderPositionKTF, kb._borderTextureRepeatKTF, kb._borderTextureRotateKTF, kb._borderTextureFileNameKTF, kb._borderColorKeyKTF, kb._borderHasCornersKTF, kb._borderCornerTextureRotateKTF); button.SetBorderTNF( kb._strBorderKTNF, kb._borderPositionKTNF, kb._borderTextureRepeatKTNF, kb._borderTextureRotateKTNF, kb._borderTextureFileNameKTNF, kb._borderColorKeyKTNF, kb._borderHasCornersKTNF, kb._borderCornerTextureRotateKTNF); button.AllocResources(); // Special keys get their own names switch (xKey) { case Xkey.XK_SPACE: name = "SPACE"; break; case Xkey.XK_BACKSPACE: name = "BKSP"; break; case Xkey.XK_SHIFT: name = "SHIFT"; break; case Xkey.XK_CAPSLOCK: name = "CAPS"; break; case Xkey.XK_ALPHABET: name = "ALPHABET"; break; case Xkey.XK_SYMBOLS: name = "SYMB"; break; case Xkey.XK_ACCENTS: name = "ACCENTS"; break; case Xkey.XK_SMS: name = "SMS"; break; case Xkey.XK_OK: name = GUILocalizeStrings.Get(804); break; case Xkey.XK_SEARCH_CONTAINS: name = GUILocalizeStrings.Get(801); break; case Xkey.XK_SEARCH_ENDS_WITH: name = GUILocalizeStrings.Get(802); break; case Xkey.XK_SEARCH_START_WITH: name = GUILocalizeStrings.Get(800); break; case Xkey.XK_SEARCH_IS: name = GUILocalizeStrings.Get(803); break; case Xkey.XK_SMS0: name = "0 [ ]"; break; } }