From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19541 invoked by alias); 27 Dec 2004 07:21:09 -0000 Mailing-List: contact xconq7-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: xconq7-owner@sources.redhat.com Received: (qmail 19481 invoked from network); 27 Dec 2004 07:21:01 -0000 Received: from unknown (HELO rwcrmhc11.comcast.net) (204.127.198.35) by sourceware.org with SMTP; 27 Dec 2004 07:21:01 -0000 Received: from [192.168.181.128] (c-67-176-41-158.client.comcast.net[67.176.41.158]) by comcast.net (rwcrmhc11) with ESMTP id <20041227072101013001694ge>; Mon, 27 Dec 2004 07:21:01 +0000 Message-ID: <41CFB7C5.1090503@phy.cmich.edu> Date: Tue, 28 Dec 2004 02:03:00 -0000 From: Eric McDonald User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) MIME-Version: 1.0 To: xconq-developers@lists.sourceforge.net, xconq-hackers@lists.sourceforge.net, xconq7 Subject: More New Map/Unit Display Properties Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004/txt/msg01489.txt.bz2 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.