general: Eliminate libotp & libtoontown import shims

This commit is contained in:
John Cote 2021-07-08 12:52:31 -04:00
parent e193383493
commit e12c704dfc
82 changed files with 89 additions and 89 deletions

View file

@ -1,6 +1,6 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import Nametag, NametagGroup from panda3d.otp import Nametag, NametagGroup
from libotp import CFSpeech, CFThought, CFTimeout, CFPageButton, CFNoQuitButton, CFQuitButton from panda3d.otp import CFSpeech, CFThought, CFTimeout, CFPageButton, CFNoQuitButton, CFQuitButton
from otp.otpbase import OTPGlobals from otp.otpbase import OTPGlobals
from otp.otpbase import OTPLocalizer from otp.otpbase import OTPLocalizer
from direct.actor.Actor import Actor from direct.actor.Actor import Actor

View file

@ -6,7 +6,7 @@ from direct.actor.DistributedActor import DistributedActor
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from direct.task import Task from direct.task import Task
from direct.showbase import PythonUtil from direct.showbase import PythonUtil
from libotp import Nametag from panda3d.otp import Nametag
from otp.otpbase import OTPGlobals from otp.otpbase import OTPGlobals
from otp.otpbase import OTPLocalizer from otp.otpbase import OTPLocalizer
from otp.speedchat import SCDecoders from otp.speedchat import SCDecoders

View file

@ -1,6 +1,6 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import WhisperPopup from panda3d.otp import WhisperPopup
from libotp import CFQuicktalker, CFPageButton, CFQuitButton, CFSpeech, CFThought, CFTimeout from panda3d.otp import CFQuicktalker, CFPageButton, CFQuitButton, CFSpeech, CFThought, CFTimeout
from otp.chat import ChatGarbler from otp.chat import ChatGarbler
import string import string
from direct.task import Task from direct.task import Task

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import Nametag, WhisperPopup from panda3d.otp import Nametag, WhisperPopup
from direct.gui.DirectGui import * from direct.gui.DirectGui import *
from direct.showbase.PythonUtil import * from direct.showbase.PythonUtil import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *

View file

@ -10,7 +10,7 @@ from otp.chat.TalkHandle import TalkHandle
import time import time
from otp.chat.TalkGlobals import * from otp.chat.TalkGlobals import *
from otp.chat.ChatGlobals import * from otp.chat.ChatGlobals import *
from libotp import CFSpeech, CFTimeout, CFThought from panda3d.otp import CFSpeech, CFTimeout, CFThought
ThoughtPrefix = '.' ThoughtPrefix = '.'
class TalkAssistant(DirectObject.DirectObject): class TalkAssistant(DirectObject.DirectObject):

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.gui.DirectGui import * from direct.gui.DirectGui import *
from direct.directnotify import DirectNotifyGlobal from direct.directnotify import DirectNotifyGlobal
from direct.fsm import StateData from direct.fsm import StateData

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import CMover from panda3d.otp import CMover
from direct.directnotify import DirectNotifyGlobal from direct.directnotify import DirectNotifyGlobal
from otp.movement.PyVec3 import PyVec3 from otp.movement.PyVec3 import PyVec3
from direct.showbase import PythonUtil from direct.showbase import PythonUtil

View file

@ -4,7 +4,7 @@ from direct.interval.IntervalGlobal import *
from . import HolidayDecorator from . import HolidayDecorator
from toontown.toonbase import ToontownGlobals from toontown.toonbase import ToontownGlobals
from pandac.PandaModules import Vec4, CSDefault, TransformState, NodePath, TransparencyAttrib from pandac.PandaModules import Vec4, CSDefault, TransformState, NodePath, TransparencyAttrib
from libtoontown import loadDNAFile from panda3d.toontown import loadDNAFile
from toontown.hood import GSHood from toontown.hood import GSHood
class CrashedLeaderBoardDecorator(HolidayDecorator.HolidayDecorator): class CrashedLeaderBoardDecorator(HolidayDecorator.HolidayDecorator):

View file

