Sol Kısayol Paneli (python)

  • Konbuyu başlatan Konbuyu başlatan Admin
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 0
  • Görüntüleme Görüntüleme 31

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Daha önce arkadaşımız paylaşmışdı konu bakabilirsiniz.
Kodlama yukarda verdigim konu sahibine aittir.

Yapılan değişiklikler Görsel ler değiştirildi boyut kucultuldu slotlar eklendi, kulanılmayan slotlar kemer slotu görseliyle kapatıldı.

Tüm slotların kordinatları ayarlandı. hazır kodlar eklendi sadece duzenleme yaparak kısayol ekleye bileceksiniz..

bu kadar buyuk panel doldurulurmu bilinmez ama paylaşmak istedim..







screenshot_294.jpg
screenshot_295.jpg


BUDA KUCULTULMUŞ HALİ

screenshot_309.jpg





NOT:anaekran.png bende png okudugu için png olarak var siz bunu tga cevirerek kullanın..




Yeni Buton eklemek için duzenleme ve ekleme yapacagınız yerler

Game.py de yapılması gerekenler
screenshot_295.jpg

game py en alt düzenleme yapacagınız yer
screenshot_296.jpg



uipanel.py de yapılması gerekenler.

Bu resimde kordinatlar hazır ayarlanmıştır siz sadece tga yolunu duzenlemeniz yetee
screenshot_298.jpg


2.
screenshot_299.jpg


3. BURADA "TEST_BUTTON = 1 " BUNLARI KENDİ ATADIĞINIZ ISIMLE SIRALAYARAK GİDİN
screenshot_300.jpg

Sol Kısayol Paneli (Python) Nedir?
Metin2 özel sunucu geliştirme sürecinde kullanıcı dostu arayüzler oluşturmak oldukça önemlidir. Sol kısayol paneli, oyuncuların hızlıca erişmesi gereken fonksiyonları kolayca bulmasını sağlar. Bu panel genellikle Python dilinde UIScript kullanılarak oluşturulur. Bu yazıda sol kısayol panelinin nasıl yapılandırılacağı ve Metin2 özel sunucularda nasıl entegre edileceği hakkında bilgiler vereceğiz.

Python ile Sol Panel Oluşturmak
Sol panel, Py GUI kullanılarak Python kök dizininde (py root) tanımlanabilir. Bu panel genellikle karakter menüsü, envanter, eşya listesi gibi önemli butonları içerir. UIScript sayesinde butonlar ve panelin konumu ayarlanabilir. Sol panelin tasarımı hem görsel açıdan hem de işlevsel olarak oyuncuya kolaylık sağlar.

Py GUI Kullanımı
Py GUI, Metin2 geliştirme ortamında kullanıcı arayüzü oluşturmak için kullanılan güçlü bir araçtır. Sol panel gibi arayüzler, Python script dosyaları üzerinde tanımlanarak oyuna entegre edilir. Özellikle Metin2 özel sunucularında, geliştiricilerin kendi butonlarını ve panellerini özelleştirmesi için idealdir.

UIScript ile Panel Tanımı
Sol panel için UIScript dosyasında genellikle bir pencere sınıfı (Window) tanımlanır. Bu sınıfa butonlar, metin kutuları ve diğer grafiksel öğeler eklenir. Bu sayede panel, oyuncunun sol tarafında sabit kalır ve hızlıca erişim sağlanabilir. Örnek bir UIScript dosyası şu şekilde olabilir:

import ui
class SidePanel(ui.Window):
def __init__(self):
ui.Window.__init__(self)
self.__CreateBoard()
def __CreateBoard(self):[/COORD]
self.board = ui.ThinBoardLine()
self.board.SetSize(150, 400)
self.board.SetPosition(10, 10)

Python Root ve Panel Entegrasyonu
Sol panel, Python root dizinine yerleştirildikten sonra, Metin2 oyununda yüklenebilir. Bu panel, auth veya game sunucusuna özel komutlar, PvP sistemleri, özel ekipmanlar gibi fonksiyonlara erişimi sağlar. Özellikle PvP sistemlerinde, oyuncuların hızlıca ekipman değişikliği yapması veya özel yetenekleri kullanması için bu panel oldukça faydalıdır.

Panelin Sunucuyla Etkileşimi
Panel üzerinden tıklanan butonlar, Python script üzerinden sunucuya özel komutlar gönderebilir. Bu sayede geliştiriciler, PvP oyun mekanikleri, özel sistemler veya DB işlemleri gibi konularda kullanıcıya doğrudan erişim sağlayabilir. Panel, hem C++ hem de Python tabanlı sistemlerle entegre çalışabilir.

Sonuç
Sol kısayol paneli, Metin2 özel sunucularında kullanıcı deneyimini artırmak için güçlü bir araçtır. Python ve UIScript kullanarak özelleştirilebilir, PvP sistemleri ve özel komutlarla entegre edilebilir. Bu panel sayesinde oyuncular, oyun içinde daha verimli hareket edebilir.


What is Left Shortcut Panel (Python)?
In the process of developing Metin2 private servers, creating user-friendly interfaces is very important. The left shortcut panel allows players to quickly access functions they need. This panel is generally created using Python with UIScript. In this article, we will provide information about how to configure the left shortcut panel and integrate it into Metin2 private servers.

Creating Left Panel with Python
The left panel can be defined in the Python root directory using UIScript. It usually includes important buttons such as character menu, inventory, item list. With UIScript, button placements and panel positions can be customized. Visually and functionally, this panel offers great convenience to the player.

Using Py GUI
Py GUI is a powerful tool used for creating user interfaces in the Metin2 development environment. Such panels are integrated into the game by defining them through Python script files. Particularly in Metin2 private servers, this is ideal for developers to customize their own buttons and panels.

Defining Panel with UIScript
For the left panel, a window class is typically defined in the UIScript file. Buttons, text boxes, and other graphical elements are added to this class. As a result, the panel remains fixed on the player's left side, allowing quick access. An example UIScript file might look like this:

import ui
class SidePanel(ui.Window):
def __init__(self):
ui.Window.__init__(self)
self.__CreateBoard()
def __CreateBoard(self):
self.board = ui.ThinBoardLine()
self.board.SetSize(150, 400)
self.board.SetPosition(10, 10)

Python Root and Panel Integration
Once placed in the Python root directory, the left panel can be loaded into the Metin2 game. This panel provides access to functions such as custom commands for the auth or game server, PvP systems, and special equipment. Especially in PvP systems, this panel is highly beneficial for players to switch equipment or use special abilities quickly.

Interaction Between Panel and Server
Buttons clicked from the panel can send custom commands to the server via Python scripts. Thus, developers can offer direct access to users regarding PvP mechanics, custom systems, or DB operations. The panel can work integrated with both C++ and Python-based systems.

Conclusion
The left shortcut panel is a powerful tool to enhance user experience in Metin2 private servers. It can be customized using Python and UIScript and integrated with PvP systems and custom commands. Thanks to this panel, players can move more efficiently within the game.
 

Şuan Bu Konuyu Görüntüleyen Kullanıcılar (Toplam : 0, Üye : 0, Misafir : 0)

Benzer konular

Geri
Üst Alt