当前位置: 首页>>代码示例>>Python>>正文


Python ToontownGlobals.getDockFont方法代码示例

本文整理汇总了Python中src.toontown.toonbase.ToontownGlobals.getDockFont方法的典型用法代码示例。如果您正苦于以下问题:Python ToontownGlobals.getDockFont方法的具体用法?Python ToontownGlobals.getDockFont怎么用?Python ToontownGlobals.getDockFont使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在src.toontown.toonbase.ToontownGlobals的用法示例。


在下文中一共展示了ToontownGlobals.getDockFont方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: begin

# 需要导入模块: from src.toontown.toonbase import ToontownGlobals [as 别名]
# 或者: from src.toontown.toonbase.ToontownGlobals import getDockFont [as 别名]
    def begin(self, range, label, gui, tipCategory, zoneId):
        self.defaultTex = "phase_3.5/maps/loading/default.jpg"
        self.defaultFont = ToontownGlobals.getInterfaceFont()
        self.defaultFontColor = (0, 0, 0.5, 1)
        self.zone2picture = {
            ToontownGlobals.GoofySpeedway: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.ToontownCentral: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.SillyStreet: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.LoopyLane: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.PunchlinePlace: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.DonaldsDock: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.BarnacleBoulevard: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.SeaweedStreet: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.LighthouseLane: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.DaisyGardens: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.ElmStreet: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.MapleStreet: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.OakStreet: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.MinniesMelodyland: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.AltoAvenue: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.BaritoneBoulevard: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.TenorTerrace: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.TheBrrrgh: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.WalrusWay: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.SleetStreet: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.PolarPlace: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.DonaldsDreamland: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.LullabyLane: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.PajamaPlace: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.OutdoorZone: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.GolfZone: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.SellbotHQ: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.SellbotFactoryExt: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.SellbotFactoryInt: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.SellbotMegaCorpInt: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.CashbotHQ: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.LawbotHQ: "phase_3.5/maps/loading/toon.jpg",
            ToontownGlobals.BossbotHQ: "phase_3.5/maps/loading/toon.jpg",
        }
        self.zone2font = {
            # Toontown Central Loader Fonts
            ToontownGlobals.GoofySpeedway: ToontownGlobals.getSignFont(),
            ToontownGlobals.ToontownCentral: ToontownGlobals.getCentralFont(),
            ToontownGlobals.SillyStreet: ToontownGlobals.getCentralFont(),
            ToontownGlobals.LoopyLane: ToontownGlobals.getCentralFont(),
            ToontownGlobals.PunchlinePlace: ToontownGlobals.getCentralFont(),
            # Donalds Dock Loader Fonts
            ToontownGlobals.DonaldsDock: ToontownGlobals.getDockFont(),
            ToontownGlobals.BarnacleBoulevard: ToontownGlobals.getDockFont(),
            ToontownGlobals.SeaweedStreet: ToontownGlobals.getDockFont(),
            ToontownGlobals.LighthouseLane: ToontownGlobals.getDockFont(),
            # Daisys Gardens Loader Fonts
            ToontownGlobals.DaisyGardens: ToontownGlobals.getGardenFont(),
            ToontownGlobals.ElmStreet: ToontownGlobals.getGardenFont(),
            ToontownGlobals.MapleStreet: ToontownGlobals.getGardenFont(),
            ToontownGlobals.OakStreet: ToontownGlobals.getGardenFont(),
            # Minnies Melodyland Loader Fonts
            ToontownGlobals.MinniesMelodyland: ToontownGlobals.getMelodyFont(),
            ToontownGlobals.AltoAvenue: ToontownGlobals.getMelodyFont(),
            ToontownGlobals.BaritoneBoulevard: ToontownGlobals.getMelodyFont(),
            ToontownGlobals.TenorTerrace: ToontownGlobals.getMelodyFont(),
            # Brghhh Loader Fonts
            ToontownGlobals.TheBrrrgh: ToontownGlobals.getFrostFont(),
            ToontownGlobals.WalrusWay: ToontownGlobals.getFrostFont(),
            ToontownGlobals.SleetStreet: ToontownGlobals.getFrostFont(),
            ToontownGlobals.PolarPlace: ToontownGlobals.getFrostFont(),
            # Donalds Dreamland Loader Fonts
            ToontownGlobals.DonaldsDreamland: ToontownGlobals.getDreamFont(),
            ToontownGlobals.LullabyLane: ToontownGlobals.getDreamFont(),
            ToontownGlobals.PajamaPlace: ToontownGlobals.getDreamFont(),
            # Other Zone Fonts
            ToontownGlobals.OutdoorZone: ToontownGlobals.getSignFont(),
            ToontownGlobals.GolfZone: ToontownGlobals.getSignFont(),
            # Cog Loader Fonts (Never edit, they are good as they currently are)
            ToontownGlobals.SellbotHQ: ToontownGlobals.getSuitFont(),
            ToontownGlobals.SellbotFactoryExt: ToontownGlobals.getSuitFont(),
            ToontownGlobals.SellbotFactoryInt: ToontownGlobals.getSuitFont(),
            ToontownGlobals.SellbotMegaCorpInt: ToontownGlobals.getSuitFont(),
            ToontownGlobals.CashbotHQ: ToontownGlobals.getSuitFont(),
            ToontownGlobals.LawbotHQ: ToontownGlobals.getSuitFont(),
            ToontownGlobals.BossbotHQ: ToontownGlobals.getSuitFont(),
        }
        self.zone2fontcolor = {
            ToontownGlobals.GoofySpeedway: VBase4(0.2, 0.6, 0.9, 1.0),
            ToontownGlobals.ToontownCentral: VBase4(0.9803921568627451, 0.8235294117647059, 0.0392156862745098, 1.0),
            ToontownGlobals.SillyStreet: VBase4(0.9803921568627451, 0.8235294117647059, 0.0392156862745098, 1.0),
            ToontownGlobals.LoopyLane: VBase4(0.9803921568627451, 0.8235294117647059, 0.0392156862745098, 1.0),
            ToontownGlobals.PunchlinePlace: VBase4(0.9803921568627451, 0.8235294117647059, 0.0392156862745098, 1.0),
            ToontownGlobals.DonaldsDock: VBase4(0.6901960784313725, 0.4274509803921569, 0.0549019607843137, 1.0),
            ToontownGlobals.BarnacleBoulevard: VBase4(0.6901960784313725, 0.4274509803921569, 0.0549019607843137, 1.0),
            ToontownGlobals.SeaweedStreet: VBase4(0.6901960784313725, 0.4274509803921569, 0.0549019607843137, 1.0),
            ToontownGlobals.LighthouseLane: VBase4(0.6901960784313725, 0.4274509803921569, 0.0549019607843137, 1.0),
            ToontownGlobals.DaisyGardens: VBase4(0.1647058823529412, 0.7490196078431373, 0.4509803921568627, 1.0),
            ToontownGlobals.ElmStreet: VBase4(0.1647058823529412, 0.7490196078431373, 0.4509803921568627, 1.0),
            ToontownGlobals.MapleStreet: VBase4(0.1647058823529412, 0.7490196078431373, 0.4509803921568627, 1.0),
            ToontownGlobals.OakStreet: VBase4(0.1647058823529412, 0.7490196078431373, 0.4509803921568627, 1.0),
            ToontownGlobals.MinniesMelodyland: VBase4(0.9294117647058824, 0.0196078431372549, 0.7333333333333333, 1.0),
            ToontownGlobals.AltoAvenue: VBase4(0.9294117647058824, 0.0196078431372549, 0.7333333333333333, 1.00),
            ToontownGlobals.BaritoneBoulevard: VBase4(0.9294117647058824, 0.0196078431372549, 0.7333333333333333, 1.0),
            ToontownGlobals.TenorTerrace: VBase4(0.9294117647058824, 0.0196078431372549, 0.7333333333333333, 1.0),
#.........这里部分代码省略.........
开发者ID:Wesley1000070,项目名称:Toontown-Crystal,代码行数:103,代码来源:ToontownLoadingScreen.py


注:本文中的src.toontown.toonbase.ToontownGlobals.getDockFont方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。