@ -7,7 +7,7 @@ from toontown.safezone import Playground
from toontown.town import Street from toontown.town import Street
from toontown.estate import Estate from toontown.estate import Estate
from pandac.PandaModules import Vec4, CSDefault, TransformState, NodePath, TransparencyAttrib from pandac.PandaModules import Vec4, CSDefault, TransformState, NodePath, TransparencyAttrib
from libtoontown import loadDNAFile from panda3d.toontown import loadDNAFile
class HalloweenHolidayDecorator(HolidayDecorator.HolidayDecorator): class HalloweenHolidayDecorator(HolidayDecorator.HolidayDecorator):
notify = DirectNotifyGlobal.directNotify.newCategory('HalloweenHolidayDecorator') notify = DirectNotifyGlobal.directNotify.newCategory('HalloweenHolidayDecorator')

View file

@ -1,7 +1,7 @@
from toontown.toonbase import ToontownGlobals from toontown.toonbase import ToontownGlobals
from direct.interval.IntervalGlobal import Parallel, Sequence, Func, Wait from direct.interval.IntervalGlobal import Parallel, Sequence, Func, Wait
from pandac.PandaModules import Vec4, CSDefault, TransformState, NodePath, TransparencyAttrib from pandac.PandaModules import Vec4, CSDefault, TransformState, NodePath, TransparencyAttrib
from libtoontown import loadDNAFile from panda3d.toontown import loadDNAFile
class HolidayDecorator: class HolidayDecorator:

View file

@ -1,7 +1,7 @@
from direct.directnotify import DirectNotifyGlobal from direct.directnotify import DirectNotifyGlobal
from panda3d.core import * from panda3d.core import *
from panda3d.toontown import *
from libtoontown import *
from otp.ai.AIZoneData import AIZoneDataStore from otp.ai.AIZoneData import AIZoneDataStore
from otp.ai.TimeManagerAI import TimeManagerAI from otp.ai.TimeManagerAI import TimeManagerAI
from otp.distributed.OtpDoGlobals import * from otp.distributed.OtpDoGlobals import *

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from .BattleBase import * from .BattleBase import *
from toontown.toonbase import ToontownGlobals from toontown.toonbase import ToontownGlobals

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from .BattleBase import * from .BattleBase import *
from direct.actor import Actor from direct.actor import Actor

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from .BattleBase import * from .BattleBase import *
from direct.actor import Actor from direct.actor import Actor

View file

@ -1,4 +1,4 @@
from libotp import * from panda3d.otp import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from .BattleProps import * from .BattleProps import *
from .BattleSounds import * from .BattleSounds import *

View file

@ -1,4 +1,4 @@
from libotp import * from panda3d.otp import *
from toontown.toonbase.ToontownGlobals import * from toontown.toonbase.ToontownGlobals import *
from .SuitBattleGlobals import * from .SuitBattleGlobals import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *

View file

@ -1,4 +1,4 @@
from libotp import * from panda3d.otp import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from direct.showbase.DirectObject import DirectObject from direct.showbase.DirectObject import DirectObject
from .RewardPanel import * from .RewardPanel import *

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.distributed.ClockDelta import * from direct.distributed.ClockDelta import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from .ElevatorConstants import * from .ElevatorConstants import *

View file

@ -1,6 +1,6 @@
from toontown.toonbase.ToonBaseGlobal import * from toontown.toonbase.ToonBaseGlobal import *
from pandac.PandaModules import * from pandac.PandaModules import *
from libtoontown import * from panda3d.toontown import *
from toontown.toonbase.ToontownGlobals import * from toontown.toonbase.ToontownGlobals import *
import random import random
from direct.distributed import DistributedObject from direct.distributed import DistributedObject

View file

@ -1,6 +1,6 @@
from toontown.toonbase.ToonBaseGlobal import * from toontown.toonbase.ToonBaseGlobal import *
from pandac.PandaModules import * from pandac.PandaModules import *
from libtoontown import * from panda3d.toontown import *
from toontown.toonbase.ToontownGlobals import * from toontown.toonbase.ToontownGlobals import *
import random import random
from direct.task.Task import Task from direct.task.Task import Task

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from direct.distributed.ClockDelta import * from direct.distributed.ClockDelta import *
from .KnockKnockJokes import * from .KnockKnockJokes import *

