I must do to write a text / message center?
1. Create HudElem,
2. int x= 1024/2 and int y = 768/2 ( for example )
3. ???
4. Profit?
(07-24-2012, 21:42)JayDi Wrote: [ -> ]1. Create HudElem,
2. int x= 1024/2 and int y = 768/2 ( for example )
3. ???
4. Profit?
I think 640/2 and 400/2 always work (for any resolution) ..
A byte can't be more then 255....
(07-24-2012, 23:28)JariZ Wrote: [ -> ]A byte can't be more then 255....
what?
Excellent!
I needed to understand anything xD
I'm noob
1 - where I put that code?
HudElem.OriginX = 340;
causes the compiler to crash or throw an System.OverflowException
(07-25-2012, 00:16)JariZ Wrote: [ -> ]HudElem.OriginX = 340;
causes the compiler to crash or throw an System.OverflowException
i did 650 and 1200
Ah sorry, my fault. I thought those were bytes.
I'd still recommend using pointtype instead of originx though.
For a perfect center:
CSHARP Code
Message.PointType = 113;
Message.OriginX = 245;
Message.OriginY = 180;
(07-25-2012, 00:20)JariZ Wrote: [ -> ]Ah sorry, my fault. I thought those were bytes.
I'd still recommend using pointtype instead of originx though.
For a perfect center:
CSHARP Code
Message.PointType = 113;
Message.OriginX = 245;
Message.OriginY = 180;
Is that in the 'perfect' center on other aspect ratios too? Have you tested?