Exemplo n.º 1
0
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
Exemplo n.º 2
0
    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()

Exemplo n.º 5
0
            self.__OnCloseButtonClick()


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()