View file

@ -1,6 +1,6 @@
from toontown.toonbase.ToonBaseGlobal import * from toontown.toonbase.ToonBaseGlobal import *
from pandac.PandaModules import * from pandac.PandaModules import *
from libtoontown import * from panda3d.toontown import *
from toontown.toonbase.ToontownGlobals import * from toontown.toonbase.ToontownGlobals import *
import random import random
from direct.distributed import DistributedObject from direct.distributed import DistributedObject

View file

@ -1,4 +1,4 @@
from libtoontown import * from panda3d.toontown import *
from toontown.toonbase.ToonBaseGlobal import * from toontown.toonbase.ToonBaseGlobal import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from direct.distributed.ClockDelta import * from direct.distributed.ClockDelta import *

View file

@ -1,6 +1,6 @@
from toontown.toonbase.ToonBaseGlobal import * from toontown.toonbase.ToonBaseGlobal import *
from pandac.PandaModules import * from pandac.PandaModules import *
from libtoontown import * from panda3d.toontown import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from direct.distributed.ClockDelta import * from direct.distributed.ClockDelta import *
from toontown.toonbase import ToontownGlobals from toontown.toonbase import ToontownGlobals

View file

@ -1,6 +1,6 @@
from otp.avatar import Avatar from otp.avatar import Avatar
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.task import Task from direct.task import Task
import random import random
from pandac.PandaModules import * from pandac.PandaModules import *

View file

@ -1,8 +1,8 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from otp.avatar import Avatar from otp.avatar import Avatar
from libotp import CFQuicktalker from panda3d.otp import CFQuicktalker
from toontown.char import CharDNA from toontown.char import CharDNA
from toontown.char import DistributedChar from toontown.char import DistributedChar
from direct.directnotify import DirectNotifyGlobal from direct.directnotify import DirectNotifyGlobal

View file

@ -4,7 +4,7 @@ from direct.distributed.ClockDelta import *
from toontown.building.ElevatorConstants import * from toontown.building.ElevatorConstants import *
from toontown.toon import NPCToons from toontown.toon import NPCToons
from pandac.PandaModules import NodePath from pandac.PandaModules import NodePath
from libotp import * from panda3d.otp import *
from toontown.building import ElevatorUtils from toontown.building import ElevatorUtils
from toontown.toonbase import ToontownGlobals from toontown.toonbase import ToontownGlobals
from toontown.toonbase import ToontownBattleGlobals from toontown.toonbase import ToontownBattleGlobals

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from direct.directnotify import DirectNotifyGlobal from direct.directnotify import DirectNotifyGlobal
from toontown.hood import Place from toontown.hood import Place

View file

@ -5,8 +5,8 @@ from direct.fsm import State
from toontown.toonbase import ToontownGlobals from toontown.toonbase import ToontownGlobals
from toontown.hood import ZoneUtil from toontown.hood import ZoneUtil
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from libtoontown import * from panda3d.toontown import *
from otp.distributed.TelemetryLimiter import RotationLimitToH, TLGatherAllAvs from otp.distributed.TelemetryLimiter import RotationLimitToH, TLGatherAllAvs
class CogHQExterior(BattlePlace.BattlePlace): class CogHQExterior(BattlePlace.BattlePlace):

View file

@ -5,7 +5,7 @@ from toontown.hood import Place
from toontown.building import Elevator from toontown.building import Elevator
from toontown.toonbase import ToontownGlobals from toontown.toonbase import ToontownGlobals
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from otp.distributed.TelemetryLimiter import RotationLimitToH, TLGatherAllAvs from otp.distributed.TelemetryLimiter import RotationLimitToH, TLGatherAllAvs
class CogHQLobby(Place.Place): class CogHQLobby(Place.Place):

View file

