public void SetHorizontalAlignment(uint rowIndex, uint columnIndex, EHAlignment HAlignment) { if (rowIndex < rowCount && columnIndex < columnCount) { alignment[rowIndex][columnIndex].HAlignment = HAlignment; } }
public void LoadSkin() { if (!ThemeLoaded) { return; } _Theme.Color.Get(_PartyModeID, out Color); _Theme.SelColor.Get(_PartyModeID, out SelColor); X = _Theme.X; Y = _Theme.Y; if (!_ButtonText) { Z = _Theme.Z; } W = _Theme.MaxWidth; H = _Theme.FontHeight; _Align = _Theme.Align; _ResizeAlign = _Theme.ResizeAlign; Font = new CFont(_Theme.FontFamily, _Theme.FontStyle, _Theme.FontHeight); if (_Theme.Reflection.HasValue) { _ReflectionSpace = _Theme.Reflection.Value.Space; _ReflectionHeight = _Theme.Reflection.Value.Height; } Text = _Theme.Text; Selected = false; }
public CText(CText text) { _PartyModeID = text._PartyModeID; _TranslationID = text._TranslationID; MaxRect = text.MaxRect; _Rect = text._Rect; _PositionNeedsUpdate = false; _Align = text._Align; _ResizeAlign = text._ResizeAlign; Font = new CFont(text.Font); //Use setter to set observer Color = text.Color; SelColor = text.SelColor; _ReflectionSpace = text._ReflectionSpace; _ReflectionHeight = text._ReflectionHeight; Text = text.Text; Visible = text.Visible; Alpha = text.Alpha; _EditMode = text._EditMode; }