Exemple #1
0
    private static AllodsTextRenderer Info_Experience;        // experience value

    private AllodsTextRenderer DisplayInfoInit(Font.Align align, int x, int y, int w, int h, Color color)
    {
        // 70 10 39 19
        AllodsTextRenderer tr  = new AllodsTextRenderer(Fonts.Font2, align, w, h, false);
        GameObject         trO = tr.GetNewGameObject(0.01f, InfoObject.transform, 100, 0.2f);

        trO.transform.localPosition = new Vector3(x, y, 0);
        tr.Material.color           = color;
        return(tr);
    }
Exemple #2
0
 public AllodsTextRenderer(Font font, Font.Align align = Font.Align.Left, int width = 0, int height = 0, bool wrapping = false)
 {
     _Font        = font;
     _Mesh        = new Mesh();
     _Material    = GameObject.Instantiate(_Font.CombinedMaterial);
     _Align       = align;
     _ActualWidth = 0;
     _Width       = width;
     _Height      = height;
     _Wrapping    = wrapping;
 }
Exemple #3
0
 public AllodsTextRenderer(Font font, Font.Align align = Font.Align.Left, int width = 0, int height = 0, bool wrapping = false, int overrideLineHeight = -1)
 {
     _Font               = font;
     _Mesh               = new Mesh();
     _Align              = align;
     _ActualWidth        = 0;
     _Width              = width;
     _Height             = height;
     _Wrapping           = wrapping;
     _OverrideLineHeight = overrideLineHeight;
     _ManualUpdate       = false;
     _NeedUpdate         = true;
 }