@ -4,7 +4,7 @@ from direct.fsm import ClassicFSM, State
from direct.fsm import State from direct.fsm import State
from direct.showbase import BulletinBoardWatcher from direct.showbase import BulletinBoardWatcher
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from otp.distributed.TelemetryLimiter import RotationLimitToH, TLGatherAllAvs from otp.distributed.TelemetryLimiter import RotationLimitToH, TLGatherAllAvs
from toontown.toon import Toon from toontown.toon import Toon
from toontown.toonbase import ToontownGlobals from toontown.toonbase import ToontownGlobals

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from toontown.battle.BattleBase import * from toontown.battle.BattleBase import *
from toontown.coghq import DistributedLevelBattle from toontown.coghq import DistributedLevelBattle

View file

@ -1,6 +1,6 @@
from direct.gui.DirectGui import * from direct.gui.DirectGui import *
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from direct.distributed.ClockDelta import * from direct.distributed.ClockDelta import *
from direct.fsm import FSM from direct.fsm import FSM

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from toontown.battle.BattleBase import * from toontown.battle.BattleBase import *
from toontown.coghq import DistributedLevelBattle from toontown.coghq import DistributedLevelBattle

View file

@ -9,7 +9,7 @@ from toontown.estate import DistributedCannon
from toontown.estate import CannonGlobals from toontown.estate import CannonGlobals
from direct.gui.DirectGui import * from direct.gui.DirectGui import *
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from toontown.toon import NPCToons from toontown.toon import NPCToons
from toontown.toon import ToonHead from toontown.toon import ToonHead
from toontown.toonbase import TTLocalizer from toontown.toonbase import TTLocalizer

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from toontown.battle.BattleBase import * from toontown.battle.BattleBase import *
from toontown.battle import DistributedBattle from toontown.battle import DistributedBattle

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from toontown.battle.BattleBase import * from toontown.battle.BattleBase import *
from toontown.coghq import DistributedLevelBattle from toontown.coghq import DistributedLevelBattle

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from toontown.battle.BattleBase import * from toontown.battle.BattleBase import *
from toontown.coghq import DistributedLevelBattle from toontown.coghq import DistributedLevelBattle

View file

@ -7,8 +7,8 @@ from toontown.toonbase import ToontownGlobals
from toontown.hood import ZoneUtil from toontown.hood import ZoneUtil
from toontown.building import Elevator from toontown.building import Elevator
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from libtoontown import * from panda3d.toontown import *
class FactoryExterior(BattlePlace.BattlePlace): class FactoryExterior(BattlePlace.BattlePlace):
notify = DirectNotifyGlobal.directNotify.newCategory('FactoryExterior') notify = DirectNotifyGlobal.directNotify.newCategory('FactoryExterior')

View file

@ -3,7 +3,7 @@ from toontown.battle import BattlePlace
from direct.fsm import ClassicFSM, State from direct.fsm import ClassicFSM, State
from direct.fsm import State from direct.fsm import State
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from otp.distributed.TelemetryLimiter import RotationLimitToH, TLGatherAllAvs from otp.distributed.TelemetryLimiter import RotationLimitToH, TLGatherAllAvs
from toontown.toon import Toon from toontown.toon import Toon
from toontown.toonbase import ToontownGlobals from toontown.toonbase import ToontownGlobals

View file

@ -4,7 +4,7 @@ from direct.fsm import ClassicFSM, State
from direct.fsm import State from direct.fsm import State
from direct.showbase import BulletinBoardWatcher from direct.showbase import BulletinBoardWatcher
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from otp.distributed.TelemetryLimiter import RotationLimitToH, TLGatherAllAvs from otp.distributed.TelemetryLimiter import RotationLimitToH, TLGatherAllAvs
from toontown.toon import Toon from toontown.toon import Toon
from toontown.toonbase import ToontownGlobals from toontown.toonbase import ToontownGlobals

View file

