public virtual LFont GetFont() { if (batch != null) { return(batch.GetFont()); } return(LFont.GetDefaultFont()); }
public void Run() { screen.stage = new Label("Stage - " + screen.stageNo, 140, 25); screen.stage.SetColor(LColor.black); screen.stage.SetFont(LFont.GetDefaultFont()); screen.Add(screen.stage); screen.time = new Label("time", 270, 25); screen.time.SetColor(LColor.black); screen.time.SetFont(LFont.GetDefaultFont()); screen.Add(screen.time); message.SetVisible(false); screen.role.SetVisible(false); message.SetVisible(false); screen.init = true; screen.count = 0; screen.progress = new StatusBar(screen.progress_number, screen.progress_number, 325, 5, 150, 25); screen.progress.SetDead(true); screen.Add(screen.progress); if (screen.title == null) { screen.title = new LPaper(screen.GetImage(15), 55, 55); } else { screen.title.SetLocation(55, 55); } screen.CenterOn(screen.title); screen.Add(screen.title); if (screen.stageNo < 5) { if (screen.helpRole == null) { screen.helpRole = new Sprite(screen.GetImage(8)); screen.helpRole.SetLocation(screen .GetWidth() - screen.helpRole.GetWidth() - 10, screen.GetHeight() - screen.helpRole.GetHeight() - 10); screen.Add(screen.helpRole); } else { screen.helpRole.SetVisible(true); screen.Add(screen.helpRole); } } else { if (screen.helpRole != null) { screen.helpRole.SetVisible(false); } } }
public Label(string l, int x, int y) : this(LFont.GetDefaultFont(), l, x, y) { }
public LNLabel(string text, LNLabel.LabelType type) : this(text, type, LFont.GetDefaultFont()) { }
public LNLabel() { this._type = LabelType.TEXT_ALIGNMENT_LEFT; this._spriteFont = LFont.GetDefaultFont(); this.SetNodeSize(1, 1); }