The Daily Click ::. Forums ::. Klik Coding Help ::. Custom Gui/Text box
 

Post Reply  Post Oekaki 
 

Posted By Message

kingoftaurus



Registered
  28/01/2009
Points
  8
28th January, 2009 at 01:31:11 -

Hello.

I have been clicking since 2003.. and Ive come across somthing that I have been wanting to do for a while now, and just cannot figure out how to do it.

What I want to do, is make a custom window or dialog/text box that has custom borders... and is resizable... for how much text is in it.

For example...

Id like to use a picture that has all 4 corners of a dialog box, plus all 4 sides of the box, and be able to use that picture to create a window with text inside it, that can be any size.

What im trying to avoid:

Having multiple pictures that all look the same, but are different size, but have the same 7 pixel wide border all the way around.

So basically, text blitter, for window borders, I guess.

If you have played the game "The underside" you will notice that the dialog boxes in that game are basically exactly what I am looking for. And they are all generated from one single picture.

Example:

Image

p.s. http://www.insignificantstudios.com/preview.php

Edited by kingoftaurus

 
n/a

kingoftaurus



Registered
  28/01/2009
Points
  8
7th February, 2009 at 02:03:20 -

*bump* Wow does nobody know? Its been done before... yet nobody knows how... hmm.

 
n/a

X_Sheep

I had a custom rating before it was cool

Registered
  01/03/2004
Points
  1313

VIP MemberPicture Me This -Round 23- Winner!Dos Rules!
7th February, 2009 at 09:58:52 -

I think The Underside does use the Text Blitter object to draw the windows.

 
a/n

kingoftaurus



Registered
  28/01/2009
Points
  8
7th February, 2009 at 19:45:00 -

so I guess the question really is, how do you use the text blitter object to draw windows?

 
n/a

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
7th February, 2009 at 21:20:54 -

Have you looked at the examples that come with the text blitter object? There are examples with speech bubbles, you should be able to draw windows in the same way as the bubbles are drawn.

 
n/a

kingoftaurus



Registered
  28/01/2009
Points
  8
18th February, 2009 at 08:08:11 -

Actually I have looked at those examples, but the text bubble isnt really customizable. Im looking for more detail in the window.

Does anyone know of any more bubble examples, maybe ones that use bigger pictures?

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
18th February, 2009 at 13:37:52 -

Well, you could make a foreground layer that has 0,0 as its scale for scrolling, then use the active picture object to paste backdrops on that top layer based on the size of the text to generate the bubble using a external image(whoa that's a mouthful), but that's probably going overboard. The textblitter would be the way to go.

 
n/a

kingoftaurus



Registered
  28/01/2009
Points
  8
2nd June, 2009 at 07:58:55 -

Again, does anyone have any examples of customizing the graphics in the textblitter object?

The tb tutorial dosent teach much in that area

 
n/a

Velovix



Registered
  23/06/2008
Points
  118
2nd June, 2009 at 17:50:45 -

Using the Edit Box Object, can't you just check that one option that gets rid of the borders, and use actives to draw the borders?

 
Ooh, so now you expect me to have a sig too?

-J-



Registered
  05/10/2008
Points
  228

VIP MemberThe Cake is a Lie
3rd June, 2009 at 02:20:08 -

If you look at the flag example of text blitter, it doesn't use the bubble option but could still produce the same effect. The text could be stored something like this:

(------------)
|...HELLO...|
[------------]

And the different characters could be used as different border pictures?

Edited by -J-

 
n/a ...
   

Post Reply



 



Advertisement

Worth A Click