Ikarus kullanmayanlar için pazar başlıklarının yenilenmiş halidir
Kullanmanızı öneriyorum çünkü;
Normal pazar başlıklarına göre daha iyi fps oranı verir
Kullanmanızı öneriyorum çünkü;
Normal pazar başlıklarına göre daha iyi fps oranı verir
Kullandığınız board classıyla değiştirmeniz yeterlidir.ui.py içinde
xxthinboard(Window) classınızı
değiştirin
Kod:
class ThinBoard(Window): CORNER_WIDTH = 0 CORNER_HEIGHT = 0 BOARD_COLOR = grp.GenerateColor(0.0, 0.0, 0.0, 0.25) BOARD_BASE_COLOR = grp.GenerateColor(0.0, 0.0, 0.0, 0.50) def __init__(self): Window.__init__(self) Box = Box() Box.SetParent(self) Box.AddFlag("attach") Box.AddFlag("not_pick") Box.SetPosition(self.CORNER_WIDTH, self.CORNER_HEIGHT) Box.SetColor(self.BOARD_BASE_COLOR) Box.Show() self.Box = Box Base = Bar() Base.SetParent(self.Box) Base.AddFlag("attach") Base.AddFlag("not_pick") Base.SetPosition(self.CORNER_WIDTH, self.CORNER_HEIGHT) Base.SetColor(self.BOARD_COLOR) Base.Show() self.Base = Base def __del__(self): Window.__del__(self) def SetSize(self, width, height=33): width = max(self.CORNER_WIDTH*2, width-60) height = max(self.CORNER_HEIGHT*2, height) Window.SetSize(self, width, height) self.Base.SetSize(width - self.CORNER_WIDTH*2, height - self.CORNER_HEIGHT*2) self.Box.SetSize(width - self.CORNER_WIDTH*2, height - self.CORNER_HEIGHT*2) def ShowInternal(self): self.Base.Show() self.Box.Show() def HideInternal(self): self.Base.Hide() self.Box.Hide()
Metin2 Sunucularında Ikarus Tarzı Mağaza Başlığı Tasarımı (Sadece Python Kullanarak)
Python tabanlı UI Scripting konusunda derinlemesine bir rehber
Giriş
Metin2 özel sunucularında kullanıcı deneyimini artırmak için mağaza sistemleri kritik öneme sahiptir. Özellikle Ikarus gibi profesyonel görünümlü mağaza başlıkları, oyuncuların dikkatini çekebilir ve satın alma oranlarını artırabilir. Bu rehbere, sadece Python kullanarak nasıl profesyonel bir mağaza başlığı tasarlanacağını detaylıca anlatıyoruz. Bu işlem sırasında UI scripting, Py GUI ve UIScript gibi teknik kavramlar üzerinden ilerlenecektir.
Python ve UI Scripting Nedir?
Python, Metin2 özel sunucularında hem arka uç hem de ön yüz geliştirme için oldukça yaygın olarak kullanılır. Özellikle UI (User Interface) sistemleri, Python tabanlı UIScript dosyaları aracılığıyla oluşturulur. Bu sayede dinamik ve görsel açıdan zengin arayüzler üretilebilir. Py GUI kütüphaneleri sayesinde butonlar, metin kutuları, resimler ve animasyonlar kolayca entegre edilir.
Ikarus Tarzı Mağaza Başlığı Nasıl Oluşturulur?
Öncelikle bir mağaza penceresi oluşturulmalıdır. Bu pencere genellikle bir UIWindow sınıfı üzerinden yönetilir. Ardından başlık alanı için bir Label veya TextLine nesnesi tanımlanır. Bu nesnenin stilini belirlemek için font, renk, konum ve boyut gibi parametreler ayarlanır. Ikarus tarzı bir başlık, genellikle şık bir fontla, gradyan efektli bir arka planla ve simetriye dayalı bir düzen ile karakterize edilir.
PyRoot ve Paketleme
PyRoot klasörü, tüm Python dosyalarının bulunduğu ana dizindir. Burada yer alan UIScript dosyaları, istemci tarafında çalıştırılır. Mağaza başlığınız için oluşturduğunuz Python dosyasını PyRoot altına yerleştirmeli ve gerekirse Pack sistemi ile korumalı hale getirmelisiniz. Bu sayede sunucu güvenliği sağlanırken, aynı zamanda performans da optimize edilir.
Renk ve Stil Seçimi
Ikarus tarzı başlıklar genellikle siyah-beyaz tonlarında, altın veya mavi detaylarla süslenir. Bu detayları UIScript dosyasında COLOR etiketleriyle tanımlayabilirsiniz. Örneğin, Mağaza gibi bir başlık, oyuncuların dikkatini çekecek kadar estetiktir. Ayrıca butonların hover efektleri, animasyonlar gibi detaylar kullanıcı deneyimini ciddi anlamda artırır.
Sunucu Uyumlu Yapılandırma
Mağaza sistemi, hem AUTH hem de GAME sunucularıyla senkron çalışmalıdır. Python ile yazılmış bir mağaza başlığı, sunucu tarafında bir event handler tarafından tetiklenebilir. Bu yapı, DB Core ve Game Core sistemleriyle entegre çalışarak, satın alınan ürünlerin doğru şekilde aktarılmasını sağlar. Bu noktada, doğru bir compile işlemi de önemlidir. Metin2 compile işlemleri sırasında Python kodları doğrulanmalı ve test edilmelidir.
Sonuç
Sadece Python kullanarak Ikarus tarzı bir mağaza başlığı tasarlamak, hem estetik hem de fonksiyonel açıdan oldukça zengin bir deneyim sunar. Py GUI ve UIScript gibi araçlar sayesinde, Metin2 özel sunucularında profesyonel görünümlü sistemler üretmek mümkündür. Bu tür sistemler, oyuncu sadakati ve sunucu kazançları üzerinde doğrudan etkilidir.
Shop Title Like Ikarus [Only Python] - A Detailed Guide on UI Scripting with Python for Metin2 Private Servers
An in-depth guide on Python-based UI Scripting
Introduction
In Metin2 private servers, shop systems are critical for enhancing user experience. Particularly, professional-looking shop titles like Ikarus can capture player attention and increase purchase rates. In this guide, we will explain step-by-step how to create a professional shop title using only Python. Throughout this process, technical concepts such as UI scripting, Py GUI, and UIScript will be addressed in detail.
What is Python and UI Scripting?
Python is widely used in Metin2 private servers for both backend and frontend development. Especially UI (User Interface) systems are created via Python-based UIScript files. This allows for dynamic and visually rich interfaces. With Py GUI libraries, buttons, text boxes, images, and animations can be easily integrated.
How to Create an Ikarus-Style Shop Title?
Firstly, a shop window must be created. This window is typically managed through a UIWindow class. Then, a Label or TextLine object is defined for the title area. Parameters such as font, color, position, and size are adjusted to define the style of this element. An Ikarus-style title is usually characterized by a sleek font, gradient background, and a symmetrical layout.
PyRoot and Packaging
The PyRoot folder is the main directory where all Python files are located. The UIScript files placed here are executed on the client side. You should place your Python file for the shop title under PyRoot and, if necessary, make it protected using the Pack system. This ensures server security while also optimizing performance.
Color and Style Selection
Ikarus-style titles often feature black-and-white tones with golden or blue details. These details can be defined in the UIScript file using COLOR tags. For instance, a title like Shop is aesthetic enough to grab players' attention. Moreover, button hover effects and animations enhance the user experience significantly.
Server-Compatible Configuration
The shop system must work in sync with both AUTH and GAME servers. A shop title written in Python can be triggered by an event handler on the server side. This structure, integrated with DB Core and Game Core systems, ensures purchased items are transferred correctly. At this point, proper compile procedures are important. During Metin2 compile processes, Python codes should be validated and tested.
Conclusion
Creating an Ikarus-style shop title using only Python offers a rich experience both aesthetically and functionally. Thanks to tools like Py GUI and UIScript, it is possible to build professional-looking systems in Metin2 private servers. Such systems directly impact player loyalty and server revenue.
