Jump to content

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,
                },
 
Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1
  • Love 10
Link to comment
Share on other sites

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

Announcements



×
×
  • Create New...

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.