示例#1
0
        public void UpdateView(int index, decimal value, string toolTip, bool isHero)
        {
            if (Config.HudBigBlindDecimals > 0)
            {
                var f = ""; for (int i = 0; i < Config.HudBigBlindDecimals; i++)
                {
                    f += "0";
                }
                UCLabel_Main.SetText(string.Format("{1}{0:0." + f + "}{2}", value, Config.HudBigBlindPrefix, Config.HudBigBlindPostfix));
            }
            else
            {
                UCLabel_Main.SetText(string.Format("{1}{0:0}{2}", value, Config.HudBigBlindPrefix, Config.HudBigBlindPostfix));
            }

            ToolTip = toolTip ?? "";

            Left = Table.RectangleClient.X + Table.RectangleClient.Width * Config.HudBigBlindLocationsX[(int)Table.TableHud.TableSize][index];
            Top  = Table.RectangleClient.Y + Table.RectangleClient.Height * Config.HudBigBlindLocationsY[(int)Table.TableHud.TableSize][index];

            if (!isHero)
            {
                UCLabel_Main.SetBackground(Config.HudBigBlindOpponentsBackground);
                UCLabel_Main.SetForeground(ColorByValue.GetColorByValue(Config.HudBigBlindOpponentsForeground, value, Config.HudBigBlindOpponentsColorsByValue));
                UCLabel_Main.SetFontFamily(Config.HudBigBlindOpponentsFontFamily);
                UCLabel_Main.SetFontWeight(Config.HudBigBlindOpponentsFontWeight);
                UCLabel_Main.SetFontStyle(Config.HudBigBlindOpponentsFontStyle);
                UCLabel_Main.SetMargin(Config.HudBigBlindOpponentsMargin);
                UCLabel_Main.SetBorderBrush(Config.HudBigBlindOpponentsBorderBrush);
                UCLabel_Main.SetBorderThickness(Config.HudBigBlindOpponentsBorderThickness);
                UCLabel_Main.SetCornerRadius(Config.HudBigBlindOpponentsCornerRadius);

                //UCLabel_Main.SetFontSize(Config.HudBigBlindOpponentsFontSize);
                Viewbox_Main.Height = ((Config.HudBigBlindOpponentsFontSize + Config.HudBigBlindOpponentsMargin.Top + Config.HudBigBlindOpponentsMargin.Bottom) / 546.0) * Table.RectangleClient.Height;
            }
            else
            {
                UCLabel_Main.SetBackground(Config.HudBigBlindHeroBackground);
                UCLabel_Main.SetForeground(ColorByValue.GetColorByValue(Config.HudBigBlindHeroForeground, value, Config.HudBigBlindHeroColorsByValue));
                UCLabel_Main.SetFontFamily(Config.HudBigBlindHeroFontFamily);
                UCLabel_Main.SetFontWeight(Config.HudBigBlindHeroFontWeight);
                UCLabel_Main.SetFontStyle(Config.HudBigBlindHeroFontStyle);
                UCLabel_Main.SetMargin(Config.HudBigBlindHeroMargin);
                UCLabel_Main.SetBorderBrush(Config.HudBigBlindHeroBorderBrush);
                UCLabel_Main.SetBorderThickness(Config.HudBigBlindHeroBorderThickness);
                UCLabel_Main.SetCornerRadius(Config.HudBigBlindHeroCornerRadius);

                //UCLabel_Main.SetFontSize(Config.HudBigBlindHeroFontSize);
                Viewbox_Main.Height = ((Config.HudBigBlindHeroFontSize + Config.HudBigBlindHeroMargin.Top + Config.HudBigBlindHeroMargin.Bottom) / 546.0) * Table.RectangleClient.Height;
            }
        }
示例#2
0
        public void UpdateView(string value, string toolTip)
        {
            UCLabel_Main.SetText(value);
            ToolTip = toolTip;

            Left = Table.RectangleClient.X + Table.RectangleClient.Width * Config.HudTimerLocationsX[(int)Table.TableHud.TableSize];
            Top  = Table.RectangleClient.Y + Table.RectangleClient.Height * Config.HudTimerLocationsY[(int)Table.TableHud.TableSize];

            UCLabel_Main.SetBackground(Config.HudTimerBackground);
            UCLabel_Main.SetForeground(Config.HudTimerForeground);
            UCLabel_Main.SetFontFamily(Config.HudTimerFontFamily);
            UCLabel_Main.SetFontWeight(Config.HudTimerFontWeight);
            UCLabel_Main.SetFontStyle(Config.HudTimerFontStyle);
            UCLabel_Main.SetMargin(Config.HudTimerMargin);
            UCLabel_Main.SetBorderBrush(Config.HudTimerBorderBrush);
            UCLabel_Main.SetBorderThickness(Config.HudTimerBorderThickness);
            UCLabel_Main.SetCornerRadius(Config.HudTimerCornerRadius);

            //UCLabel_Main.SetFontSize(Config.HudTimerFontSize);
            Viewbox_Main.Height = ((Config.HudTimerFontSize + Config.HudTimerMargin.Top + Config.HudTimerMargin.Bottom) / 546.0) * Table.RectangleClient.Height;
        }