public static SmartText Create(string value) { SmartText smartText = Instance(); smartText.BbcodeText = value; return(smartText); }
public UnitTest1() { var configuration = ConfigurationBuilder.Create() .UseFileReader(new MyFileReader()) .AutoLoadFile(false) .AddSection <HeaderTest>(config => config .WithProperty(p => p.CodigoRegistro, 1, 1, 1, Padding.Right) .WithProperty(p => p.CodigoRemessa, 2, 2, 2, Padding.Right) .WithProperty(p => p.CodigoConvenio, 3, 22, 3, Padding.Right) .WithProperty(p => p.NomeEmpresaConveniada, 23, 42, 4, Padding.Right) .WithProperty(new Property(43, 45, 5)) .WithProperty(p => p.NomeEmpresaPrestadora, 46, 65, 6, Padding.Right) .WithProperty(p => p.DataGerecaoArquivo, 66, 73, 7, Padding.Right) .WithProperty(p => p.NumeroSequencialArquivo, 74, 79, 8, Padding.Left, '0') .WithProperty(p => p.VersaoLayout, 80, 81, 9, Padding.Left, '0') .WithProperty(p => p.IdentificacaoServico, 82, 98, 10, Padding.Right) .WithProperty(p => p.TamanhoLinha, 99, 102, 11, Padding.Right) .WithProperty(new Property(103, 150, 11)) .WithProperty(new Property(151, 151, 12)) .WithProperty(new Property(152, 166, 13)) ).Build(); _smartText = new SmartText(configuration); }
public void Log(string logText) { SmartText label = (SmartText)smartTextTemplate.Duplicate(); label.BbcodeText = BB.Format(logText); AddChild(label); }
private void Setup(SeasonHistory data) { GetNode <Label>("Season").Text = data.date.ToString(); foreach (string @event in data.events) { AddChild(SmartText.Create(@event)); } }
public void Start() { initElement(); setElementToRect(); initialSize = new Vector2(position.size.x, position.size.y); st = GetComponent <SmartText>(); ID = IDAssign; IDAssign++; }
public void Update() { if (EditorApplication.isPlaying) { return; } st = GetComponent <SmartText>(); setElementToRect(); }
public override void _Ready() { gridField = GetNode <AdjustableGrid>(gridPath); inspectField = GetNode <SmartText>(inspectPath); banishField = GetNode <Button>(banishPath); banishField.Connect("pressed", this, nameof(Banish)); priceField = GetNode <SmartText>(pricePath); ShowDeck(); Callback.Connect(this, "draw", ShowDeck); }
public override void Draw(RenderWindow rw) { base.Draw(rw); SmartText.DrawText(GP.WindowGameName, TextAlignment.MID, new Vector2f(400.0f, 150.0f), new Vector2f(1.5f, 1.5f), Palette.color1, rw); SmartText.DrawText("Start [Return]", TextAlignment.MID, new Vector2f(400.0f, 250.0f), Palette.color2, rw); SmartText.DrawText("W A S D & LShift", TextAlignment.MID, new Vector2f(530.0f, 340.0f), Palette.color2, rw); SmartText.DrawText("Arrows & RCtrl", TextAlignment.MID, new Vector2f(180.0f, 340.0f), Palette.color2, rw); }
public bool CheckContent() { string _text = Page.HtmlContent.HtmlToText(); SmartText _smartText = new SmartText(_text); if (!_smartText.IsValid()) { return(false); } if (_smartText.HasError) { return(false); } if (_smartText.Words.Length < 100) { return(false); } return(true); }
private void DrawCredits(RenderWindow rw) { SmartText.DrawText("Intelligent Design", TextAlignment.MID, new Vector2f(400.0f, 20.0f), 1.5f, rw); SmartText.DrawText("A Game by", TextAlignment.MID, new Vector2f(400.0f, 100.0f), 0.75f, rw); SmartText.DrawText("Simon '@Laguna_999' Weis", TextAlignment.MID, new Vector2f(400.0f, 135.0f), rw); SmartText.DrawText("Visual Studio 2012 \t C#", TextAlignment.MID, new Vector2f(400, 170), 0.75f, rw); SmartText.DrawText("aseprite \t SFML.NET 2.1", TextAlignment.MID, new Vector2f(400, 200), 0.75f, rw); SmartText.DrawText("Cubase 5 \t SFXR", TextAlignment.MID, new Vector2f(400, 230), 0.75f, rw); SmartText.DrawText("Thanks to", TextAlignment.MID, new Vector2f(400, 350), 0.75f, rw); SmartText.DrawText("Julian '@Thunraz' Dinges for technical support", TextAlignment.MID, new Vector2f(400, 375), 0.75f, rw); SmartText.DrawText("Sebastian 'XzzX' Eibl for discussions and brainstorming", TextAlignment.MID, new Vector2f(400, 400), 0.75f, rw); SmartText.DrawText("Families & Friends for their great support", TextAlignment.MID, new Vector2f(400, 425), 0.75f, rw); SmartText.DrawText("Created June 2014", TextAlignment.MID, new Vector2f(400.0f, 500.0f), 0.75f, rw); ScreenEffects.GetStaticEffect("vignette").Draw(rw); }
public override void _Ready() { instance = this; title = N <Label>("Title"); head = N <TabContainer>("Head"); characterList = N <Control>("Head/CharacterList/List"); coupleLeft = N <Visual.Tables.CharacterTable>("Head/CharacterCouple/Left"); coupleRight = N <Visual.Tables.CharacterTable>("Head/CharacterCouple/Right"); boaLeft = N <Visual.Icons.CharacterIcon>("Head/BirthOrAdoption/Left"); boaMiddle = N <Visual.Tables.CharacterTable>("Head/BirthOrAdoption/Middle"); boaRight = N <Visual.Icons.CharacterIcon>("Head/BirthOrAdoption/Right"); questTable = N <Visual.Tables.QuestTable>("Head/Quests/QuestTable"); smartDescription = N <SmartText>("Description"); buttonValidate = N <Button>("Buttons/Validate"); buttonNo = N <Button>("Buttons/No"); buttonThird = N <Button>("Buttons/Third"); buttonValidate.Connect("pressed", this, nameof(pressed), Global.ArrayFrom(ButtonOutcome.VALIDATE)); buttonNo.Connect("pressed", this, nameof(pressed), Global.ArrayFrom(ButtonOutcome.NO)); buttonThird.Connect("pressed", this, nameof(pressed), Global.ArrayFrom(ButtonOutcome.THIRD)); Task task = OutcomeProcess.Process(); }
public override void _Ready() { Instance = this; text = GetNode <SmartText>("ThoughtText/Margin/Text"); }
public SmartTextFile(string pathFile) { string Text = File.ReadAllText(pathFile); Smart = new SmartText(Text); }
public override void _Ready() { text = GetNode <SmartText>(textPath); SFXHandler.Instance.Change(GameData.GameState.None); SFXHandler.PlaySFX("Shamisen"); }
private void DrawMenu(RenderWindow rw) { SmartText.DrawText("Intelligent Design", TextAlignment.MID, new Vector2f(400.0f, 150.0f), 1.5f, rw); if (_menuState == eMenuState.MS_START) { SmartText.DrawText("Create World [Return]", TextAlignment.MID, new Vector2f(400.0f, 250.0f), rw); SmartText.DrawText("[A]bout", TextAlignment.RIGHT, new Vector2f(770.0f, 550.0f), rw); } else if (_menuState == eMenuState.MS_ABOUT) { SmartText.DrawText("This techdemo is highly unfinished.", TextAlignment.MID, new Vector2f(400.0f, 250.0f), rw); SmartText.DrawText("Please feel free to experiment", TextAlignment.MID, new Vector2f(400.0f, 300.0f), rw); SmartText.DrawText("and watch your tribe expand", TextAlignment.MID, new Vector2f(400.0f, 325.0f), rw); } else if (_menuState == eMenuState.MS_WORLD) { SmartText.DrawText("Creating World", TextAlignment.MID, new Vector2f(300.0f, 200.0f), rw); if (EvolutionPoints > GameProperties.EvolutionPointsStart - GameProperties.EvolutionPointsWorldMax) { SmartText.DrawText("Evo Points " + EvolutionPoints, TextAlignment.MID, new Vector2f(650.0f, 200.0f), rw); } else { SmartText.DrawText("Evo Points " + EvolutionPoints, TextAlignment.MID, new Vector2f(650.0f, 200.0f), Color.Red, rw); } SmartText.DrawText("Day Night Frequency " + _worldProperties.DayNightCycleFrequency + " [Q, A]", TextAlignment.LEFT, new Vector2f(200.0f, 250.0f), 0.65f, rw); SmartText.DrawText("Max Height " + _worldProperties.MaxHeightInMeter + " [W, S]", TextAlignment.LEFT, new Vector2f(200.0f, 275.0f), 0.65f, rw); SmartText.DrawText("Mountain Height " + _worldProperties.MountainHeight + " [E, D]", TextAlignment.LEFT, new Vector2f(200.0f, 300.0f), 0.65f, rw); SmartText.DrawText("Sunlight Intensity " + _worldProperties.SunLightIntensityFactor * 100 + " [R, F]", TextAlignment.LEFT, new Vector2f(200.0f, 425.0f), 0.65f, rw); SmartText.DrawText("Atmospheric Heat Flux " + _worldProperties.AtmosphericHeatOutFluxPerSecond * 1000.0f + " [T, G]", TextAlignment.LEFT, new Vector2f(200.0f, 450.0f), 0.65f, rw); SmartText.DrawText("Create Tribe [Return]", TextAlignment.MID, new Vector2f(400.0f, 500.0f), rw); } else if (_menuState == eMenuState.MS_TRIBE) { SmartText.DrawText("Selecting Tribe", TextAlignment.MID, new Vector2f(300.0f, 200.0f), rw); if (EvolutionPoints >= 0) { SmartText.DrawText("Evo Points " + EvolutionPoints, TextAlignment.MID, new Vector2f(650.0f, 200.0f), rw); } else { SmartText.DrawText("Evo Points " + EvolutionPoints, TextAlignment.MID, new Vector2f(650.0f, 200.0f), Color.Red, rw); } SmartText.DrawText("Agility " + _tribeProperties.Agility + " [Q, A]", TextAlignment.LEFT, new Vector2f(200.0f, 250.0f), 0.65f, rw); SmartText.DrawText("Stamina " + _tribeProperties.Stamina + " [W, S]", TextAlignment.LEFT, new Vector2f(200.0f, 275.0f), 0.65f, rw); SmartText.DrawText("Strength " + _tribeProperties.Strength + " [E, D]", TextAlignment.LEFT, new Vector2f(200.0f, 300.0f), 0.65f, rw); SmartText.DrawText("Pref. Terrain " + _tribeProperties.PreferredTerrain + " [R, F]", TextAlignment.LEFT, new Vector2f(200.0f, 350.0f), 0.65f, rw); SmartText.DrawText("Pref Altitude " + _tribeProperties.PreferredAltitude + " [T, G]", TextAlignment.LEFT, new Vector2f(200.0f, 375.0f), 0.65f, rw); SmartText.DrawText("Pref Temperature " + _tribeProperties.PreferredTemperature + " [Z, H]", TextAlignment.LEFT, new Vector2f(200.0f, 400.0f), 0.65f, rw); SmartText.DrawText("Diet " + _tribeProperties.Diet + " [U, J]", TextAlignment.LEFT, new Vector2f(200.0f, 450.0f), 0.65f, rw); SmartText.DrawText("Group Behaviour " + _tribeProperties.GroupBehaviour + " [I, K]", TextAlignment.LEFT, new Vector2f(200.0f, 475.0f), 0.65f, rw); SmartText.DrawText("Start Game [Return]", TextAlignment.MID, new Vector2f(400.0f, 500.0f), rw); } SmartText.DrawText("[C]redits", TextAlignment.LEFT, new Vector2f(30.0f, 550.0f), rw); ScreenEffects.GetStaticEffect("vignette").Draw(rw); }
public override void _Ready() { smartTextTemplate = GetNode <SmartText>("Label"); separatorTemplate = GetNode <HSeparator>("Separator"); }
public void Start () { transform.position = StartPosition; gameObject.layer = 10; Rigid = GetComponent<Rigidbody2D>(); SpriteRender = GetComponent<SpriteRenderer>(); ladderTB = new TextBox(); ladderTB.addText("Press \"c\" to use the ladder"); textbox = Resources.Load("TextBox") as GameObject; tbTextMesh = textbox.GetComponentInChildren<TextMesh>(); smartText = textbox.GetComponentInChildren<SmartText>(); MyBoxCollider = GetComponent<BoxCollider2D>(); GM = GameObject.Find("GameManager").GetComponent<GameManagerScript>(); inventory = this.gameObject.GetComponent<Inventory>(); }