transparent combat screens

Post new scenarios and mods here to share with other gamers.
Post Reply
gwgardner
Posts: 7246
Joined: Fri Apr 07, 2006 1:23 pm

transparent combat screens

Post by gwgardner »

It's a pain having to move the map to see which unit is being attacked, so I took out the frame/background for the combat popup.

If you want to do the same, just go through the [your resolution].csv file and delete 'frame' lines for combat.

I tried using the # to comment out the line, but got a crash afterwards.

Image
Attachments
Untitled.jpg
Untitled.jpg (55.73 KiB) Viewed 290 times

User avatar
Rasputitsa
Posts: 2902
Joined: Sat Jun 30, 2001 8:00 am
Location: Bedfordshire UK
Contact:

RE: transparent combat screens

Post by Rasputitsa »

Nice idea, I am looking at the files, thanks. [:)]
"In politics stupidity is not a handicap" - Napoleon

“A people which is able to say everything becomes able to do everything” - Napoleon

“Among those who dislike oppression are many who like to oppress" - Napoleon
User avatar
Rasputitsa
Posts: 2902
Joined: Sat Jun 30, 2001 8:00 am
Location: Bedfordshire UK
Contact:

RE: transparent combat screens

Post by Rasputitsa »

Just want to confirm which lines to delete, is it just the frame lines 906,911 and 918, or does it include 'frame label' lines 910,912and 917. I assume you just delete the content of these lines. Thanks. [:)]
"In politics stupidity is not a handicap" - Napoleon

“A people which is able to say everything becomes able to do everything” - Napoleon

“Among those who dislike oppression are many who like to oppress" - Napoleon
User avatar
Rasputitsa
Posts: 2902
Joined: Sat Jun 30, 2001 8:00 am
Location: Bedfordshire UK
Contact:

RE: transparent combat screens

Post by Rasputitsa »

Worked it out by elimination, kept the slider controls visible, and it works really well. Now I can see what's going on, a great improvement. Using default white text at the moment, need to trial it, to see if I need to change. [:)]
"In politics stupidity is not a handicap" - Napoleon

“A people which is able to say everything becomes able to do everything” - Napoleon

“Among those who dislike oppression are many who like to oppress" - Napoleon
User avatar
Bleck
Posts: 741
Joined: Sun Mar 08, 2009 1:35 pm
Location: Poland
Contact:

RE: transparent combat screens

Post by Bleck »

You can move the whole dialog and resize it using those CSV files. It's components can also be moved/resized, so you can rearrange it. You should not comment out lines or delete them, it is recommended to only change values (but not first one). To hide something you can move it (2nd and 3rd value) outside screen, or resize it (4th and 5th value) to (0;0).
Wastelands Interactive member (Programmer)
gwgardner
Posts: 7246
Joined: Fri Apr 07, 2006 1:23 pm

RE: transparent combat screens

Post by gwgardner »

ORIGINAL: Rasputitsa

Worked it out by elimination, kept the slider controls visible, and it works really well. Now I can see what's going on, a great improvement. Using default white text at the moment, need to trial it, to see if I need to change. [:)]

Yeah, white is probably better for the normal map. I find myself switching between normal and Agent S often, depending on where I'm at - like in China.

User avatar
Rasputitsa
Posts: 2902
Joined: Sat Jun 30, 2001 8:00 am
Location: Bedfordshire UK
Contact:

RE: transparent combat screens

Post by Rasputitsa »

ORIGINAL: Bleck

You can move the whole dialog and resize it using those CSV files. It's components can also be moved/resized, so you can rearrange it. You should not comment out lines or delete them, it is recommended to only change values (but not first one). To hide something you can move it (2nd and 3rd value) outside screen, or resize it (4th and 5th value) to (0;0).

This is a very useful feature which is worth getting right, because I would use it as a regular set-up. Can you confirm what each line should read to achieve the transparent effect (that is, to keep it on the screen in original text layout, but see-through). Thanks [:)]
"In politics stupidity is not a handicap" - Napoleon

“A people which is able to say everything becomes able to do everything” - Napoleon

“Among those who dislike oppression are many who like to oppress" - Napoleon
User avatar
Bleck
Posts: 741
Joined: Sun Mar 08, 2009 1:35 pm
Location: Poland
Contact:

RE: transparent combat screens

Post by Bleck »

