Ejemplo n.º 1
0
 public virtual LFont GetFont()
 {
     if (batch != null)
     {
         return(batch.GetFont());
     }
     return(LFont.GetDefaultFont());
 }
Ejemplo n.º 2
0
            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);
                    }
                }
            }
Ejemplo n.º 3
0
 public Label(string l, int x, int y) : this(LFont.GetDefaultFont(), l, x, y)
 {
 }
Ejemplo n.º 4
0
 public LNLabel(string text, LNLabel.LabelType type) : this(text, type, LFont.GetDefaultFont())
 {
 }
Ejemplo n.º 5
0
 public LNLabel()
 {
     this._type       = LabelType.TEXT_ALIGNMENT_LEFT;
     this._spriteFont = LFont.GetDefaultFont();
     this.SetNodeSize(1, 1);
 }