|
Post by Slenkar on May 11, 2004 1:51:02 GMT
Is there an easy way to make a background for text?
Id like a metallic texture to go behind text written with the spritetext command, it would have to resize automatically to match the size of the text sprite.
To make the metallic texture appear behind the text would I simply have to draw it first or do I have to set the z-order?
Is there a simple way of automatically scaling the metallic texture to match the size of any text sprite? I could use the resizesprite command but then Id need a way of knowing the height and width of a certain sprite
I could do all of this the long way around by creating bitmaps for each window that will appear in the game but I just wondered if there is an easier solution.
|
|
|
Post by syntaxerror on May 11, 2004 15:55:21 GMT
After you set the text string in your textsprite the width and height can be found like this:
; load metal background sprite metal.smSprite=LoadSprite(...)
; load sprite font set txtsprite.smSprite=LoadFontSet(...)
; set message SpriteText txtsprite,"Hello"+Chr$(10)+"World"
; set size of metal sprite to match text sprite ResizeSprite metal,txtsprite\width,txtsprite\height
; postion both at the same location PositionSprite metal,140,80 PositionSprite txtspritel,140,80
Note: Text sprites have a higher draw priority than 3d sprites by default so should appear in front.
|
|
|
Post by Slenkar on May 11, 2004 20:20:18 GMT
thats great thanks
|
|
|
Post by ahafizji on Aug 28, 2006 15:55:00 GMT
Hi, I am trying to create a tool which takes a bunch of images and scales them if needed and packs them into one big image. This is just the first step. After that we do some prcessing on the packed image to generated .cpp files. Is there a command line interface for the image packer so I can use it as a part of my tool to create the packed image. The image packer is exactly what we need and the description file generated is used in further processing. Thanks a lot
|
|
|
Post by zhanhuichuangg on Oct 13, 2011 2:10:27 GMT
Well I believe we, the Americans of today, timberland boots are ready to act worthy of ourselves, ready to do what must be done to insure happiness and liberty for ourselves, our children, and our children¡¯s children. And as we renew ourselves here in our own land, timberland 3 eyes shoes will be seen as having greater strength throughout the world. We will again be the exemplar of freedom and a beacon of hope for those who do not now have timberland classic boat shoes. To those neighbors and allies who share our freedom, we will strengthen our historic ties and assure them of our timberland 6 inch boots and firm commitment. We will match loyalty with loyalty. We will strive for mutually beneficial relations. We will not use our mens timberland 6 inch boots to impose on their sovereignty, for our own sovereignty is not for sale. As for the enemies of freedom, those who are potential adversaries, they will be reminded that peace is the highest aspiration of womens 14 timberland boots. We will negotiate for it, sacrifice for it; we will not surrender for it -- now or ever. Our timberland mens chukka should never be misunderstood. Our reluctance for conflict should not be misjudged as a failure of will. When action is required to preserve our national security, we will act. timberland boots women will maintain sufficient strength to prevail if need be, knowing that if we do so, we have the best chance of never having to use that strength. Above all black timberland boots must realize that no arsenal or no weapon in the arsenals of the world is so formidable as the will and moral courage of free timberland boots for men. It is a weapon our adversaries in today's world do not have. It is a weapon that we as timberland 6 inch premium do have. Let that be understood by those who practice terrorism and prey upon their neighbors. timberland shoestimberland boat shoestimberland boots sale ZHC
|
|