1 mesaj
Administrator Administrator
  • Mesaje: 3449
  • Reacții: 48339
  • Mesaje utile: 29
  • Status: Pe aici.. 🤠
  • Server: Saga2 - Soon
  • Regat: Jinno
  • [ID Discord]
  • Contact:
    *Descriere:

    O functie care ne ajuta sa dam mirror la elemente.

    Este o functie utila pentru sisteme / fixuri.

    De exemplu, este folosita pentru aecst fix: fix-inversare-pozitie-icon-papuci-t4289.html

    *Poze / Video:
    [Official] Functie Left Right Reverse - Mesaj 1 - Imagine 3
    [Official] Functie Left Right Reverse - Mesaj 1 - Imagine 2
    *Link download / Code:
    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.


    Edit - nu aveti nevoie de asta doar daca sunteti arabi si aveti RTL:
    I have found something related to the arabic codepage, so I just post it here:

    <! It has not been tested. !>
    [Official] Functie Left Right Reverse - Mesaj 1 - Imagine 1
    And here is the code for it:
    Code:
    	// EterPythonLib/PythonWindow.cpp
    	void CWindow::GetMouseLocalPosition(long & rlx, long & rly)
    	{
    		CWindowManager::Instance().GetMousePosition(rlx, rly);
    
    		if (GetDefaultCodePage() == CP_ARABIC && m_bWindowType == WINDOW_TYPE_TEXTLINE)
    		{
    			rlx = m_rect.right - rlx;
    			rly -= m_rect.top;
    		}
    		else
    		{
    			rlx = rlx - m_rect.left;
    			rly = rly - m_rect.top;
    		}
    	}
    And here are some parts that I have forgotten:
    1.) Open the EterPythonLib/PythonWindow.h and add the followings into the CWindow class as you can see here:

    Code:
    namespace UI
    {
    	class CWindow
    	{
    		// [...]
    		public:
    			enum WindowTypes
    			{
    				WINDOW_TYPE_WINDOW,
    				WINDOW_TYPE_TEXTLINE,
    				WINDOW_TYPE_MAX_NUM
    			};
    
    		protected:
    			BYTE				m_bWindowType;
    	}
    }
    
    2.1.) Open the EterPythonLib/PythonWindow.cpp and add the following to the CWindow constructor as the following example shows:

    Code:
    	CWindow::CWindow(PyObject * ppyObject):
    		// [...]
    	{
    		// [...]
    		m_bWindowType = WINDOW_TYPE_WINDOW;
    	}
    
    2.2.) Then repeat the previous step in the the CTextLine constructor too:

    Code:
    		m_bWindowType = WINDOW_TYPE_TEXTLINE;

    Cum descarc de pe TeraBox?

    Afișează detalii Ascunde detalii
    • Este asemănător cu Mega.nz
    • Instalați-vă clientul lor de Download de aici
    • Faceți-vă un cont (vă puteți loga cu Facebook / Google / etc)
    • Dacă nu vreți să descărcați clientul de Download, folosiți acest site
    • Gata! Acum puteți descărca resursele

    De ce folosim TeraBox?

    • Este gratuit
    • Primești 1TB de spațiu gratuit la orice cont creat!
    • Este ușor de folosit și varianta premium este foarte ieftină
    • Fișierele nu sunt șterse niciodată
    TeraBox logo
    Te asteptam si pe serverul de Discord :p - aici ne-am strans toata comunitatea de Metin2 din Romania.
    Link: https://discord.gg/jWxeDSf7HP

    Suntem peste 1700 membri! - Avem chat activ zilnic, support, cereri, resurse. :D :ymcowboy:




    See full signature

    🔥 Hai pe Discord! - Chat activ și support direct

    Te așteptăm și pe serverul de Discord - aici ne-am strâns toată comunitatea de Metin2 din România.

    Alătură-te acum!
    1300+ de membri activi!
    Robot Discord
    Roboțelu'
    Anunț

    Creează-ți un cont sau autentifică-te pentru a participa la discuție

    Trebuie să fii membru pentru a răspunde

    Creează-ți un cont

    Membrii pot crea subiecte noi și pot descărca resurse Metin2 Gratuit!


    Te poți înregistra sau conecta rapid utilizând contul tău de Discord, Github sau Google.

    Înregistrare

    Autentifică-te

    Înapoi la “Îmbunătățiri”

    Informații

    Utilizatori ce navighează pe acest forum: aometaphor, BabyMs, felsman_n_, gamer6661102, gpss și 6 vizitatori

    Discord ID copiat: