Decals_UI mod

Everything about mods can be found here.

Moderator: Morax

Decals_UI mod

Postby Green_Nymph » 16 May 2016, 18:33

Hey guys after getting a good reaction yesterday and wasting a lot of Washy's time its finnaly here. My new UI_Decals mode for which i stole 90% of code from others Washy's mods and idea from someone else.
The mod spawn a decal on acu spawn and another one when you die as seen on picture
rsz_preview.png
rsz_preview.png (531.2 KiB) Viewed 4067 times

Download the mod here
Decals_UI.rar
(184.24 KiB) Downloaded 215 times

Just extract the file into the mods folder located at C:\Users\Jan\Documents\My Games\Gas Powered Games\Supreme Commander Forged Alliance\Mods
Its set that the spawn icon is the faction of player and the death icons is the eye.
You can change those two icons by adding your own icons to the icon folder and changing this bit of code (in Mods\Decals_UI\hook\lua\ui\game\gamemain.lua)
Code: Select all
ring:SetTexture('/Mods/Decals_UI/icons/'..factions[armyData.faction+1]..'.dds')
to ring:SetTexture('/Mods/Decals_UI/icons/myspawn.dds')

As you can see the icon file must be DDS. You can use this site http://www.aconvert.com/image/png-to-dds/ to convert png images to DDS (also has jpg to dds converter).
To change death icon change this bit of code
Code: Select all
death:SetTexture('/Mods/Decals_UI/icons/death.dds')
to death:SetTexture('/Mods/Decals_UI/icons/mydeathicon.dds')


EDIT: Only works for your ACU death. Currently cant find a way to get position of other acus.
Green_Nymph
Crusader
 
Posts: 19
Joined: 10 Sep 2014, 10:09
Has liked: 3 times
Been liked: 11 times
FAF User Name: NymphNoob

Re: Decals_UI mod

Postby Greenio » 16 May 2016, 22:31

Nice!

Image


TY :D
Last edited by Greenio on 17 May 2016, 19:28, edited 3 times in total.
User avatar
Greenio
Avatar-of-War
 
Posts: 158
Joined: 02 May 2014, 14:21
Has liked: 12 times
Been liked: 24 times
FAF User Name: Greenio

Re: Decals_UI mod

Postby arkitect » 17 May 2016, 01:18

I'd love to see this integrated with faf and be awardable like avatars
arkitect
Avatar-of-War
 
Posts: 134
Joined: 08 May 2014, 13:40
Has liked: 23 times
Been liked: 81 times
FAF User Name: arkitect

Re: Decals_UI mod

Postby Kalvirox » 17 May 2016, 19:25

Love it! Best Mod this Year!
[SFo]T4ffytr0n2014: You can tell Kalvirox comes from the south by what he is having for lunch
SeraphimLeftNut: Two pieces of copper are electrically the same, but you can stab people with one piece and send UDP packets through another
User avatar
Kalvirox
Evaluator
 
Posts: 623
Joined: 31 Aug 2013, 16:19
Has liked: 121 times
Been liked: 133 times
FAF User Name: Kalvirox

Re: Decals_UI mod

Postby Green_Nymph » 17 May 2016, 19:57

Forgot to mention. This part manages the scale death:SetScale({18, 0,10.116}). So if you will use 500x500( or any AxA) images use death:SetScale({18, 0,18}) if not scale accordingly AxB death:SetScale({A*factor, 0,B*factor}) where factor is such number that makes max(A,B)*factor=18 . Not sure if i em the best at explaining.

IF you want the image to be bigger just make the 18 to 20 or more
Green_Nymph
Crusader
 
Posts: 19
Joined: 10 Sep 2014, 10:09
Has liked: 3 times
Been liked: 11 times
FAF User Name: NymphNoob

Re: Decals_UI mod

Postby manread » 17 May 2016, 20:10

This mod is awesome, great work <3
manread
Avatar-of-War
 
Posts: 194
Joined: 27 Oct 2013, 01:06
Has liked: 3 times
Been liked: 39 times
FAF User Name: manread

Re: Decals_UI mod

Postby Exotic_Retard » 17 May 2016, 21:24

hmm i noticed a couple of grahpical errors in your mod; so i fixed them:
Image
Image
other than that small mistake, great job
available to all [e] clan members of course
User avatar
Exotic_Retard
Contributor
 
Posts: 1470
Joined: 21 Mar 2013, 22:51
Has liked: 557 times
Been liked: 626 times
FAF User Name: Exotic_Retard

Re: Decals_UI mod

Postby Ithilis_Quo » 17 May 2016, 23:56

Exotic_Retard Image


We need also special version when player use control+k to autodestruct

Image

with explosion centred ower head : )
"Fixed in Equilibrium" Washy
User avatar
Ithilis_Quo
Supreme Commander
 
Posts: 1390
Joined: 29 Dec 2012, 15:55
Location: Slovakia
Has liked: 395 times
Been liked: 181 times
FAF User Name: Ithilis


Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest