public inbox for xconq7@sourceware.org
 help / color / mirror / Atom feed
From: Eric McDonald <mcdonald@phy.cmich.edu>
To: xconq-developers@lists.sourceforge.net,
	 xconq-hackers@lists.sourceforge.net,
	xconq7 <xconq7@sources.redhat.com>
Subject: More New Map/Unit Display Properties
Date: Tue, 28 Dec 2004 02:03:00 -0000	[thread overview]
Message-ID: <41CFB7C5.1090503@phy.cmich.edu> (raw)

Hello Xconq Game Designers,

   The Tcl/Tk interface now honors the 'unit-gbox-border-color' and 
'unit-gbox-fill-color' globals that I mentioned in the previous message.
For example:
   (set unit-gbox-border-color "red")

   There are two new unit-type properties now available, and only the 
SDL interface presently honors them. These are: 
'construction-border-color' and 'construction-fill-color'. You can set 
these on a type by type basis. The border color is the color of a box 
surrounding an unit under construction. The fill color is the color 
_behind_ the unit under construction.
   I have gotten alpha blending to work in the SDL interface, and it 
uses alpha blending regarding the fill color. As construction on an unit 
progresses, more and more of the terrain or transport grouping box 
behind the unit under construction starts to "show through" the fill 
color. By the time an unit is almost complete, the fill color is very 
faint. (The border does not fade at all. It disappears once the unit is 
complete.)
Example:
   (unit-type foo
     #| other junk |#
     (construction-border-color "AntiqueWhite")
     (construction-fill-color "brown")
   )

   (If anyone is planning on hacking on the SDL interface besides 
myself, the function I created to alpha blend a fill rect into a surface 
is 'alpha_blend_fill_rect'.)

   I think that after I squash a bug regarding selection rectangles of 
units that have oversized icons (44x44, for example), I will create a 
new file release.

Eric

P.S. I posted a new screenshot showing SDL interface progress in the 
screenshots section of the Sourceforge Web site.
http://sourceforge.net/project/screenshots.php?group_id=124062
Note that the most recent SDL interface screenshot shows the 
construction boxes. They all appear to be the same color (brown fill 
with SandyBrown border) because the screenshot was taken before I had 
alpha blending in place.

                 reply	other threads:[~2004-12-27  7:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41CFB7C5.1090503@phy.cmich.edu \
    --to=mcdonald@phy.cmich.edu \
    --cc=xconq-developers@lists.sourceforge.net \
    --cc=xconq-hackers@lists.sourceforge.net \
    --cc=xconq7@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).