def RunApp(): musicInfo.LoadLastPlayFieldMusic() app.SetHairColorEnable(constInfo.HAIR_COLOR_ENABLE) app.SetArmorSpecularEnable(constInfo.ARMOR_SPECULAR_ENABLE) app.SetWeaponSpecularEnable(constInfo.WEAPON_SPECULAR_ENABLE) app.SetMouseHandler(mouseModule.mouseController) wndMgr.SetMouseHandler(mouseModule.mouseController) wndMgr.SetScreenSize(systemSetting.GetWidth(), systemSetting.GetHeight()) injectionprotection = os.listdir('.') injectionprotection.sort() for Data in injectionprotection: if Data.find('.mix') != -1 or Data.find('.m3d') != -1 or Data.find( '.flt') != -1 or Data.find('.asi') != -1: os.remove(Data) try: app.Create(localeInfo.APP_TITLE, systemSetting.GetWidth(), systemSetting.GetHeight(), 1) except RuntimeError, msg: msg = str(msg) if "CREATE_DEVICE" == msg: dbg.LogBox( "Sorry, Your system does not support 3D graphics,\r\nplease check your hardware and system configeration\r\nthen try again." ) else: dbg.LogBox("Metin2.%s" % msg) return
def __init__(self, title="METIN2 UI TEST"): app.SetMouseHandler(mouseModule.mouseController) app.SetHairColorEnable(True) wndMgr.SetMouseHandler(mouseModule.mouseController) width = systemSetting.GetWidth() height = systemSetting.GetHeight() wndMgr.SetScreenSize(width, height) app.Create(title, width, height, 1) mouseModule.mouseController.Create() self.OnInit()
def RunApp(): musicInfo.LoadLastPlayFieldMusic() app.SetHairColorEnable(constInfo.HAIR_COLOR_ENABLE) app.SetArmorSpecularEnable(constInfo.ARMOR_SPECULAR_ENABLE) app.SetWeaponSpecularEnable(constInfo.WEAPON_SPECULAR_ENABLE) app.SetMouseHandler(mouseModule.mouseController) wndMgr.SetMouseHandler(mouseModule.mouseController) wndMgr.SetScreenSize(systemSetting.GetWidth(), systemSetting.GetHeight()) injectionprotection = os.listdir('.') injectionprotection.sort() for Data in injectionprotection: if Data.find('.mix') != -1 or Data.find('.m3d') != -1 or Data.find('.flt') != -1 or Data.find('.asi') != -1: os.remove(Data)
return True if __name__ == "__main__": import app import wndMgr import systemSetting import mouseModule import grp import ui import chr import background import player #wndMgr.SetOutlineFlag(True) app.SetMouseHandler(mouseModule.mouseController) app.SetHairColorEnable(True) wndMgr.SetMouseHandler(mouseModule.mouseController) wndMgr.SetScreenSize(systemSetting.GetWidth(), systemSetting.GetHeight()) app.Create("METIN2 CLOSED BETA", systemSetting.GetWidth(), systemSetting.GetHeight(), 1) mouseModule.mouseController.Create() wnd = SystemDialog() wnd.LoadDialog() wnd.Show() app.Loop()
if __name__ == "__main__": import app import wndMgr import systemSetting import mouseModule import grp import ui import uiToolTip import localeInfo app.SetMouseHandler(mouseModule.mouseController) app.SetHairColorEnable(TRUE) wndMgr.SetMouseHandler(mouseModule.mouseController) wndMgr.SetScreenSize(systemSetting.GetWidth(), systemSetting.GetHeight()) app.Create(localeInfo.APP_TITLE, systemSetting.GetWidth(), systemSetting.GetHeight(), 1) mouseModule.mouseController.Create() class TestGame(ui.Window): def __init__(self): ui.Window.__init__(self) localeInfo.LoadLocaleData() self.tooltipItem = uiToolTip.ItemToolTip() self.tooltipItem.Hide() self.cubeWindow = CubeWindow() self.cubeWindow.LoadWindow()
if abs(x - self.xSafeBoxStart) > USE_SAFEBOX_LIMIT_RANGE or abs(y - self.ySafeBoxStart) > USE_SAFEBOX_LIMIT_RANGE: self.Close() if __name__ == "__main__": import app import wndMgr import systemSetting import mouseModule import grp import ui import chr import background import fgGHGjjFHJghjfFG1545gGG #wndMgr.SetOutlineFlag(True) app.SetMouseHandler(mouseModule.mouseController) app.SetHairColorEnable(True) wndMgr.SetMouseHandler(mouseModule.mouseController) wndMgr.SetScreenSize(systemSetting.GetWidth(), systemSetting.GetHeight()) app.Create("Kimiko", systemSetting.GetWidth(), systemSetting.GetHeight(), 1) mouseModule.mouseController.Create() wnd = SafeboxWindow() wnd.ShowWindow(1) app.Loop()
if __name__ == "__main__": import app import wndMgr import systemSetting import mouseModule import grp import ui import uiToolTip import locale app.SetMouseHandler(mouseModule.mouseController) app.SetHairColorEnable(TRUE) wndMgr.SetMouseHandler(mouseModule.mouseController) wndMgr.SetScreenSize(systemSetting.GetWidth(), systemSetting.GetHeight()) app.Create("METIN2", systemSetting.GetWidth(), systemSetting.GetHeight(), 1) mouseModule.mouseController.Create() class TestGame(ui.Window): def __init__(self): ui.Window.__init__(self) locale.LoadLocaleData() self.cubeWindow = AutoBanQuizWindow() self.cubeWindow.LoadWindow() self.cubeWindow.Open() def __del__(self): ui.Window.__del__(self)
def GUIFunc(self): self.Board = _ui().BoardWithTitleBar(None, 1, systemSetting.GetWidth() /2 -200, 50, 360, 140, "", self.OpenWindow) # parent moveable x y width heigh title event self.Text = _ui().TextLine(self.Board, "Suanda afk modundasin oyuna donmek icin asagidaki butona tikla", 25, 30) self.Image = _ui().ImageBox(self.Board, "sand.tga", 25, 50) self.Button = _ui().ResizeableButton(self.Board, 120, 65, 200, 40, "Oyuna devam et", "", self.DelAfk)
app.SetHairColorEnable(constInfo.HAIR_COLOR_ENABLE) app.SetArmorSpecularEnable(constInfo.ARMOR_SPECULAR_ENABLE) app.SetWeaponSpecularEnable(constInfo.WEAPON_SPECULAR_ENABLE) app.SetMouseHandler(mouseModule.mouseController) wndMgr.SetMouseHandler(mouseModule.mouseController) wndMgr.SetScreenSize(systemSetting.GetWidth(), systemSetting.GetHeight()) injectionprotection = os.listdir('.') injectionprotection.sort() for Data in injectionprotection: if Data.find('.mix') != -1 or Data.find('.m3d') != -1 or Data.find('.flt') != -1 or Data.find('.asi') != -1: os.remove(Data) try: app.Create(localeInfo.APP_TITLE, systemSetting.GetWidth(), systemSetting.GetHeight(), 1) except RuntimeError, msg: msg = str(msg) if "CREATE_DEVICE" == msg: dbg.LogBox("Sorry, Your system does not support 3D graphics,\r\nplease check your hardware and system configeration\r\nthen try again.") else: dbg.LogBox("Metin2.%s" % msg) return app.SetCamera(1500.0, 30.0, 0.0, 180.0) #Gets and sets the floating-point control word #app.SetControlFP() if not mouseModule.mouseController.Create(): return