Page 1 of 1

Sprite Photo

Posted: Thu Jun 06, 2019 9:48 pm
by cashgrany
Hello everyone ; I saw in the database editor; in "unit-general-spritephoto" ; how do you add spritephoto?

RE: Sprite Photo

Posted: Fri Jun 07, 2019 9:09 am
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.

RE: Sprite Photo

Posted: Mon Jun 10, 2019 10:13 am
by Linda_Sheffield
Err... This feature is working fine. Although it requires manually editing CustomResources file.

RE: Sprite Photo

Posted: Mon Jun 10, 2019 10:39 am
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 :)


RE: Sprite Photo

Posted: Mon Jun 10, 2019 12:19 pm
by nikolas93TS
I notice database in Russian!

What mod it is?

RE: Sprite Photo

Posted: Mon Jun 10, 2019 12:53 pm
by Linda_Sheffield
I translated russian part of Database and changed generic names of ammo to precise model markings.

RE: Sprite Photo

Posted: Tue Jun 11, 2019 5:57 pm
by Veitikka
I thought I disabled the feature when I implemented the new UI, but if it works then everything is fine [:)]