It is currently Thu Sep 09, 2010 8:15 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: The DRAW Command - Background Color
PostPosted: Mon Jan 14, 2008 5:11 am 
Site Admin
User avatar

Joined: Wed Dec 26, 2007 12:19 am
Posts: 308
Location: Australia
A new command can draw color to the background, either as a solid color, or as varying colors.

DRAW y-position R G B mode

The y-position is the console line which you would like to draw a background to.

R is the amount of red between 0 and 255.
G is the amount of green between 0 and 255.
B is the amount of blue between 0 and 255.

The mode is one of the following keywords: SOLID, FLOW, FADEIN, FADEOUT, FADECENTER, FADEINVERSE. You can view these in DSO with the command: HELP DRAW

The different modes of the DRAW command are shown in the screenshot below.

The screenshot is of the following script:

Code:
SAY this is SOLID
DRAW -1 105 85 150 solid

SAY this is FADEIN
DRAW -1 105 85 150 fadein

SAY this is FADEOUT
DRAW -1 105 85 150 fadeout

SAY this is FADECENTER
DRAW -1 105 85 150 fadecenter


SAY this is FADEINVERSE
DRAW -1 105 85 150 fadeinverse

SAY this is FLOW
DRAW -1 105 85 150 flow


Attachments:
drawdemo.png
drawdemo.png [ 3.79 KiB | Viewed 1350 times ]

_________________
The #1 Dark Signs Online Coder
Email me: terminal@darksignsonline.com
Offline
 Profile  
 
 Post subject: Re: The DRAW Command - Background Color
PostPosted: Mon Jan 14, 2008 5:35 am 
Developer
User avatar

Joined: Sat Dec 29, 2007 10:15 am
Posts: 946
Location: Australia
What does the y-pos do if its set to -1?

EDIT: never mind, I think it means previous line. Is this correct?

_________________
Image


Offline
 Profile  
 
 Post subject: Re: The DRAW Command - Background Color
PostPosted: Mon Jan 14, 2008 5:39 am 
Site Admin
User avatar

Joined: Wed Dec 26, 2007 12:19 am
Posts: 308
Location: Australia
BigBob85 wrote:
What does the y-pos do if its set to -1?

EDIT: never mind, I think it means previous line. Is this correct?


Yes, -1 is up one line. So if you use SAY in a script, and you want to follow it up with a background color straight away, just use -1.

This will never be a positive number, as you cannot print backgrounds to lines which do not exist yet. (although it can be 0, if you really want).

_________________
The #1 Dark Signs Online Coder
Email me: terminal@darksignsonline.com


Offline
 Profile  
 
 Post subject: Re: The DRAW Command - Background Color
PostPosted: Mon Jan 14, 2008 4:53 pm 
User avatar

Joined: Mon Dec 31, 2007 8:02 am
Posts: 88
Location: Austria
And it is just possible to draw a line? Not, to draw a little rectangle before the Text (like this)

[ ] Text

All ohter questions I will try out ;)

_________________
~~ Sorry for my - eventually - broken english! I'm from Austria ;)
I hope, I see the 'format c:'-Command included xD


Offline
 Profile  
 
 Post subject: Re: The DRAW Command - Background Color
PostPosted: Tue Jan 15, 2008 2:09 am 
Developer
User avatar

Joined: Sat Dec 29, 2007 10:15 am
Posts: 946
Location: Australia
So you mean draw a little bar that stops before you text?

_________________
Image


Offline
 Profile  
 
 Post subject: Re: The DRAW Command - Background Color
PostPosted: Sat Feb 09, 2008 4:22 pm 

Joined: Fri Dec 28, 2007 2:34 am
Posts: 4
Hi.. The draw command can draw images???, can i load images from my hard disk??
can i draw plots??? can i ...??? :mrgreen:

Thanks..


Offline
 Profile  
 
 Post subject: Re: The DRAW Command - Background Color
PostPosted: Sat Feb 09, 2008 4:51 pm 
User avatar

Joined: Thu Dec 27, 2007 1:50 pm
Posts: 140
No, no and no.
Well, not yet, I hope.


Offline
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


 Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
 
cron