@ -4,7 +4,7 @@ from direct.fsm import ClassicFSM, State
from direct.fsm import State from direct.fsm import State
from direct.showbase import BulletinBoardWatcher from direct.showbase import BulletinBoardWatcher
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from otp.distributed.TelemetryLimiter import RotationLimitToH, TLGatherAllAvs from otp.distributed.TelemetryLimiter import RotationLimitToH, TLGatherAllAvs
from toontown.toon import Toon from toontown.toon import Toon
from toontown.toonbase import ToontownGlobals from toontown.toonbase import ToontownGlobals

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libtoontown import * from panda3d.toontown import *
from toontown.toonbase.ToonBaseGlobal import * from toontown.toonbase.ToonBaseGlobal import *
from direct.directnotify import DirectNotifyGlobal from direct.directnotify import DirectNotifyGlobal
from direct.fsm import StateData from direct.fsm import StateData

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from . import FriendsListPanel from . import FriendsListPanel
from . import FriendInviter from . import FriendInviter
from . import FriendInvitee from . import FriendInvitee

View file

@ -3,7 +3,7 @@ from . import HoodDataAI, ZoneUtil
from toontown.toonbase import ToontownGlobals from toontown.toonbase import ToontownGlobals
from toontown.racing import DistributedStartingBlockAI from toontown.racing import DistributedStartingBlockAI
from pandac.PandaModules import * from pandac.PandaModules import *
from libtoontown import * from panda3d.toontown import *
from toontown.racing.RaceGlobals import * from toontown.racing.RaceGlobals import *
from toontown.classicchars import DistributedGoofySpeedwayAI from toontown.classicchars import DistributedGoofySpeedwayAI
if __debug__: if __debug__:

View file

@ -3,7 +3,7 @@ from . import HoodDataAI, ZoneUtil
from toontown.toonbase import ToontownGlobals from toontown.toonbase import ToontownGlobals
from toontown.racing import DistributedStartingBlockAI from toontown.racing import DistributedStartingBlockAI
from pandac.PandaModules import * from pandac.PandaModules import *
from libtoontown import * from panda3d.toontown import *
from toontown.racing.RaceGlobals import * from toontown.racing.RaceGlobals import *
from toontown.classicchars import DistributedGoofySpeedwayAI from toontown.classicchars import DistributedGoofySpeedwayAI
from toontown.safezone import DistributedGolfKartAI from toontown.safezone import DistributedGolfKartAI

View file

@ -5,7 +5,7 @@ from toontown.suit import DistributedSuitPlannerAI
from toontown.safezone import ButterflyGlobals from toontown.safezone import ButterflyGlobals
from toontown.safezone import DistributedButterflyAI from toontown.safezone import DistributedButterflyAI
from pandac.PandaModules import * from pandac.PandaModules import *
from libtoontown import * from panda3d.toontown import *
from toontown.toon import NPCToons from toontown.toon import NPCToons
class HoodDataAI: class HoodDataAI:

View file

@ -4,7 +4,7 @@ from toontown.toonbase import ToontownGlobals
from toontown.safezone import OZTreasurePlannerAI from toontown.safezone import OZTreasurePlannerAI
from toontown.racing import DistributedStartingBlockAI from toontown.racing import DistributedStartingBlockAI
from pandac.PandaModules import * from pandac.PandaModules import *
from libtoontown import * from panda3d.toontown import *
from toontown.racing.RaceGlobals import * from toontown.racing.RaceGlobals import *
from toontown.classicchars import DistributedGoofySpeedwayAI from toontown.classicchars import DistributedGoofySpeedwayAI
from toontown.safezone import DistributedPicnicBasketAI from toontown.safezone import DistributedPicnicBasketAI

View file

@ -1,6 +1,6 @@
from direct.directnotify import DirectNotifyGlobal from direct.directnotify import DirectNotifyGlobal
from pandac.PandaModules import * from pandac.PandaModules import *
from libtoontown import * from panda3d.toontown import *
from toontown.toonbase.ToonBaseGlobal import * from toontown.toonbase.ToonBaseGlobal import *
from .DistributedMinigame import * from .DistributedMinigame import *
from direct.distributed.ClockDelta import * from direct.distributed.ClockDelta import *

