Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

Advertisement

Hello, visitor! These forums are run off of the revenue generated from these ads. If you'd like to support us, please whitelist us or consider donating:

#1 2018-01-09 18:33:40

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 4,765

Aura Colors changer

Stop big aura shapes images with different colors in it!

You can change color of the aura via code and filters.

works like this:
6au7V5p.png V9PNUio.png 3SKhWAb.png

Code is very simple.

      public static function changeColor(auraBMD:BitmapData) : BitmapData
      {
         var filter:ColorTransform = new ColorTransform();
         filter.color = Global.AuraColor;
         auraBMD.colorTransform(auraBMD.rect,filter);
         return auraBMD;
      }

You can make enum of colors.

   public class AuraColours
   {
      public static const RED:uint = 16711680;
      public static const GREEN:uint = 65280;
      public static const BLUE:uint = 255;
      public static const PURPLE:uint = 16711935;
      public static const CYAN:uint = 65535;
      public static const YELLOW:uint = 16776960;
    }
//etc

and use it like

player.aura = ItemManager.getAuraByIdAndColor(auraid, AuraColors.YELLOW);

      public static function getAuraByIdAndColor(param1:int, param2:int) : ItemAura
      {
         var _loc3_:int = 0;
         while(_loc3_ < auraShapes.length)
         {
            if(auraShapes[_loc3_].id == param1)
            {
               return auraShapes[_loc3_].bmd = this.changeColor(auraShapes[_loc3_].bmd, param2);
            }
            _loc3_++;
         }
         return null;
      }


     EDIT: my bad, auraShapes[_loc3_] returns AuraShape, but not ItemAura. But you got the idea and it's easy to make it work.

it will probably save a lot of space in the client because you have to store only white version on the aura

Last edited by Gosha (2018-01-10 11:41:06)

Online

#2 2018-01-09 18:41:24

zyhrllos
Formerly Ernesdo
Joined: 2015-11-08
Posts: 1,290

Re: Aura Colors changer

this hasn’t occurred ingame at all, what are you trying to do?

besides auras are way more elaborate than you think, they aren’t complete recolors

Last edited by zyhrllos (2018-01-09 18:42:32)

Offline

#3 2018-01-09 18:42:40

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 4,765

Re: Aura Colors changer

zyhrllos wrote:

this hasn’t occurred ingame at all, what are you trying to do?

this is a suggestion. I suggested a code to change aura color using filters, but not images from game files.

zyhrllos wrote:

besides auras are way more elaborate than you think, they aren’t complete recolors

most of the auras are just recolors. "special ones" can be stored as usual

Last edited by Gosha (2018-01-09 18:43:34)

Online

Wooted by:

HG

#4 2018-01-09 19:17:14

Latif
Member
From: The Netherlands
Joined: 2015-03-13
Posts: 880

Re: Aura Colors changer

They are just recolors. Except for the gold aura, but how you make it is some kind of secret. I don't know why.


dxNlpEv.png
Thanks to HG for this epic signature big_smile

My avatar creation thread
I only have some basic experience so I'm not very good at graphics. HAHHAH NO I'M THE BEST

Offline

#5 2018-01-09 19:20:22

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 4,765

Re: Aura Colors changer

Latif wrote:

They are just recolors. Except for the gold aura, but how you make it is some kind of secret. I don't know why.

it seems like golden aura is regular aura with golden thing on top.
you can edit color of original aura and add gold one on top.

Online

Wooted by:

HG

#6 2018-01-09 23:29:46

zyhrllos
Formerly Ernesdo
Joined: 2015-11-08
Posts: 1,290

Re: Aura Colors changer

Gosha wrote:

this is a suggestion. I suggested a code to change aura color using filters, but not images from game files.

"Stop big aura shapes images with different colors in it!"

Gosha wrote:

it seems like golden aura is regular aura with golden thing on top.
you can edit color of original aura and add gold one on top.

wrong, golden auras use a special formula

Offline

#7 2018-01-09 23:41:23

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 4,765

Re: Aura Colors changer

zyhrllos wrote:

wrong, golden auras use a special formula

why are you arguing so much all the time?
see the pattern?
JavQV74.png

just color the thing and then add gold cross.

Online

Wooted by:

HG

#8 2018-01-10 00:22:54

Vinyl Melody
Formerly BananaMilkShake
From: Ponies and Harmony
Joined: 2016-06-19
Posts: 557

Re: Aura Colors changer

add shader support :^


c5094df540.png

Official%20Discord%20Server-Melody-blue.svg?style=flat-square
Avatars: Latif (Old)
Thanks to: Ernesdo (Current Avatar)

Offline

Wooted by:

HG

#9 2018-01-10 01:17:19

LukeM
Formerly destroyer123
From: England
Joined: 2016-06-03
Posts: 1,383
Website

Re: Aura Colors changer

zyhrllos wrote:

wrong, golden auras use a special formula

The point is that there is a formula, and if there's a formula it can easily be automated within the EE client

And to me it looks a lot like it's just done with a base image and a tinted mask image... I guess I'll check later (I happen to have written a program previously that inputs several images and brute-forces them back to two images and a tint tongue)


- Luke Miles

Offline

Wooted by:

HG

#10 2018-01-10 01:35:30

zyhrllos
Formerly Ernesdo
Joined: 2015-11-08
Posts: 1,290

Re: Aura Colors changer

Gosha wrote:
zyhrllos wrote:

wrong, golden auras use a special formula

why are you arguing so much all the time?
see the pattern?
https://i.imgur.com/JavQV74.png

just color the thing and then add gold cross.

use grammar then? i thought you were talking about the golden aura color

LukeM wrote:

The point is that there is a formula, and if there's a formula it can easily be automated within the EE client

it literally cant

Offline

zyhrllos1515544530691670

Board footer

Powered by FluxBB

[ Started around 1516242213.0712 - Generated in 0.078 seconds, 10 queries executed - Memory usage: 1.26 MiB (Peak: 1.41 MiB) ]