This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's TI-Freak8x subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Pokemon Purple => TI-Freak8x
United-TI Archives -> Pokemon Purple
 
    » Goto page 1, 2, 3, 4  Next
» View previous topic :: View next topic  
Author Message
tifreak8x


Elite


Joined: 27 Aug 2005
Posts: 956

Posted: 10 Jun 2007 04:36:58 pm    Post subject:








What do you think? That should be more than dynamic enough to take on menus Razz


Last edited by Guest on 10 Jun 2007 04:44:48 pm; edited 1 time in total
Back to top
Super Speler
Super Awesome Dude


Calc Guru


Joined: 28 Nov 2005
Posts: 1391

Posted: 10 Jun 2007 04:39:04 pm    Post subject:

Nice work so far, I'm glad to see progress.
Back to top
TheStorm


Calc Guru


Joined: 17 Apr 2007
Posts: 1233

Posted: 10 Jun 2007 04:43:27 pm    Post subject:

The second is the best but I'm sure you knew that.
Back to top
tifreak8x


Elite


Joined: 27 Aug 2005
Posts: 956

Posted: 10 Jun 2007 04:47:38 pm    Post subject:

TheStorm, you DO realize that I posted 3 screenies to show how dynamic the borders were, right? Cause for the menu in the originals, you could select certain normal moves, and all HM moves from within that lil box...
Back to top
Harrierfalcon
The Raptor of Calcs


Super Elite (Last Title)


Joined: 25 Oct 2006
Posts: 2535

Posted: 10 Jun 2007 04:59:22 pm    Post subject:

Why do the boxes have to be so wide? You're not going to have any 18 character HM moves, are you?
Back to top
Xphoenix


Elite


Joined: 04 Apr 2007
Posts: 756

Posted: 10 Jun 2007 05:00:57 pm    Post subject:

Like he said, he just wants to demonstrate the possibility.

Can you pause more in the beginning so we can see what variables are being changed?
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 10 Jun 2007 05:01:39 pm    Post subject:

You can erase large areas faster with the text command and some spaces.
Back to top
Xphoenix


Elite


Joined: 04 Apr 2007
Posts: 756

Posted: 10 Jun 2007 05:02:15 pm    Post subject:

But then it looks weirder Sad
Back to top
Weregoose
Authentic INTJ


Super Elite (Last Title)


Joined: 25 Nov 2004
Posts: 3976

Posted: 10 Jun 2007 05:02:36 pm    Post subject:

Xphoenix wrote:
Can you pause more in the beginning so we can see what variables are being changed?
It's in the first frame of the image. Right click, Copy Image, paste into MS Paint.

Last edited by Guest on 10 Jun 2007 05:03:07 pm; edited 1 time in total
Back to top
Xphoenix


Elite


Joined: 04 Apr 2007
Posts: 756

Posted: 10 Jun 2007 05:08:15 pm    Post subject:

Ah. Thanks.
C=distance from left
D=height
I think. Cool screens.


Hey, Weregoose changed his pieces back to the old set and his avatar to an [s]owl[/s] hawk. And now it says "Do not click..."


Last edited by Guest on 10 Jun 2007 05:19:29 pm; edited 1 time in total
Back to top
Weregoose
Authentic INTJ


Super Elite (Last Title)


Joined: 25 Nov 2004
Posts: 3976

Posted: 10 Jun 2007 05:16:01 pm    Post subject:

Xphoenix wrote:
Hey, Weregoose changed his pieces back to the old set and his avatar to an owl.
I converted the pieces to an image because some people didn't
have the right fonts installed to see it properly, and it's a hawk.

But we're on topic. :biggrin:


Last edited by Guest on 10 Jun 2007 05:20:37 pm; edited 1 time in total
Back to top
tifreak8x


Elite


Joined: 27 Aug 2005
Posts: 956

Posted: 10 Jun 2007 05:21:56 pm    Post subject:

yeah, C == width, D == height. And I would not be able to make the erasing part as dynamic if I tried to use Text... :/
Back to top
Liazon
title goes here


Bandwidth Hog


Joined: 01 Nov 2005
Posts: 2007

Posted: 10 Jun 2007 05:56:57 pm    Post subject:

yay for progress!
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 10 Jun 2007 06:27:20 pm    Post subject:

tifreak8x wrote:
yeah, C == width, D == height. And I would not be able to make the erasing part as dynamic if I tried to use Text... :/
[post="107494"]<{POST_SNAPBACK}>[/post]

Since you know the position and width and height of the menu you can easily do it by running a loop between those values as long as you use an appropriate increment.

You can fill a string of spaces for the width with a similar loop. Add 5 (or 10 or whatever gives the best speed vs size trade-off) spaces each iteration and the remaining 1-4 to match screen-C.

//fill spaces for width erase
substr(" ",1,5fPart(.2(94-C //5 * after decimal part of (width of menu / 5) = remaining pixels after the following loop:
For(I,1,int(94-C //rough fill to (width of screen / 5.0)
Ans+" //5 spaces
End
//fill screen with text to erase for menu
For(J,58,D,-int(D/5 //assuming text space erases 5 pixels per line I forgot could be 6?
Text(J,C,Ans
End

Then do a final Text(D,C," //spaces to correct for rounding in the iteration amount.

I mean, a menu will always be at least the size of one Text outputted space, right?


Last edited by Guest on 10 Jun 2007 06:30:48 pm; edited 1 time in total
Back to top
tifreak8x


Elite


Joined: 27 Aug 2005
Posts: 956

Posted: 10 Jun 2007 06:57:17 pm    Post subject:

I used to use text in the past for other things, and it looked too... jerky, I guess would be the right word.

And besides, while that looks cool, and is probably functional, it would be slower than just having the for loop with a line erasing.
Back to top
bananaman
Indestructible


Calc Guru


Joined: 12 Sep 2005
Posts: 1124

Posted: 10 Jun 2007 09:16:23 pm    Post subject:

I think it might be moderately faster depending on the size of the menu, but it probably takes up more code. I say just go with the line method if that is what you prefer.
Back to top
TheStorm


Calc Guru


Joined: 17 Apr 2007
Posts: 1233

Posted: 10 Jun 2007 10:26:32 pm    Post subject:

To make it look cooler you could draw the boarder as you erase with the line command. so it would be
Code:
 :line(A,B,94,A,0
:pxl-on(A,B
:pxl-on(A+2,B
:pxl-on(92,B
:pxl-on(94,B

and then draw the top and bottom of the boarder out side of the loop.
Back to top
tifreak8x


Elite


Joined: 27 Aug 2005
Posts: 956

Posted: 10 Jun 2007 10:30:48 pm    Post subject:

While it would be cooler, I would have to *technically* have it draw the first 3 lines, and maintain that as it went up, which would slow it down alot! x.x For the time being, the way it is set up would be the best way to do it, not counting the fact the smallest way to do it.
Back to top
Xphoenix


Elite


Joined: 04 Apr 2007
Posts: 756

Posted: 10 Jun 2007 10:35:07 pm    Post subject:

Of course :)

Now the fun--implementing stuff for the user to do.
Back to top
tifreak8x


Elite


Joined: 27 Aug 2005
Posts: 956

Posted: 10 Jun 2007 10:40:38 pm    Post subject:

yeah, working on that right now :P

I had the sudden realization that I will also have to have the other, shorter text move to the left as well for the words with more than 5 letters... -.-

Oh what fun...
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page 1, 2, 3, 4  Next
» View previous topic :: View next topic  
Page 1 of 4 » All times are UTC - 5 Hours

 

Advertisement