View file

@ -1,4 +1,4 @@
from libotp import * from panda3d.otp import *
from .PurchaseBase import * from .PurchaseBase import *
from direct.task.Task import Task from direct.task.Task import Task
from toontown.toon import ToonHead from toontown.toon import ToonHead

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libtoontown import * from panda3d.toontown import *
from direct.showbase.PythonUtil import weightedChoice, randFloat, Functor from direct.showbase.PythonUtil import weightedChoice, randFloat, Functor
from direct.showbase.PythonUtil import list2dict from direct.showbase.PythonUtil import list2dict
from direct.showbase import DirectObject from direct.showbase import DirectObject

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libtoontown import * from panda3d.toontown import *
from direct.showbase.PythonUtil import reduceAngle, randFloat, normalDistrib from direct.showbase.PythonUtil import reduceAngle, randFloat, normalDistrib
from direct.showbase import DirectObject from direct.showbase import DirectObject
from toontown.pets import PetChase from toontown.pets import PetChase

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libtoontown import * from panda3d.toontown import *
from direct.distributed.ClockDelta import * from direct.distributed.ClockDelta import *
from direct.distributed import DistributedObject from direct.distributed import DistributedObject
from direct.directnotify import DirectNotifyGlobal from direct.directnotify import DirectNotifyGlobal

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.distributed.ClockDelta import * from direct.distributed.ClockDelta import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from direct.gui.DirectGui import * from direct.gui.DirectGui import *

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from toontown.toonbase import ToontownGlobals from toontown.toonbase import ToontownGlobals
from direct.showbase import DirectObject from direct.showbase import DirectObject
from direct.fsm import StateData from direct.fsm import StateData

View file

@ -14,7 +14,7 @@ import collections, types
from direct.distributed.ClockDelta import * from direct.distributed.ClockDelta import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from libotp import NametagGroup, WhisperPopup from panda3d.otp import NametagGroup, WhisperPopup
from otp.otpbase import OTPLocalizer from otp.otpbase import OTPLocalizer
from otp.otpbase import OTPGlobals from otp.otpbase import OTPGlobals

View file

@ -12,7 +12,7 @@
from direct.directnotify import DirectNotifyGlobal from direct.directnotify import DirectNotifyGlobal
from direct.distributed import DistributedObject from direct.distributed import DistributedObject
from libotp import WhisperPopup from panda3d.otp import WhisperPopup
from otp.otpbase.OTPGlobals import * from otp.otpbase.OTPGlobals import *
from toontown.friends import FriendHandle from toontown.friends import FriendHandle

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from direct.actor import Actor from direct.actor import Actor
from otp.avatar import Avatar from otp.avatar import Avatar

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from direct.distributed.ClockDelta import * from direct.distributed.ClockDelta import *
from direct.directnotify import DirectNotifyGlobal from direct.directnotify import DirectNotifyGlobal

View file

@ -1,7 +1,7 @@
import math import math
import random import random
from pandac.PandaModules import VBase3, CollisionPlane, CollisionNode, CollisionSphere, CollisionTube, NodePath, Plane, Vec3, Vec2, Point3, BitMask32, CollisionHandlerEvent, TextureStage, VBase4, BoundingSphere from pandac.PandaModules import VBase3, CollisionPlane, CollisionNode, CollisionSphere, CollisionTube, NodePath, Plane, Vec3, Vec2, Point3, BitMask32, CollisionHandlerEvent, TextureStage, VBase4, BoundingSphere
from libotp import NametagGroup, CFSpeech from panda3d.otp import NametagGroup, CFSpeech
from direct.interval.IntervalGlobal import Sequence, Wait, Func, LerpHprInterval, Parallel, LerpPosInterval, Track, ActorInterval, ParallelEndTogether, LerpFunctionInterval, LerpScaleInterval, LerpPosHprInterval, SoundInterval from direct.interval.IntervalGlobal import Sequence, Wait, Func, LerpHprInterval, Parallel, LerpPosInterval, Track, ActorInterval, ParallelEndTogether, LerpFunctionInterval, LerpScaleInterval, LerpPosHprInterval, SoundInterval
from direct.task import Task from direct.task import Task
from direct.fsm import FSM from direct.fsm import FSM

