Jump to content
×
×
  • Create New...

System Option - Shadow Adjustment


Recommended Posts

Hi, Metin2Dev

Each version is compatible.

information;




l9BZLb.gif


root/uiSystemOption.py O
pen..



Search;

Kod:
self.tilingModeButtonList = []



Add;

Kod:
self.ctrlShadowQuality = 0



Search;

Kod:
self.tilingApplyButton=GetObject("tiling_apply")


Add;

Kod:
self.ctrlShadowQuality = GetObject("shadow_bar")

 


 

Search;

Kod:
self.ctrlSoundVolume.SetEvent(ui.__mem_func__(self.OnChangeSoundVolume))


Add;

Kod:
        self.ctrlShadowQuality.SetSliderPos(float(systemSetting.GetShadowLevel()) / 5.0)
        self.ctrlShadowQuality.SetEvent(ui.__mem_func__(self.OnChangeShadowQuality))



Search;

Kod:
    def OnChangeSoundVolume(self):
        pos = self.ctrlSoundVolume.GetSliderPos()
        snd.SetSoundVolumef(pos)
        systemSetting.SetSoundVolumef(pos)



Add;

Kod:
    def OnChangeShadowQuality(self):
        pos = self.ctrlShadowQuality.GetSliderPos()
        systemSetting.SetShadowLevel(int(pos / 0.2))

 


uiscript/SystemOptionDialog.py Open..

 

Search;

Kod:
                {
                    "name" : "tiling_apply",
                    "type" : "button",


                    "x" : 90+100,
                    "y" : 185,


                    "text" : uiScriptLocale.OPTION_TILING_APPLY,


                    "default_image" : ROOT_PATH + "middle_Button_01.sub",
                    "over_image" : ROOT_PATH + "middle_Button_02.sub",
                    "down_image" : ROOT_PATH + "middle_Button_03.sub",
                },




Add;

Kod:
                {
                    "name" : "shadow_mode",
                    "type" : "text",


                    "x" : 30,
                    "y" : 210,


                    "text" : uiScriptLocale.OPTION_SHADOW,
                },
                
                {
                    "name" : "shadow_bar",
                    "type" : "sliderbar",


                    "x" : 110,
                    "y" : 210,
                },
 
  • Love 10
Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 4 months later...
  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 4

      Ludus2: a metin2-like browser game

    2. 6
    3. 9

      Help in implementing a switch bot

    4. 0

      Special Inventory System Can't Sell To Npc's

    5. 0

      ROV2.GLOBAL | International | Server start 14.05.2022

    6. 75

      Services - System Ard [C ++ / Python / Lua]

    7. 76

      Chatting Window Renewal (Mini Version)

    8. 2

      ItemShop GM ZONE TAB

  • Recently Browsing

    • No registered users viewing this page.

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.