Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
dolarmak

text alignment in windows

Question

Hey guys, I'm making a window for my menu that displays the amount of ammo you have, but the I want the text to be aligned closer to the upper left than it'll let me. For some reason it won't display the text that high or left. When i try it cuts the letters off. Any suggestions?

 

ammo-16514.jpg

 

Edit: I actually found a way around this, first i display an empty window in the position i want, then i display a bigger window over top with a opacity of 0 so it only shows the text.

 

If any one knows the real way to do this (in a single window) let me know.

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

There really isn't any way to do this without rewriting the window script.  The problem is in how they have designed the creation of windows.  They use quite a bit of space for blt functions from the windowskin to the created window.  Then, the text box is created within the borders of the already padded window.  I ran into this when I started designing the windowskin option for my CMS.  I wish there were a better answer for that.  Your workaround is by no means cheesy; I've done the same thing in the past.  Hope this helps!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...