Changes in / [917:803dc6bacfa5:908:fcf3c44650f1]
- Files:
-
- 7 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
MANIFEST.in
r916 r36 1 1 include mlx.nsi 2 2 include makeinst.bat 3 include winemakeinst.bat4 3 include license.txt 5 4 include runmlx.py -
setup.py
r916 r875 63 63 glob(os.path.join(cefDir, "locales", "*")))) 64 64 65 if os.getenv("WINE")=="yes":66 winsysdir=os.getenv("WINSYSDIR")67 data_files.append(("", [os.path.join(winsysdir, "python27.dll")]))68 data_files.append(("library", [69 os.path.join(winsysdir, "pywintypes27.dll"),70 os.path.join(winsysdir, "WINHTTP.dll")]))71 72 if gtkRuntimeDir:73 gtkBinDir = os.path.join(gtkRuntimeDir, "bin")74 data_files.append(("library", [75 os.path.join(gtkBinDir, "freetype6.dll"),76 os.path.join(gtkBinDir, "intl.dll"),77 os.path.join(gtkBinDir, "zlib1.dll"),78 os.path.join(gtkBinDir, "libglib-2.0-0.dll"),79 os.path.join(gtkBinDir, "libatk-1.0-0.dll"),80 os.path.join(gtkBinDir, "libcairo-2.dll"),81 os.path.join(gtkBinDir, "libexpat-1.dll"),82 os.path.join(gtkBinDir, "libpangowin32-1.0-0.dll"),83 os.path.join(gtkBinDir, "libgio-2.0-0.dll"),84 os.path.join(gtkBinDir, "libgdk-win32-2.0-0.dll"),85 os.path.join(gtkBinDir, "libpng14-14.dll"),86 os.path.join(gtkBinDir, "libgobject-2.0-0.dll"),87 os.path.join(gtkBinDir, "libgdk_pixbuf-2.0-0.dll"),88 os.path.join(gtkBinDir, "libfontconfig-1.dll"),89 os.path.join(gtkBinDir, "libpangoft2-1.0-0.dll"),90 os.path.join(gtkBinDir, "libgmodule-2.0-0.dll"),91 os.path.join(gtkBinDir, "libpango-1.0-0.dll"),92 os.path.join(gtkBinDir, "libpangocairo-1.0-0.dll"),93 os.path.join(gtkBinDir, "libgtk-win32-2.0-0.dll"),94 os.path.join(gtkBinDir, "libgthread-2.0-0.dll")95 ]))96 if cefDir:97 data_files.append(("library", [98 os.path.join(cefDir, "libcef.dll")99 ]))100 101 65 print data_files 102 66 -
src/mlx/acft.py
r917 r899 1149 1149 self.mtow = 100000 1150 1150 self.mlw = 80000 1151 elif bookedFlight.tailNumber=="HA-LCX":1152 self.mtow = 1000001153 self.mlw = 800001154 self.mzfw = 740001155 1156 self.flapSpeedLimits = { 15 : 227,1157 28 : 194,1158 36 : 178,1159 45 : 162 }1160 1151 1161 1152 def _appendLightsLoggers(self): -
src/mlx/checks.py
r917 r896 1021 1021 def isCondition(self, flight, aircraft, oldState, state): 1022 1022 """Check if the fault condition holds.""" 1023 isXPlane = (flight.aircraftType==const.AIRCRAFT_DH8D or1024 flight.aircraftType==const.AIRCRAFT_B733) and \1025 (flight.fsType==const.SIM_XPLANE11 or1026 flight.fsType==const.SIM_XPLANE10 or1027 flight.fsType==const.SIM_XPLANE9)1028 1023 if flight.stage==const.STAGE_CRUISE: 1029 bankLimit = 40 if isXPlane else 30 1024 isDH8DXplane = flight.aircraftType==const.AIRCRAFT_DH8D and \ 1025 (flight.fsType==const.SIM_XPLANE10 or 1026 flight.fsType==const.SIM_XPLANE9) 1027 bankLimit = 35 if isDH8DXplane else 30 1030 1028 elif flight.stage in [const.STAGE_TAKEOFF, const.STAGE_CLIMB, 1031 1029 const.STAGE_DESCENT, const.STAGE_LANDING]: 1032 bankLimit = 45 if isXPlane else351030 bankLimit = 35 1033 1031 else: 1034 1032 return False -
src/mlx/const.py
r917 r907 49 49 ## Flight simulator type: Prepar3D 50 50 SIM_P3D = 5 51 52 ## Flight simulator type: X-Plane 1153 SIM_XPLANE11 = 654 51 55 52 #------------------------------------------------------------------------------- -
src/mlx/fs.py
r909 r765 62 62 if type in [const.SIM_MSFS9, const.SIM_MSFSX]: 63 63 return fsuipc.Simulator(connectionListener, connectAttempts = 3) 64 elif type in [const.SIM_XPLANE9, const.SIM_XPLANE10 , const.SIM_XPLANE11]:64 elif type in [const.SIM_XPLANE9, const.SIM_XPLANE10]: 65 65 return xplane.Simulator(connectionListener, connectAttempts = 3) 66 66 else: 67 "Only MS Flight Simulator 2004 and X or X-Plane 9 , 10 and 11are supported"67 "Only MS Flight Simulator 2004 and X or X-Plane 9 and 10 are supported" 68 68 69 69 #------------------------------------------------------------------------------- -
src/mlx/gui/cef.py
r915 r805 309 309 container.connect("size-allocate", _handleSizeAllocate) 310 310 else: 311 container = gtk. DrawingArea()311 container = gtk.VBox(True, 0) 312 312 313 313 container.show() … … 327 327 windowID = window.handle 328 328 else: 329 windowID = container.window.xid 329 m = re.search("GtkVBox at 0x(\w+)", str(container)) 330 hexID = m.group(1) 331 windowID = int(hexID, 16) 330 332 331 333 windowInfo = cefpython.WindowInfo() -
src/mlx/xplane.py
r909 r893 506 506 (xplaneVersion, xplmVersion, xplraVersion) 507 507 if not autoReconnection: 508 fsType = const.SIM_XPLANE11 if xplaneVersion>=11000 else \ 509 (const.SIM_XPLANE10 if xplaneVersion>=10000 else const.SIM_XPLANE9) 508 fsType = const.SIM_XPLANE10 if xplaneVersion>=10000 else const.SIM_XPLANE9 510 509 511 510 Handler._callSafe(lambda: … … 1435 1434 1436 1435 flapsControl = data[self._monidx_flapsControl] 1437 flapsIndex = int( round(flapsControl * (len(self._flapsNotches)-1)))1436 flapsIndex = int(flapsControl * (len(self._flapsNotches)-1)) 1438 1437 state.flapsSet = 0 if flapsIndex<1 else self._flapsNotches[flapsIndex] 1439 1438 … … 1879 1878 1880 1879 class T154Model(GenericAircraftModel): 1881 """Generic model for the Tupolev Tu-1 54 aircraft."""1880 """Generic model for the Tupolev Tu-134 aircraft.""" 1882 1881 fuelTanks = [const.FUELTANK_CENTRE, const.FUELTANK_CENTRE2, 1883 1882 const.FUELTANK_RIGHT, const.FUELTANK_LEFT, … … 1903 1902 del state.reverser[1] 1904 1903 return state 1905 1906 #------------------------------------------------------------------------------1907 1908 class FelisT154Model(T154Model):1909 """Model for Felis' Tupolev Tu-154-M aircraft."""1910 @staticmethod1911 def doesHandle(aircraft, (tailnum, author, description, notes,1912 icao, liveryPath)):1913 """Determine if this model handler handles the aircraft with the given1914 name."""1915 return aircraft.type==const.AIRCRAFT_T154 and \1916 author.find("Felis")!=-1 and \1917 description.find("Tu154M")!=-11918 1919 def __init__(self):1920 """Construct the model."""1921 super(T154Model, self). \1922 __init__(flapsNotches = [0, 15, 28, 36, 45],1923 fuelTanks = T154Model.fuelTanks,1924 numEngines = 3)1925 1926 @property1927 def name(self):1928 """Get the name for this aircraft model."""1929 return "X-Plane/Felis Tupolev Tu-154-M"1930 1904 1931 1905 #------------------------------------------------------------------------------ … … 1970 1944 1971 1945 AircraftModel.registerSpecial(FJSDH8DModel) 1972 AircraftModel.registerSpecial(FelisT154Model)1973 1946 1974 1947 #------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.