Jump to content

SlotHighLigh - Slot Glow Effect


Recommended Posts

  • 4 weeks later...

Hello P3NG3R --> xP3NG3Rx

I want to add this system. But I am constantly encountering errors.

 

Error 1:

spacer.png

 

Also bkz:

rpHighLightImage->SetScale(m_v2Scale.x, m_v2Scale.y);

It is not an identifier for me.

For this reason, I had to do it this way.

spacer.png

 

Here is My "SetDiffuseColor"

My Member:

PhytonWindow.h for :

 

	// Image
	class CImageBox : public CWindow
	{
		public:
			CImageBox(PyObject * ppyObject);
			virtual ~CImageBox();

			BOOL LoadImage(const char * c_szFileName);
			void SetDiffuseColor(float fr, float fg, float fb, float fa);

			int GetWidth();
			int GetHeight();

		protected:
			virtual void OnCreateInstance();
			virtual void OnDestroyInstance();

			virtual void OnUpdate();
			virtual void OnRender();
			void OnChangePosition();

		protected:
			CGraphicImageInstance * m_pImageInstance;
	};	

 

other member:

PhytonWindow.h for

 

	class CMarkBox : public CWindow
	{
		public:
			CMarkBox(PyObject * ppyObject);
			virtual ~CMarkBox();

			void LoadImage(const char * c_szFilename);
			void SetDiffuseColor(float fr, float fg, float fb, float fa);
			void SetIndex(UINT uIndex);
			void SetScale(FLOAT fScale);

		protected:
			virtual void OnCreateInstance();
			virtual void OnDestroyInstance();

			virtual void OnUpdate();
			virtual void OnRender();
			void OnChangePosition();
		protected:
			CGraphicMarkInstance * m_pMarkInstance;
	};

Thank You P3NG3R ❤️
 

Link to post
Posted (edited)
SetDiffuseColor(float fr, float fg, float fb, float fa);

Just unpack the color into 4 variables if you don't have the function which supports the packed color.

The scale is not important unless you have implemented for every each class. I have them, this why I put there just for "in case".

 

Edited by xP3NG3Rx (see edit history)
Link to post
45 minutes ago, xP3NG3Rx said:

Just unpack the color into 4 variables if you don't have the function which supports the packed color.

The scale is not important unless you have implemented for every each class. I have them, this why I put there just for "in case".

 

 

 

I have no idea how to do this. therefore I will not be able to use the system. but i am grateful for your reply

Edited by Ronaldo (see edit history)
Link to post
Posted (edited)

Pick one from the last two:

ACVOWiL.png

To everyone: If you are running a server and this(color argument) is a big deal to figure out what to do with it, it's time to learn some programming basics, is not terrifying neither biting you ;)

Edited by xP3NG3Rx (see edit history)
Link to post

 

27 minutes ago, xP3NG3Rx said:

Pick one from the last two:

ACVOWiL.png

To everyone: If you are running a server and this(color argument) is a big deal to figure out what to do with it, it's time to learn some programming basics, is not terrifying neither biting you ;)

 

there is no picture, brother.

Link to post

Please do not get me wrong.

But when making this system, you need to include the package color function.

You also need to include this function.

m_v2Scale.x, m_v2Scale.y

Because Metin2 doesn't have these functions in the basic codes of the game. It is wrong to use these functions in files without these functions. Because nobody will be able to use this system. So there is no logic to share publicly. But people should learn basic coding what you want and add the system. But you need to appeal to both people.


Those who know coding and do not know coding.

I'm sorry for my bad english. <3

Link to post

Just remove the call of SetScale function and change the arguments of the SetDiffuseColor, to

SetDiffuseColor(m_Color.r, m_Color.g, m_Color.b, m_Color.a);

 

  • Love 1
Link to post
  • 3 weeks later...
  • ASIKOO changed the title to SlotHighLigh - Slot Glow Effect

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.