ItsMods

Full Version: center
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I must do to write a text / message center?

[Image: Dibujo.jpg]
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
  1. Message.PointType = 113;
  2. Message.OriginX = 245;
  3. 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
  1. Message.PointType = 113;
  2. Message.OriginX = 245;
  3. Message.OriginY = 180;

Is that in the 'perfect' center on other aspect ratios too? Have you tested?
Pages: 1 2