Sprite Photo

Post Reply
cashgrany
Posts: 6
Joined: Fri Sep 29, 2017 1:40 pm

Sprite Photo

Post by cashgrany »

Hello everyone ; I saw in the database editor; in "unit-general-spritephoto" ; how do you add spritephoto?
User avatar
Veitikka
Posts: 1308
Joined: Sun Jun 24, 2007 10:11 pm
Location: Finland
Contact:

RE: Sprite Photo

Post by Veitikka »

The photo feature is currently not in use. It may be activated in the future when we know where and when the photos should be shown.
Know thyself!
Linda_Sheffield
Posts: 14
Joined: Mon May 13, 2019 9:17 am

RE: Sprite Photo

Post by Linda_Sheffield »

Err... This feature is working fine. Although it requires manually editing CustomResources file.
Linda_Sheffield
Posts: 14
Joined: Mon May 13, 2019 9:17 am

RE: Sprite Photo

Post by Linda_Sheffield »

1 Create a photo of a unit - unintmname.png

2 Create a folder at ...\data\graphics\your_folder and place unitname.png there.

3 Open resources_custom.xml and add:

<sprite name="Unitname" base_angle="0">
<image file="your_folder\unitname.png" />
<translation origin="center"/>
<rotation origin="center"/>
</sprite>

4 Open Database Editor and add unitname in SpritePhoto field.

Aaand all this trouble just to see photo instead of sprite on unit selection screen during mission generaton :)

Attachments
screen.jpg
screen.jpg (104.26 KiB) Viewed 50 times
User avatar
nikolas93TS
Posts: 621
Joined: Fri Feb 24, 2017 4:32 pm
Contact:

RE: Sprite Photo

Post by nikolas93TS »

I notice database in Russian!

What mod it is?
Armored Brigade Database Specialist
Linda_Sheffield
Posts: 14
Joined: Mon May 13, 2019 9:17 am

RE: Sprite Photo

Post by Linda_Sheffield »

I translated russian part of Database and changed generic names of ammo to precise model markings.
User avatar
Veitikka
Posts: 1308
Joined: Sun Jun 24, 2007 10:11 pm
Location: Finland
Contact:

RE: Sprite Photo

Post by Veitikka »

I thought I disabled the feature when I implemented the new UI, but if it works then everything is fine [:)]
Know thyself!
Post Reply

Return to “MODS and Scenarios”