Line 906 (I prefer to use component ID, 1st value, so in this case component #900). Make it:
900;-200;-200;0;0;Combat Result Frame
Wastelands Interactive member (Programmer)
User avatar
Rasputitsa
Posts: 2902
Joined: Sat Jun 30, 2001 8:00 am
Location: Bedfordshire UK
Contact:

RE: transparent combat screens

Post by Rasputitsa »

ORIGINAL: Bleck

Line 906 (I prefer to use component ID, 1st value, so in this case component #900). Make it:
900;-200;-200;0;0;Combat Result Frame

Thanks very much, this is a very useful feature and I am grateful for your quick response. The support for these titles is exceptional. Once the combat results box is transparent, if the remaining text is in the way, you can right click and slide the map, so that you can see all the action. I can now understand what's going on during combat. [:)]
"In politics stupidity is not a handicap" - Napoleon

“A people which is able to say everything becomes able to do everything” - Napoleon

“Among those who dislike oppression are many who like to oppress" - Napoleon
Frido1207
Posts: 455
Joined: Thu Nov 16, 2006 10:44 am
Location: Lower Saxony, Germany

RE: transparent combat screens

Post by Frido1207 »

Probably stupid question:
I don´t want the combat result background being tranparent.
I would prefer just to brighten or change the color.
Is that possible too? And if so, how to do that?
thx in advance
RufusTFirefly
Posts: 951
Joined: Fri Aug 29, 2008 2:05 pm
Location: Dortmund, Germany

RE: transparent combat screens

Post by RufusTFirefly »

ORIGINAL: Rasputitsa

Once the combat results box is transparent, if the remaining text is in the way, you can right click and slide the map, so that you can see all the action. I can now understand what's going on during combat. [:)]

Changing value for distance from top (column c) in line 909, 913 and 916,920 you can set flags and dialog boxes higher so it does not overlap with unit image.
User avatar
Bleck
Posts: 741
Joined: Sun Mar 08, 2009 1:35 pm
Location: Poland
Contact:

RE: transparent combat screens

Post by Bleck »

ORIGINAL: th1207

Probably stupid question:
I don´t want the combat result background being tranparent.
I would prefer just to brighten or change the color.
Is that possible too? And if so, how to do that?
thx in advance

You need to edit data/gfx/GUI.png file in any graphic editing program that support PNG files (not standard MS Paint). To be more specific - graphics in bottom left corner, but it will affect all dialogs, not only combat result. If you have any other questions feel free to ask.
Wastelands Interactive member (Programmer)
Frido1207
Posts: 455
Joined: Thu Nov 16, 2006 10:44 am
Location: Lower Saxony, Germany

RE: transparent combat screens

Post by Frido1207 »

That´s what i guessed.
Thx for the clarification & fast reply.
User avatar
Rasputitsa
Posts: 2902
Joined: Sat Jun 30, 2001 8:00 am
Location: Bedfordshire UK
Contact:

RE: transparent combat screens

Post by Rasputitsa »

For those who don't want to get into manipulating game files, could the transparent combat results box become a switchable option. [:)]
"In politics stupidity is not a handicap" - Napoleon

“A people which is able to say everything becomes able to do everything” - Napoleon

“Among those who dislike oppression are many who like to oppress" - Napoleon
User avatar
Magpius
Posts: 1748
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: transparent combat screens

Post by Magpius »

given how it is structured currently, I would think it's unlikely.

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
User avatar
Rasputitsa
Posts: 2902
Joined: Sat Jun 30, 2001 8:00 am
Location: Bedfordshire UK
Contact:

RE: transparent combat screens

Post by Rasputitsa »

I'm going to make this transparent box my default setting, I expect to use it all the time. I would like to change the text colour, but need some advice how to achieve that. Will it change the text colour in all boxes, which means I think I need a colour, such as red, that will work in both the transparent and normal boxes, thanks [:)]
"In politics stupidity is not a handicap" - Napoleon

“A people which is able to say everything becomes able to do everything” - Napoleon

“Among those who dislike oppression are many who like to oppress" - Napoleon
gwgardner
Posts: 7246
Joined: Fri Apr 07, 2006 1:23 pm

RE: transparent combat screens

Post by gwgardner »

To change the font I dropped to the bottom of the csv file and modified the 'medium' font line.

I have no idea why 'medium.' It's the one that worked. I'm sure the devs will explain better.

For that line I changed the RGB values from the default 230;230;230 to 0;0;0, ie white to black.

A nice website for experimenting with the RGB values is
http://www.help4web.net/webmaster/Color/RGB-Values.html

#FontID (must be 10);Name;Height;Weight (100 - 900);R;G;B;Special R;Special G;Special B;Comment (irrelevant for game)
1;Arial;14;90;230;230;230;255;255;0;GUI Small
2;Arial;16;90;0;0;0;255;255;0;GUI Medium
3;Arial;21;90;230;230;230;255;255;0;GUI Big
4;Arial;56;100;230;230;230;255;255;0;GUI Large
5;Courier;14;60;230;230;230;255;255;0;GUI Console
6;Courier;6;60;230;230;230;0;0;0;Diplomacy and Fleet Icons
7;Arial;21;100;230;230;230;0;0;0;AP left

User avatar
Rasputitsa
Posts: 2902
Joined: Sat Jun 30, 2001 8:00 am
Location: Bedfordshire UK
Contact:

RE: transparent combat screens

Post by Rasputitsa »

Thanks very much for the info and for the basic idea. [:)]
"In politics stupidity is not a handicap" - Napoleon

“A people which is able to say everything becomes able to do everything” - Napoleon

“Among those who dislike oppression are many who like to oppress" - Napoleon
Post Reply

Return to “Mods and Scenarios”