Ejemplo n.º 1
0
 private Gump CreateLabel(string text, bool scroll)
 {
     text = text.Replace('\r', '\n');
     GBackground background = new GBackground(0xbbc, 200, 100, true);
     GWrappedLabel toAdd = new GWrappedLabel(text, Engine.GetFont(1), Hues.Load(0x455), background.OffsetX, background.OffsetY, background.UseWidth);
     background.Height = toAdd.Height + (background.Height - background.UseHeight);
     background.Children.Add(toAdd);
     toAdd.Center();
     background.SetMouseOverride(this);
     return background;
 }
Ejemplo n.º 2
0
        private Gump CreateLabel(string text, bool scroll)
        {
            text = text.Replace('\r', '\n');
            GBackground   background = new GBackground(0xbbc, 200, 100, true);
            GWrappedLabel toAdd      = new GWrappedLabel(text, Engine.GetFont(1), Hues.Load(0x455), background.OffsetX, background.OffsetY, background.UseWidth);

            background.Height = toAdd.Height + (background.Height - background.UseHeight);
            background.Children.Add(toAdd);
            toAdd.Center();
            background.SetMouseOverride(this);
            return(background);
        }