def SetShadowLevel(self, arg): "Shadow level setting (0~5)" if arg.isdigit() == 0: self.Print("Shadow setting must be a number") else: level = int(arg) if level < 0 or level > 5: self.Print("Shadow level range is 0~5") else: background.SetShadowLevel(level) self.Print("Shadow level: %d" % (level))
def WarpTest(self, warpX, warpY): "WarpTest : warp dwX dwY" iWarpX = int(warpX) iWarpY = int(warpY) try: background.Destroy() background.Initialize() background.WarpTest(iWarpX, iWarpY) background.RegisterEnvironmentData( 0, "d:/ymir work/environment/b3.msenv") background.SetEnvironmentData(0) background.SetShadowLevel(background.SHADOW_ALL) except: import exception exception.Abort("consoleModule.Console.WarpTest")