- Katılım
- 6 Mayıs 2022
- Konular
- 48,291
- Mesajlar
- 48,601
- Tepkime puanı
- 75
- M2 Yaşı
- 3 yıl 11 ay 10 gün
- Trophy Puan
- 48
- M2 Yang
- 488,879
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Hayırlara vesile olur inşALLAH ufak bir şey ama güle güle kullanın
KENDİ SUNUCUMDAN
KANIT
BU DA NORMAL ETC HALİ
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Kod:
class NewSliderBar(Window): def __init__(self): Window.__init__(self) self.curPos = 1.0 self.pageSize = 1.0 self.eventChange = None self.__CreateBackGroundImage() self.__CreateCursor() def __del__(self): Window.__del__(self) def __CreateBackGroundImage(self): img = ImageBox() img.SetParent(self) img.LoadImage("d:/ymir work/ui/game/option/new_slidbar_bg.tga") img.Show() self.backGroundImage = img self.SetSize(self.backGroundImage.GetWidth(), self.backGroundImage.GetHeight()) def __CreateCursor(self): cursor = DragButton() cursor.AddFlag("movable") cursor.AddFlag("restrict_y") cursor.SetParent(self) cursor.SetMoveEvent(__mem_func__(self.__OnMove)) cursor.SetUpVisual("d:/ymir work/ui/game/option/new_mid_bar_slidbar_bg.tga") cursor.SetOverVisual("d:/ymir work/ui/game/option/new_mid_bar_slidbar_bg.tga") cursor.SetDownVisual("d:/ymir work/ui/game/option/new_mid_bar_slidbar_bg.tga") cursor.Show() self.cursor = cursor self.cursor.SetRestrictMovementArea(0, 0, self.backGroundImage.GetWidth(), 0) self.pageSize = self.backGroundImage.GetWidth() - self.cursor.GetWidth() def __OnMove(self): (xLocal, yLocal) = self.cursor.GetLocalPosition() self.curPos = float(xLocal) / float(self.pageSize) if self.eventChange: self.eventChange() def SetSliderPos(self, pos): self.curPos = pos self.cursor.SetPosition(int(self.pageSize * pos), 0) def GetSliderPos(self): return self.curPos def SetEvent(self, event): self.eventChange = event def Enable(self): self.cursor.Show() def Disable(self): self.cursor.Hide() # if app.ENABLE_FOV_OPTION: # def SetBackgroundVisual(self, filename): # if self.backGroundImage: # self.backGroundImage.LoadImage(filename) # self.SetSize(self.backGroundImage.GetWidth(), self.backGroundImage.GetHeight()) # self.pageSize = self.backGroundImage.GetWidth() - self.cursor.GetWidth() # if self.cursor: # self.cursor.SetRestrictMovementArea(0, 0, self.backGroundImage.GetWidth(), 0) # def SetButtonVisual(self, path, up, over, down): # if self.cursor: # self.cursor.SetUpVisual(path + up) # self.cursor.SetOverVisual(path + over) # self.cursor.SetDownVisual(path + down) elif Type == "newsliderbar": parent.Children[Index] = NewSliderBar() parent.Children[Index].SetParent(parent) self.LoadElementSliderBar(parent.Children[Index], ElementValue, parent)
Oyun Seçenekleri Menüsü (Py) Nedir ve Metin2 Geliştiricileri İçin Neden Önemlidir?
Metin2 özel sunucu geliştirmelerinde kullanıcı deneyimi en önemli unsurlardan biridir. Oyuncuların oyun içinde rahatça gezinmesini ve tercihlerini özelleştirebilmesi için geliştiriciler, Py tabanlı sistemlerde 'Oyun Seçenekleri Menüsü' gibi önemli yapılar kurar. Bu menü, genellikle 'uiscript' dosyalarıyla oluşturulur ve 'py root' üzerinden çalıştırılır. Bu yapı sayesinde oyuncular grafik ayarlarını, ses seviyelerini, kontrolleri ve daha fazlasını kolayca değiştirebilir. Özellikle PvP sistemlerin yoğun olduğu sunucularda, oyuncunun kendi deneyimini kişiselleştirmesi büyük avantaj sağlar.
Py Tabanlı Menü Sistemi Nasıl Çalışır?
Py (Python) dili, Metin2 özel sunucularında sıklıkla kullanılan bir programlama dilidir. Oyun içi arayüzler, GUI (Graphical User Interface), yani görsel kullanıcı arayüzü, genellikle Python GUI sistemleriyle oluşturulur. Bu yapıya örnek olarak 'uiscript' adı verilir. Uiscript dosyaları, oyun içinde açılabilen menüleri tanımlar. Oyun Seçenekleri Menüsü de bu yapıdan faydalanarak, oyuncuya farklı alanlarda özelleştirme imkanı sunar. Bu menüye erişmek için genellikle ESC tuşuna basılır ve açılan menüden 'Seçenekler' sekmesine tıklanır.
Menü İçeriği ve Özelleştirme Alanları
Oyun Seçenekleri Menüsü, aşağıdaki gibi birçok alanda kullanıcıyı destekleyecek yapıya sahiptir:
- Grafik Ayarları: Ekran çözünürlüğü, FPS sınırı, gölgeler, detaylı nesne görüntüleme gibi ayarlar burada yapılır.
- Ses Ayarları: Arka plan müziği, efekt sesleri, mikrofon ses seviyesi gibi ayarlar buradan kontrol edilir.
- Kontrol Ayarları: Tuş atamaları, fare hassasiyeti gibi kişiselleştirme seçenekleri mevcuttur.
- PvP ve Oyun Modu Ayarları: Bazı sunucularda özel PvP kuralları veya modlar bulunabilir. Bunlar da bu menüde seçilebilir.
Py Root ve Menü Dosyalarının Yeri
Py kök dizini, Metin2 özel sunucularında oyun içi Python dosyalarının bulunduğu yerdir. Bu dizin genellikle 'root', 'uiscript', 'locale' gibi alt klasörler barındırır. Oyun Seçenekleri Menüsü, genellikle 'uiscript' altında 'gameoption.py' gibi bir dosya olarak yer alır. Bu dosya, oyuncu menüye girdiğinde çalışan arayüzü tanımlar. Geliştiriciler bu dosyayı düzenleyerek menüye yeni özellikler ekleyebilir veya mevcut özellikleri optimize edebilir.
Martysama ve Py Menü Geliştirme
Metin2 geliştirme dünyasında Martysama gibi isimler, gelişmiş Py sistemleriyle tanınır. Bu tür geliştiriciler, menü sistemlerini hem estetik hem de fonksiyonel olarak optimize eder. Özellikle PvP odaklı sunucularda, oyuncunun menüden hızlıca ayar yapabilmesi çok önemlidir. Martysama tarzı geliştiriciler, bu tür ihtiyaçları karşılayacak şekilde modüler yapılar geliştirir.
Oyun Seçenekleri Menüsünün Sunucu Performansına Etkisi
Doğru yapılandırılmış bir Py menüsü, sunucu performansını olumsuz etkilemez. Aksine, oyuncunun donanımına göre ayar yapabilmesi sayesinde hem istemci hem de sunucu tarafında verimli bir kullanım sağlanır. Ancak, kötü yazılmış GUI sistemleri hafızayı ya da işlemciyi gereğinden fazla kullanabilir. Bu yüzden Py sistemlerinde dikkatli kodlama yapılmalıdır. Özellikle source edit süreçlerinde menü sistemlerinin test edilmesi önemlidir.
Sonuç
Metin2 özel sunucularında Oyun Seçenekleri Menüsü, oyuncu memnuniyetini artırmak için kritik bir rol oynar. Py tabanlı sistemler sayesinde bu menü, hem estetik hem de işlevsel olarak özelleştirilebilir. Geliştiriciler, doğru yapılandırmalarla hem PvP sistemlerini hem de kullanıcı deneyimini optimize edebilir. Metin2Lobby, bu konuda yazılım geliştirme ve sistem entegrasyonu konularında rehberler sunmaktadır.
What is the Game Options Menu (Py) and Why Is It Important for Metin2 Developers?
In Metin2 private server developments, user experience is one of the most important factors. To allow players to navigate the game comfortably and customize their preferences, developers create structures like the 'Game Options Menu' using Py-based systems. This menu, typically built with 'uiscript' files, operates through 'py root'. With this structure, players can easily adjust graphics settings, sound levels, controls, and more. Especially in servers where PvP systems are intensive, allowing players to personalize their own experience provides significant advantages.
How Does the Py-Based Menu System Work?
The Py (Python) language is frequently used in Metin2 private servers. In-game interfaces, GUI (Graphical User Interface), are generally created with Python GUI systems. An example of this structure is 'uiscript'. Uiscript files define menus that can be opened within the game. The Game Options Menu utilizes this structure to provide customization opportunities in various areas for the player. To access this menu, usually the ESC key is pressed, then the 'Options' tab is clicked from the opened menu.
Menu Content and Customization Areas
The Game Options Menu has a structure that supports the user in many areas such as:
- Graphics Settings: Screen resolution, FPS limit, shadows, detailed object display, etc., are set here.
- Sound Settings: Background music, sound effects, microphone volume, etc., are controlled here.
- Control Settings: Key bindings, mouse sensitivity, and other personalization options are available here.
- PvP and Game Mode Settings: Some servers may have special PvP rules or modes. These can also be selected in this menu.
Location of Py Root and Menu Files
The Py root directory is where in-game Python files are located in Metin2 private servers. This directory usually contains subfolders such as 'root', 'uiscript', 'locale'. The Game Options Menu is typically located under 'uiscript' as a file named something like 'gameoption.py'. This file defines the interface that runs when a player enters the menu. Developers can add new features to the menu or optimize existing ones by editing this file.
Martysama and Py Menu Development
In the world of Metin2 development, names like Martysama are known for advanced Py systems. Such developers optimize menu systems both aesthetically and functionally. Particularly in PvP-focused servers, it's very important that the player can quickly make adjustments from the menu. Developers like Martysama develop modular structures to meet these types of needs.
Impact of the Game Options Menu on Server Performance
A well-configured Py menu does not negatively affect server performance. On the contrary, allowing players to make settings according to their hardware ensures efficient usage on both client and server sides. However, poorly written GUI systems might use memory or CPU more than necessary. Therefore, careful coding must be done in Py systems. Especially during source edit processes, testing menu systems is important.
Conclusion
In Metin2 private servers, the Game Options Menu plays a critical role in increasing player satisfaction. Thanks to Py-based systems, this menu can be customized both aesthetically and functionally. Developers can optimize both PvP systems and user experience with correct configurations. Metin2Lobby offers guides on software development and system integration in this area.
