コード例 #1
0
    def __init__(self, pDefaultContent, pRootObj):
        self.DefaultContent = pDefaultContent
        self.RootObj = pRootObj

        self.ApplicationSelector = UI.ApplicationSelector(
            pDefaultContent, Core.MAIN.ScreenWidth / 2 - 550 / 2,
            Core.MAIN.ScreenHeight / 2 - 120 / 2)
        self.NoFoldersFound = False

        self.LoadApplicationsList()

        self.BottomButtonsList = Widget.Widget_Controller(
            pDefaultContent, (5, Core.MAIN.ScreenHeight - 50 - 5,
                              Core.MAIN.ScreenWidth - 10, 50))
        self.BottomButtonsList.Append(
            Widget.Widget_Label(
                pDefaultContent, "/Ubuntu_Bold.ttf", "Taiyou Framework v" +
                Utils.FormatNumber(Core.TaiyouGeneralVersion) +
                "\nTaiyou UI/Taskbar v" + UI.TaskBar_Version, 14,
                (200, 200, 200), 5, 5, 0))

        self.ApplicationManagerBarAnimatorDisableToggle = True
        self.ApplicationManagerBarAnimator = Utils.AnimationController(2)
        self.ApplicationManagerBarAnimator.Enabled = False
        self.ApplicationManagerBar = Widget.Widget_Controller(
            pDefaultContent, (5, 650, Core.MAIN.ScreenWidth - 10, 50))
        self.ApplicationManagerBar.Append(
            Widget.Widget_Button(pDefaultContent, "Open Application", 14, 5, 5,
                                 0))
        self.ApplicationManagerEnabled = False

        self.TextsBaseX = 0
        self.DisableInput = False
コード例 #2
0
    def __init__(self, pDefaultContent, pRootProcess):
        self.Enabled = False
        self.DisableToggle = False
        self.RootProcess = pRootProcess
        self.Animation = Utils.AnimationController(3, multiplierRestart=True)
        self.CurrentMode = None
        self.Welcome = False
        self.GoToModeWhenReturning = None
        self.DefaultContent = pDefaultContent
        self.LastDisplayFrame = pygame.Surface(
            (Core.MAIN.ScreenWidth, Core.MAIN.ScreenHeight))
        self.Workaround_RenderLastFrame = False
        self.BluredBackgroundResult = pygame.Surface((0, 0))

        self.SetMode(0)
コード例 #3
0
ファイル: __init__.py プロジェクト: aragubas/OneTrack
def Initialize():
    global LagIndicatorSurface
    global LagTextWidth
    global LagTextHeight
    global LagTextColor
    global FlashingAnimation

    LagTextWidth = UI.ContentManager.GetFont_width("/PressStart2P.ttf", 14,
                                                   "LAG")
    LagTextHeight = UI.ContentManager.GetFont_height("/PressStart2P.ttf", 14,
                                                     "LAG")

    LagIndicatorSurface = pygame.Surface((LagTextWidth + 4, LagTextHeight + 4))
    LagTextColor = (255, 0, 0)
    FlashingAnimation = Utils.AnimationController(5,
                                                  255,
                                                  multiplierRestart=True)