View file

@ -19,7 +19,7 @@ from toontown.distributed import DelayDelete
from toontown.chat import ResistanceChat from toontown.chat import ResistanceChat
from toontown.coghq import CogDisguiseGlobals from toontown.coghq import CogDisguiseGlobals
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
import random import random
import math import math
import functools import functools

View file

@ -6,7 +6,7 @@ from direct.showbase.PythonUtil import Functor
from direct.showbase.PythonUtil import StackTrace from direct.showbase.PythonUtil import StackTrace
from direct.gui.DirectGui import * from direct.gui.DirectGui import *
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.fsm import FSM from direct.fsm import FSM
from direct.fsm import ClassicFSM from direct.fsm import ClassicFSM
from direct.fsm import State from direct.fsm import State

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from toontown.battle.BattleProps import * from toontown.battle.BattleProps import *
from direct.distributed.ClockDelta import * from direct.distributed.ClockDelta import *

View file

@ -1,6 +1,6 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from libtoontown import * from panda3d.toontown import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from direct.distributed.ClockDelta import * from direct.distributed.ClockDelta import *
from direct.directtools.DirectGeometry import CLAMP from direct.directtools.DirectGeometry import CLAMP

View file

@ -1,6 +1,6 @@
from otp.ai.AIBaseGlobal import * from otp.ai.AIBaseGlobal import *
from pandac.PandaModules import * from pandac.PandaModules import *
from libtoontown import * from panda3d.toontown import *
from direct.distributed.ClockDelta import * from direct.distributed.ClockDelta import *
from otp.avatar import DistributedAvatarAI from otp.avatar import DistributedAvatarAI
from . import SuitTimings from . import SuitTimings

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from direct.distributed.ClockDelta import * from direct.distributed.ClockDelta import *
from direct.directtools.DirectGeometry import CLAMP from direct.directtools.DirectGeometry import CLAMP

View file

@ -1,4 +1,4 @@
from libtoontown import * from panda3d.toontown import *
from otp.ai.AIBaseGlobal import * from otp.ai.AIBaseGlobal import *
from direct.distributed import DistributedObjectAI from direct.distributed import DistributedObjectAI
from . import SuitPlannerBase, DistributedSuitAI from . import SuitPlannerBase, DistributedSuitAI

View file

@ -3,7 +3,7 @@ from otp.avatar import Avatar
from . import SuitDNA from . import SuitDNA
from toontown.toonbase import ToontownGlobals from toontown.toonbase import ToontownGlobals
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from toontown.battle import SuitBattleGlobals from toontown.battle import SuitBattleGlobals
from direct.task.Task import Task from direct.task.Task import Task
from toontown.battle import BattleProps from toontown.battle import BattleProps

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libtoontown import * from panda3d.toontown import *
from direct.distributed.ClockDelta import * from direct.distributed.ClockDelta import *
import math import math
import random import random

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libtoontown import * from panda3d.toontown import *
import random import random
import string import string
from direct.directnotify import DirectNotifyGlobal from direct.directnotify import DirectNotifyGlobal

View file

@ -5,7 +5,7 @@ from toontown.toonbase import TTLocalizer
from direct.task.Task import Task from direct.task.Task import Task
from direct.distributed import ClockDelta from direct.distributed import ClockDelta
from pandac.PandaModules import Point3 from pandac.PandaModules import Point3
from libotp import CFSpeech, CFTimeout from panda3d.otp import CFSpeech, CFTimeout
from toontown.toontowngui import TTDialog from toontown.toontowngui import TTDialog
from otp.otpbase import OTPLocalizer from otp.otpbase import OTPLocalizer
from toontown.parties import PartyGlobals from toontown.parties import PartyGlobals

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.directnotify import DirectNotifyGlobal from direct.directnotify import DirectNotifyGlobal
from direct.fsm import ClassicFSM from direct.fsm import ClassicFSM
from direct.fsm import State from direct.fsm import State

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from toontown.toonbase.ToontownGlobals import * from toontown.toonbase.ToontownGlobals import *
from direct.distributed.ClockDelta import * from direct.distributed.ClockDelta import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from toontown.toonbase import ToontownGlobals from toontown.toonbase import ToontownGlobals
import random import random
from toontown.hood import ZoneUtil from toontown.hood import ZoneUtil

