Ekran Dışına Taşan Pencereleri Geri Getir

  • Konuyu açan Konuyu açan ggns7
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 5
  • Gösterim Gösterim 263

ggns7

MT Üye
MT Üye
Mesaj
311
Çözümler
14
Beğeni
169
Puan
769
Ticaret Puanı
0
Bu hareket yanlışlıkla yapıldığında, çoğu sunucuda karakter atmayı veya ışınlanmayı gerektirir.


Ekran içinde kalacak şekilde sınırlandırılabilir ama ben kısıtlamaları sevmiyorum.
Herhangi bir pencere için özel işaretlemeye gerek yok. Her pencere için otomatik çalışır.

Butonun görsellerini ben direkt oyun dosyamın olduğu klasöre attım. Başka bir konuma koyarsanız yolunu belirtmelisiniz.
Burayı görüntülemek için üye girişi yapmalı veya kayıt olmalısınız.
 

Dosya Eklentileri

  • GetWindowBack.webp
    GetWindowBack.webp
    1.014 byte · Gösterim: 40
  • GetWindowBackDown.webp
    GetWindowBackDown.webp
    1 KB · Gösterim: 44
  • GetWindowBackUp.webp
    GetWindowBackUp.webp
    1 KB · Gösterim: 45
Son düzenleme:
Why do we need to bind the gamewindow into the PythonWindowManager class if there is no reference to it?
 
Why do we need to bind the gamewindow into the PythonWindowManager class if there is no reference to it?
Actually, I was going to make the game window mandatory to manage the visibility of the on-screen button, but I forgot to add that check.
I updated it to be used this way, which I think makes more sense. Thanks for the reminder. Anyone who wants can remove this requirement.
 
What about this?
C++:
Genişlet Daralt Kopyala
        for (PyObject* handler : m_OutOfScreenWindows)
        {
            if (x >= lScreenWidth)
            {
                x = 0;
                y = lScreenHeight / 2;
            }

            x += uStepRange;
            PyCallClassMemberFunc(handler, "ShowRestoreWindowsButton", Py_BuildValue("ii", x, y));
        }

Don't get me wrong, the idea is great, but if I have read the code correctly this will execute the "ShowRestoreWindowsButton" function on every window which is out of the screen instead of the gamewindow. Also I don't see which part of code should change the position of the window which is out of the screen.
 
Geri
Üst