예제 #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
예제 #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()
		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()

예제 #4
0
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()
            self.cubeWindow.SetItemToolTip(self.tooltipItem)
            self.cubeWindow.Open()
예제 #5
0
		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()
예제 #6
0
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)