View file

@ -5,7 +5,7 @@ from toontown.toonbase import TTLocalizer
from otp.otpbase import OTPLocalizer from otp.otpbase import OTPLocalizer
from direct.showbase import PythonUtil from direct.showbase import PythonUtil
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from otp.avatar import Emote from otp.avatar import Emote
from direct.directnotify import DirectNotifyGlobal from direct.directnotify import DirectNotifyGlobal
EmoteSleepIndex = 4 EmoteSleepIndex = 4

View file

@ -7,7 +7,7 @@ from direct.actor import Actor
import string import string
from .ToonHead import * from .ToonHead import *
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from direct.interval.IntervalGlobal import * from direct.interval.IntervalGlobal import *
from direct.directnotify import DirectNotifyGlobal from direct.directnotify import DirectNotifyGlobal
from toontown.toonbase import ToontownGlobals from toontown.toonbase import ToontownGlobals

View file

@ -1,6 +1,6 @@
from direct.gui.DirectGui import * from direct.gui.DirectGui import *
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from . import ToonHead from . import ToonHead
from toontown.distributed import DelayDelete from toontown.distributed import DelayDelete
from toontown.toonbase import ToontownGlobals from toontown.toonbase import ToontownGlobals

View file

@ -155,8 +155,8 @@ class DisplayOptions:
base.closeWindow(base.win) base.closeWindow(base.win)
return 0 return 0
base.disableShowbaseMouse() base.disableShowbaseMouse()
if 'libotp' in sys.modules: if 'panda3d.otp' in sys.modules:
from libotp import NametagGlobals from panda3d.otp import NametagGlobals
NametagGlobals.setCamera(base.cam) NametagGlobals.setCamera(base.cam)
NametagGlobals.setMouseWatcher(base.mouseWatcherNode) NametagGlobals.setMouseWatcher(base.mouseWatcherNode)
else: else:

View file

@ -9,7 +9,7 @@ from . import ToontownLoader
from direct.gui import DirectGuiGlobals from direct.gui import DirectGuiGlobals
from direct.gui.DirectGui import * from direct.gui.DirectGui import *
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
import sys import sys
import os import os
import math import math

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libtoontown import * from panda3d.toontown import *
from direct.directnotify.DirectNotifyGlobal import * from direct.directnotify.DirectNotifyGlobal import *
from direct.showbase import Loader from direct.showbase import Loader
from toontown.toontowngui import ToontownLoadingScreen from toontown.toontowngui import ToontownLoadingScreen

View file

@ -1,5 +1,5 @@
from pandac.PandaModules import * from pandac.PandaModules import *
from libotp import * from panda3d.otp import *
from toontown.battle.BattleProps import * from toontown.battle.BattleProps import *
from toontown.battle.BattleSounds import * from toontown.battle.BattleSounds import *
from toontown.distributed.ToontownMsgTypes import * from toontown.distributed.ToontownMsgTypes import *

View file

@ -1,6 +1,6 @@
from direct.distributed.DistributedObject import DistributedObject from direct.distributed.DistributedObject import DistributedObject
from direct.distributed.DistributedObjectGlobal import DistributedObjectGlobal from direct.distributed.DistributedObjectGlobal import DistributedObjectGlobal
from libotp import CFSpeech, CFTimeout from panda3d.otp import CFSpeech, CFTimeout
from toontown.toonbase import ToontownGlobals from toontown.toonbase import ToontownGlobals
from toontown.toonbase import TTLocalizer from toontown.toonbase import TTLocalizer
from toontown.toon import ToonDNA from toontown.toon import ToonDNA