how to make deploy window transparent?

Please post here for questions and discussion about scenario, art and sound modding.

Moderator: doomtrader

Post Reply
gwgardner
Posts: 7279
Joined: Fri Apr 07, 2006 1:23 pm

how to make deploy window transparent?

Post by gwgardner »

How can I get rid of the green background here, and just leave the text? In other words, how to make it transparent?



Image
Attachments
Untitled.jpg
Untitled.jpg (186.63 KiB) Viewed 531 times

User avatar
doomtrader
Posts: 5319
Joined: Tue Jul 22, 2008 5:21 am
Location: Poland
Contact:

RE: how to make deploy window transparent?

Post by doomtrader »

You are much better in making things transparent, than I am.
Did you tried to do it in the same way as you made the battle resolution window transparent?
gwgardner
Posts: 7279
Joined: Fri Apr 07, 2006 1:23 pm

RE: how to make deploy window transparent?

Post by gwgardner »

indeed I did, to no effect

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

RE: how to make deploy window transparent?

Post by Rasputitsa »

You can remove the outer border of the unit listings, which leaves a simple box :

GUI OOOOXOOO ......Line 486 480;-200;-200;0;0;Units Frame

I guess the rest is in Line 489, but I have not gone that far, as I like the simple box.[:)]
"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: how to make deploy window transparent?

Post by Rasputitsa »

ORIGINAL: gwgardner
How can I get rid of the green background here, and just leave the text? In other words, how to make it transparent?

If you take away the whole box there will be small symbols, in 'on map' mode, in the right hand columns which will be very difficult to see, against a map background. I have been working with the unit box reduced with the border removed and with more of the map visible, you can right click and drag the map from under the box, to see the selected unit.

I don't think you can blank the deploy section alone, it would be the unit box with 'on map' as well as 'deploy', it would all have to go. That's a lot of information to see overprinted on the map.[:)]
"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: 7279
Joined: Fri Apr 07, 2006 1:23 pm

RE: how to make deploy window transparent?

Post by gwgardner »

ORIGINAL: Rasputitsa


I don't think you can blank the deploy section alone, it would be the unit box with 'on map' as well as 'deploy', it would all have to go. That's a lot of information to see overprinted on the map.[:)]

But if it can be done, how? I'd like to try. With my bigger font, perhaps I wouldn't have trouble reading it.

I can remove the border, as you described, but can't figure out how to just remove the green opaque background.

User avatar
Magpius
Posts: 1754
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: how to make deploy window transparent?

Post by Magpius »

I think the solution lies in the gui.png file, rather than just tweaking the .csv files.
(Erase the background box)
I'll post up a modified .png if you like.

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
gwgardner
Posts: 7279
Joined: Fri Apr 07, 2006 1:23 pm

RE: how to make deploy window transparent?

Post by gwgardner »

That would be great.

I had just emailed th1207 concerning that, as he had fiddled with the gui.png in SoP to make the blue background translucent.

His gui.png worked in ToF, but still left some windows, such as the units and deploy windows, opaque.

I'd like to see beneath all the various windows, to the map below.

Thanks.

User avatar
Magpius
Posts: 1754
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: how to make deploy window transparent?

Post by Magpius »

in the bottom left corner of the gui.png file you can see all the referenced dialog boxes.
Erasing the octagon, should render all dialog backgrounds transparent, as the csv files will still be referencing the same empty corner, and 'stretching it' into the game space.



Image
Attachments
eg.jpg
eg.jpg (73.79 KiB) Viewed 531 times

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
gwgardner
Posts: 7279
Joined: Fri Apr 07, 2006 1:23 pm

RE: how to make deploy window transparent?

Post by gwgardner »

Aha! But how to do that? I, alas, have installed gimp, but have been an utter failure in getting it to do what I want. I will try.

User avatar
Magpius
Posts: 1754
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: how to make deploy window transparent?

Post by Magpius »

The secret is to maintain transparency.
There are some very basic things to remember.
1. .png files can maintain layers. and
2. Layers can all be transparent.
In gimp, a layer can be transparent check to see if the "add alpha channel" has indeed been added.
Another 'giveaway' is the grey checkerboard background pattern. If you don't have it as a background, the resulting image file will not be transparent.
When saving the file, select export layers merge. This will maintain the transparency of the resulting .png file.
-hope that makes things a little more.... transparent!

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
User avatar
Magpius
Posts: 1754
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: how to make deploy window transparent?

Post by Magpius »

here is a gui.png, that has had the backgrounds removed, but retains the frames.
Just remember to save the original file elsewhere. It's a pandora's box when you start tweaking the game too much. I find I mod more than play sometimes.
Attachments
GUI.zip
(1.94 MiB) Downloaded 14 times

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
User avatar
Magpius
Posts: 1754
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: how to make deploy window transparent?

Post by Magpius »

here is the example of above

Image
Attachments
ScreenHunt..1211.20.jpg
ScreenHunt..1211.20.jpg (26.69 KiB) Viewed 532 times

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
gwgardner
Posts: 7279
Joined: Fri Apr 07, 2006 1:23 pm

RE: how to make deploy window transparent?

Post by gwgardner »

That worked for some of the windows. I'm guessing the areas marked also need that transparency. There is a rectangular one that is in the center of the deploy window. Could be the other rectangular one below the one I marked?

Image
Attachments
AgentS.jpg
AgentS.jpg (22.24 KiB) Viewed 531 times

gwgardner
Posts: 7279
Joined: Fri Apr 07, 2006 1:23 pm

RE: how to make deploy window transparent?

Post by gwgardner »

I actually got it translucent, but not enough. Haven't figured out how to change the amount of the alpha, I guess.

Image
Attachments
Untitled.jpg
Untitled.jpg (66.31 KiB) Viewed 531 times

gwgardner
Posts: 7279
Joined: Fri Apr 07, 2006 1:23 pm

RE: how to make deploy window transparent?

Post by gwgardner »

got it transparent. Now maybe I need to back off on that, and make it translucent. With a different color font.

Image
Attachments
Untitled.jpg
Untitled.jpg (128.86 KiB) Viewed 531 times

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

RE: how to make deploy window transparent?

Post by Rasputitsa »

Very good, anything is possible, but there is a lot of text there and the balance is going to be critical.[:)]
"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: 1754
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: how to make deploy window transparent?

Post by Magpius »

Using Gimp you could cut out the element you want to make translucent, paste it into the exact same spot, as a new layer.
Once on a separate layer there is a slider that lets you set the % of transparency on the layer dialog box.
have fun.
modding games is a nice way to learn gimp.

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
gwgardner
Posts: 7279
Joined: Fri Apr 07, 2006 1:23 pm

RE: how to make deploy window transparent?

Post by gwgardner »

ORIGINAL: Agent S

Using Gimp you could cut out the element you want to make translucent, paste it into the exact same spot, as a new layer.
Once on a separate layer there is a slider that lets you set the % of transparency on the layer dialog box.
have fun.
modding games is a nice way to learn gimp.

That's what I pretty much ended up doing, except I modified the layer already there (I think). Should have used another layer, I guess. At any rate, I like it, but will fiddle with the font color.
ORIGINAL: Rasputitsa

Very good, anything is possible, but there is a lot of text there and the balance is going to be critical.[:)]

Indeed. I'm using yellow text now, but may try something darker.

Post Reply

Return to “Design and Modding”