What's new
What's new

New messages New topics Systems Serverfiles 3D Models Web Scripting

Metin2Resources

👋 Welcome to Metin2 Resources — your hub for professional Metin2 server development.

Create a free account to access advanced systems, serverfiles, tutorials and connect with other developers.

🚀 Join today and start building better.

[C++/Py] Game Options Elveron

xDerBre

Member
📜 Messages 26
👍 Reactions 0
🏆 Points 25
New settings / config system - Elveron design. You can combine all settings here (Game Options + System Options)
pDscZU1.png

Easy to manage categories, you just need to add it just like this:
Code:
option_data = [
    {
        "category": "Performance", # AdvancedGameOptions_0.py
        "subcategories": []
    },
    {
        "category": "Interface", # AdvancedGameOptions_1.py
        "subcategories": []
    },
    {
        "category": "Game", # AdvancedGameOptions_2.py
        "subcategories": []
    },
    {
        "category": "Environment", # AdvancedGameOptions_3.py
        "subcategories": []
    },
    {
        "category": "Sound", # AdvancedGameOptions_4.py
        "subcategories": []
    }
]
After that, you just create a py file in uiscript/advanced_game_options and name it advancedgameoptions_<category index>.py
The last step would be to add an icon for the category in ui/game/advanced_game_options/category_icons/

The subcategories are automatically generated from the category UIScript file.

Download: *** Hidden text: cannot be quoted. ***
[/REPLYANDTHANKS]
hiii
 

sniper3bod

Member
📜 Messages 1
👍 Reactions 0
🏆 Points 5
New settings / config system - Elveron design. You can combine all settings here (Game Options + System Options)
pDscZU1.png

Easy to manage categories, you just need to add it just like this:
Code:
option_data = [
    {
        "category": "Performance", # AdvancedGameOptions_0.py
        "subcategories": []
    },
    {
        "category": "Interface", # AdvancedGameOptions_1.py
        "subcategories": []
    },
    {
        "category": "Game", # AdvancedGameOptions_2.py
        "subcategories": []
    },
    {
        "category": "Environment", # AdvancedGameOptions_3.py
        "subcategories": []
    },
    {
        "category": "Sound", # AdvancedGameOptions_4.py
        "subcategories": []
    }
]
After that, you just create a py file in uiscript/advanced_game_options and name it advancedgameoptions_<category index>.py
The last step would be to add an icon for the category in ui/game/advanced_game_options/category_icons/

The subcategories are automatically generated from the category UIScript file.

Download: *** Hidden text: cannot be quoted. ***
[/REPLYANDTHANKS]
Ty
 

ogzakyl

Member
📜 Messages 1
👍 Reactions 0
🏆 Points 5
Yeni ayarlar/yapılandırma sistemi - Elveron tasarımı. Tüm ayarları burada birleştirebilirsiniz (Oyun Seçenekleri + Sistem Seçenekleri).
pDscZU1.png

Kategorileri yönetmek çok kolay, sadece şu şekilde eklemeniz yeterli:
[KOD]seçenek_verisi = [
{
"kategori": "Performans", # AdvancedGameOptions_0.py
"alt kategoriler": []
},
{
"kategori": "Arayüz", # AdvancedGameOptions_1.py
"alt kategoriler": []
},
{
"kategori": "Oyun", # AdvancedGameOptions_2.py
"alt kategoriler": []
},
{
"kategori": "Ortam", # AdvancedGameOptions_3.py
"alt kategoriler": []
},
{
"kategori": "Ses", # AdvancedGameOptions_4.py
"alt kategoriler": []
}
][/CODE]
Bundan sonra, uiscript/advanced_game_options klasöründe advancedgameoptions_<kategori indeksi>.py adında bir py dosyası oluşturmanız yeterli.
Son adım, ui/game/advanced_game_options/category_icons/ dizinine kategori için bir simge eklemek olacaktır.

Alt kategoriler, kategori UIScript dosyasından otomatik olarak oluşturulur.

İndir:
Teşekürler
 

Latest posts

Back
Top Bottom