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 17
👍 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
 

Latest posts

Back
Top Bottom