Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
center
#1
I must do to write a text / message center?

[Image: Dibujo.jpg]
Reply

#2
1. Create HudElem,
2. int x= 1024/2 and int y = 768/2 ( for example )
3. ???
4. Profit?
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#3
(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) ..
[Image: MaEIQ.png]
Reply

#4
A byte can't be more then 255....
Reply

#5
(07-24-2012, 23:28)JariZ Wrote: A byte can't be more then 255....

what?
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#6
Excellent!
I needed to understand anything xD
I'm noob
1 - where I put that code?
Reply

#7
HudElem.OriginX = 340;

causes the compiler to crash or throw an System.OverflowException
Reply

#8
(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
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#9
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;
Reply

#10
(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?
[Image: MaEIQ.png]
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.