Exemplo n.º 1
0
    public void Render()
    {
        //                                                                   ☺
        leftGuiTextRenderer.SetText("<size=" + DATA_TEXT_SIZE + "><b><color=white>\u263A " + passengers.CurrentPassengers + "</color></b></size>");
        leftGuiTextRenderer.Render();

        //                                                                  ⏰
        rightGuiTextRenderer.SetText("<size=" + DATA_TEXT_SIZE + "><b><color=red>\u23F0 " + timeCounter.ElapsedInt + "</color></b></size>");
        rightGuiTextRenderer.Render();
    }
 private void renderFullView()
 {
     for (int i = 0; i < fullRenderers.Length; i++)
     {
         GuiTextRenderer renderer = fullRenderers[i];
         if (i == 0)
         {
             renderer.SetPosition(FULL_POSITION, null);
         }
         else
         {
             renderer.SetPosition(GuiPosition.BELOW, fullRenderers[i - 1]);
         }
         renderer.SetText(playersPoints[i].GetText());
         renderer.Render();
     }
 }
 private void renderReducedView()
 {
     reducedRenderer.SetText(getTexts());
     reducedRenderer.Render();
 }