if os.path.exists("lib/standard.cfg"):
import linecache
e = linecache.getline("lib/standard.cfg", 1)
f = linecache.getline("lib/standard.cfg", 2)
camera_distance = linecache.getline("lib/standard.cfg", 3)
camera_pitch = linecache.getline("lib/standard.cfg", 4)
camera_rotation = linecache.getline("lib/standard.cfg", 5)
camera_height = linecache.getline("lib/standard.cfg", 6)
day_time = linecache.getline("lib/standard.cfg", 7)
snow = linecache.getline("lib/standard.cfg", 8)
SCREEN_WIDTH = wndMgr.GetScreenWidth()
SCREEN_HEIGHT = wndMgr.GetScreenHeight()
if e.find("1")!=-1 and f.find("normal")!=-1:
self.GetChild("bg2").LoadImage("d:/ymir work/uiloading/background_loading_warrior_new.sub")
self.GetChild("bg2").SetScale(float(SCREEN_WIDTH) / 1024.0, float(SCREEN_HEIGHT) / 768.0)
self.GetChild("bg2").Show()
elif e.find("1")!=-1 and f.find("interactive")!=-1:
iWarpX = 469600 # X Koordinate
iWarpY = 953500 # Y Koordinate
local_distance = float(camera_distance)
local_pitch = float(camera_pitch)
local_rotation = float(camera_rotation)
local_height = 40.0
if local_distance >= 1:
app.SetCamera(int(local_distance), int(local_pitch), int(local_rotation), int(local_height)) #Perspektive(distance, pitch, vertical rotation, horizontal rotation)! iWarpX = 469600 # X Koordinate
elif local_distance < 1:
app.SetCamera(2500.0, 5.0, 105.0, 40.0) #Perspektive(??, ??, vertical rotation, horizontal rotation)!
net.Warp(iWarpX, iWarpY);
if day_time.find("enable_night") != -1:
self.DayMode(1)
if snow.find("enable_snow") != -1:
self.__OnClickSnowOnButton()
self.GetChild("bg2").Hide()
elif e.find("2")!=-1 and f.find("norm")!=-1:
self.GetChild("bg2").LoadImage("d:/ymir work/uiloading/background_loading_assassin.sub")
self.GetChild("bg2").SetScale(float(SCREEN_WIDTH) / 1024.0, float(SCREEN_HEIGHT) / 768.0)
self.GetChild("bg2").Show()
elif e.find("2")!=-1 and f.find("interactive")!=-1:
iWarpX = 153600 # X Koordinate
iWarpY = 261300 # Y Koordinate
local_distance = float(camera_distance)
local_pitch = float(camera_pitch)
local_rotation = float(camera_rotation)
local_height = 40.0
if local_distance >= 1:
app.SetCamera(int(local_distance), int(local_pitch), int(local_rotation), int(local_height)) #Perspektive(distance, pitch, vertical rotation, horizontal rotation)! iWarpX = 469600 # X Koordinate
elif local_distance < 1:
app.SetCamera(2500.0, 5.0, 290.0, 40.0 ) #Perspektive(??, ??, vertical rotation, horizontal rotation)!
net.Warp(iWarpX, iWarpY);
if day_time.find("enable_night") != -1:
self.DayMode(1)
if snow.find("enable_snow") != -1:
self.__OnClickSnowOnButton()
self.GetChild("bg2").Hide()
elif e.find("3")!=-1 and f.find("norm")!=-1:
self.GetChild("bg2").LoadImage("d:/ymir work/uiloading/background_loading_shaman.sub")
self.GetChild("bg2").SetScale(float(SCREEN_WIDTH) / 1024.0, float(SCREEN_HEIGHT) / 768.0)
self.GetChild("bg2").Show()
elif e.find("3")!=-1 and f.find("interactive") !=-1:
##36896341x54153
iWarpX = 36896341 # X Koordinate
iWarpY = 54153 # Y Koordinate
local_distance = float(camera_distance)
local_pitch = float(camera_pitch)
local_rotation = float(camera_rotation)
local_height = 40.0
if local_distance >= 1:
app.SetCamera(int(local_distance), int(local_pitch), int(local_rotation), int(local_height)) #Perspektive(distance, pitch, vertical rotation, horizontal rotation)! iWarpX = 469600 # X Koordinate
elif local_distance < 1:
app.SetCamera(2500.0, 5.0, 330.0, 40.0) #Perspektive(??, ??, vertical rotation, horizontal rotation)!
net.Warp(iWarpX, iWarpY);
if day_time.find("enable_night") != -1:
self.DayMode(1)
if snow.find("enable_snow") != -1:
self.__OnClickSnowOnButton()
self.GetChild("bg2").Hide()
elif e.find("4")!=-1 and f.find("norm")!=-1:
self.GetChild("bg2").LoadImage("d:/ymir work/uiloading/background_loading_sura.sub")
self.GetChild("bg2").SetScale(float(SCREEN_WIDTH) / 1024.0, float(SCREEN_HEIGHT) / 768.0)
self.GetChild("bg2").Show()
elif e.find("4")!=-1 and f.find("interactive")!=-1:
iWarpX = 8854400 # X Koordinate
iWarpY = 10200 # Y Koordinate
local_distance = float(camera_distance)
local_pitch = float(camera_pitch)
local_rotation = float(camera_rotation)
local_height = 40.0
if local_distance >= 1:
app.SetCamera(int(local_distance), int(local_pitch), int(local_rotation), int(local_height)) #Perspektive(distance, pitch, vertical rotation, horizontal rotation)! iWarpX = 469600 # X Koordinate
elif local_distance < 1:
app.SetCamera(2500.0, 5.0, 350.0, 40.0) #Perspektive(??, ??, vertical rotation, horizontal rotation)!
net.Warp(iWarpX, iWarpY);
if day_time.find("enable_night") != -1:
self.DayMode(1)
if snow.find("enable_snow") != -1:
self.__OnClickSnowOnButton()
self.GetChild("bg2").Hide()
elif e.find("5")!=-1 and f.find("norm")!=-1:
self.GetChild("bg2").LoadImage("d:/ymir work/uiloading/background_loading_daroo_world.sub")
self.GetChild("bg2").SetScale(float(SCREEN_WIDTH) / 1440.0, float(SCREEN_HEIGHT) / 838.0)
self.GetChild("bg2").Show()
elif e.find("5")!=-1 and f.find("interactive")!=-1:
iWarpX = 1106200 # X Koordinate
iWarpY = 53600 # Y Koordinate
local_distance = float(camera_distance)
local_pitch = float(camera_pitch)
local_rotation = float(camera_rotation)
local_height = 40.0
if local_distance >= 1:
app.SetCamera(int(local_distance), int(local_pitch), int(local_rotation), int(local_height)) #Perspektive(distance, pitch, vertical rotation, horizontal rotation)! iWarpX = 469600 # X Koordinate
elif local_distance < 1:
app.SetCamera(2500.0, 5.0, 90.0, 40.0) #Perspektive(??, ??, vertical rotation, horizontal rotation)!
net.Warp(iWarpX, iWarpY);
if day_time.find("enable_night") != -1:
self.DayMode(1)
if snow.find("snow on") != -1:
self.__OnClickSnowOnButton()
self.GetChild("bg2").Hide()
else:
return