mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 09:57:40 +03:00
Move Status.json flags into data.py
These aren't used by any core code, but at least one plugin uses one.
This commit is contained in:
parent
a47143a6a5
commit
dda5a86f3d
48
data.py
48
data.py
@ -376,3 +376,51 @@ outfitting_internal_map = {
|
|||||||
('shieldgenerator', 'strong'): 'Prismatic Shield Generator',
|
('shieldgenerator', 'strong'): 'Prismatic Shield Generator',
|
||||||
'unkvesselresearch': 'Research Limpet Controller',
|
'unkvesselresearch': 'Research Limpet Controller',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Dashboard Flags constants
|
||||||
|
FlagsDocked = 1 << 0 # on a landing pad
|
||||||
|
FlagsLanded = 1 << 1 # on planet surface
|
||||||
|
FlagsLandingGearDown = 1 << 2
|
||||||
|
FlagsShieldsUp = 1 << 3
|
||||||
|
FlagsSupercruise = 1 << 4
|
||||||
|
FlagsFlightAssistOff = 1 << 5
|
||||||
|
FlagsHardpointsDeployed = 1 << 6
|
||||||
|
FlagsInWing = 1 << 7
|
||||||
|
FlagsLightsOn = 1 << 8
|
||||||
|
FlagsCargoScoopDeployed = 1 << 9
|
||||||
|
FlagsSilentRunning = 1 << 10
|
||||||
|
FlagsScoopingFuel = 1 << 11
|
||||||
|
FlagsSrvHandbrake = 1 << 12
|
||||||
|
FlagsSrvTurret = 1 << 13 # using turret view
|
||||||
|
FlagsSrvUnderShip = 1 << 14 # turret retracted
|
||||||
|
FlagsSrvDriveAssist = 1 << 15
|
||||||
|
FlagsFsdMassLocked = 1 << 16
|
||||||
|
FlagsFsdCharging = 1 << 17
|
||||||
|
FlagsFsdCooldown = 1 << 18
|
||||||
|
FlagsLowFuel = 1 << 19 # < 25%
|
||||||
|
FlagsOverHeating = 1 << 20 # > 100%, or is this 80% now ?
|
||||||
|
FlagsHasLatLong = 1 << 21
|
||||||
|
FlagsIsInDanger = 1 << 22
|
||||||
|
FlagsBeingInterdicted = 1 << 23
|
||||||
|
FlagsInMainShip = 1 << 24
|
||||||
|
FlagsInFighter = 1 << 25
|
||||||
|
FlagsInSRV = 1 << 26
|
||||||
|
FlagsAnalysisMode = 1 << 27 # Hud in Analysis mode
|
||||||
|
FlagsNightVision = 1 << 28
|
||||||
|
FlagsAverageAltitude = 1 << 29 # Altitude from Average radius
|
||||||
|
FlagsFsdJump = 1 << 30
|
||||||
|
FlagsSrvHighBeam = 1 << 31
|
||||||
|
|
||||||
|
# Dashboard GuiFocus constants
|
||||||
|
GuiFocusNoFocus = 0
|
||||||
|
GuiFocusInternalPanel = 1 # right hand side
|
||||||
|
GuiFocusExternalPanel = 2 # left hand side
|
||||||
|
GuiFocusCommsPanel = 3 # top
|
||||||
|
GuiFocusRolePanel = 4 # bottom
|
||||||
|
GuiFocusStationServices = 5
|
||||||
|
GuiFocusGalaxyMap = 6
|
||||||
|
GuiFocusSystemMap = 7
|
||||||
|
GuiFocusOrrery = 8
|
||||||
|
GuiFocusFSS = 9
|
||||||
|
GuiFocusSAA = 10
|
||||||
|
GuiFocusCodex = 11
|
||||||
|
49
plug.py
49
plug.py
@ -19,55 +19,6 @@ import logging
|
|||||||
|
|
||||||
logger = get_main_logger()
|
logger = get_main_logger()
|
||||||
|
|
||||||
# Dashboard Flags constants
|
|
||||||
FlagsDocked = 1 << 0 # on a landing pad
|
|
||||||
FlagsLanded = 1 << 1 # on planet surface
|
|
||||||
FlagsLandingGearDown = 1 << 2
|
|
||||||
FlagsShieldsUp = 1 << 3
|
|
||||||
FlagsSupercruise = 1 << 4
|
|
||||||
FlagsFlightAssistOff = 1 << 5
|
|
||||||
FlagsHardpointsDeployed = 1 << 6
|
|
||||||
FlagsInWing = 1 << 7
|
|
||||||
FlagsLightsOn = 1 << 8
|
|
||||||
FlagsCargoScoopDeployed = 1 << 9
|
|
||||||
FlagsSilentRunning = 1 << 10
|
|
||||||
FlagsScoopingFuel = 1 << 11
|
|
||||||
FlagsSrvHandbrake = 1 << 12
|
|
||||||
FlagsSrvTurret = 1 << 13 # using turret view
|
|
||||||
FlagsSrvUnderShip = 1 << 14 # turret retracted
|
|
||||||
FlagsSrvDriveAssist = 1 << 15
|
|
||||||
FlagsFsdMassLocked = 1 << 16
|
|
||||||
FlagsFsdCharging = 1 << 17
|
|
||||||
FlagsFsdCooldown = 1 << 18
|
|
||||||
FlagsLowFuel = 1 << 19 # <25%
|
|
||||||
FlagsOverHeating = 1 << 20 # > 100%
|
|
||||||
FlagsHasLatLong = 1 << 21
|
|
||||||
FlagsIsInDanger = 1 << 22
|
|
||||||
FlagsBeingInterdicted = 1 << 23
|
|
||||||
FlagsInMainShip = 1 << 24
|
|
||||||
FlagsInFighter = 1 << 25
|
|
||||||
FlagsInSRV = 1 << 26
|
|
||||||
FlagsAnalysisMode = 1 << 27 # Hud in Analysis mode
|
|
||||||
FlagsNightVision = 1 << 28
|
|
||||||
FlagsAverageAltitude = 1 << 29 # Altitude from Average radius
|
|
||||||
FlagsFsdJump = 1 << 30
|
|
||||||
FlagsSrvHighBeam = 1 << 31
|
|
||||||
|
|
||||||
# Dashboard GuiFocus constants
|
|
||||||
GuiFocusNoFocus = 0
|
|
||||||
GuiFocusInternalPanel = 1 # right hand side
|
|
||||||
GuiFocusExternalPanel = 2 # left hand side
|
|
||||||
GuiFocusCommsPanel = 3 # top
|
|
||||||
GuiFocusRolePanel = 4 # bottom
|
|
||||||
GuiFocusStationServices = 5
|
|
||||||
GuiFocusGalaxyMap = 6
|
|
||||||
GuiFocusSystemMap = 7
|
|
||||||
GuiFocusOrrery = 8
|
|
||||||
GuiFocusFSS = 9
|
|
||||||
GuiFocusSAA = 10
|
|
||||||
GuiFocusCodex = 11
|
|
||||||
|
|
||||||
|
|
||||||
# List of loaded Plugins
|
# List of loaded Plugins
|
||||||
PLUGINS = []
|
PLUGINS = []
|
||||||
PLUGINS_not_py3 = []
|
PLUGINS_not_py3 = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user