Jump to content

SlotHighLigh - Slot Glow Effect


Recommended Posts

  • Premium

Nice one mate!

I made it like this:

https://metin2.download/picture/5g11DYUF2nhwf1OBbxp9h7g19UK00lOO/.gif

 

				if i == 0:
					if getItemVNum(slotNumber):
						self.wndEquip.ActivateSlot(slotNumber, 248, 243, 82, 1.0)
					else:
						self.wndEquip.DeactivateSlot(slotNumber)

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Good 3
Link to comment
Share on other sites

  • 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 ❤️
 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Honorable Member
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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Honorable Member

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 Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

 

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.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

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 comment
Share on other sites

  • 3 weeks later...

Announcements



×
×
  • 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.