mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
*** empty log message ***
This commit is contained in:
parent
a1f850d470
commit
bb92baf0bb
@ -12,7 +12,7 @@ class FSM(DirectObject):
|
||||
# special methods
|
||||
|
||||
def __init__(self, name, states=[], initialStateName=None,
|
||||
finalStateName=None):
|
||||
finalStateName=None, easyDict = None):
|
||||
"""__init__(self, string, State[], string, string)
|
||||
|
||||
FSM constructor: takes name, list of states, initial state and
|
||||
|
@ -42,6 +42,7 @@ class ShowBase:
|
||||
self.sfxActive = self.config.GetBool('audio-sfx-active', 1)
|
||||
self.musicActive = self.config.GetBool('audio-music-active', 1)
|
||||
self.wantFog = self.config.GetBool('want-fog', 1)
|
||||
|
||||
self.screenshotExtension = self.config.GetString('screenshot-extension', 'jpg')
|
||||
self.musicManager = None
|
||||
self.musicManagerIsValid = None
|
||||
@ -127,8 +128,8 @@ class ShowBase:
|
||||
# scales things back to the right aspect ratio.
|
||||
|
||||
# For now, we assume that the window will have an aspect ratio
|
||||
# matching that of a traditional PC screen.
|
||||
self.aspectRatio = 4.0 / 3.0
|
||||
# matching that of a traditional PC screen (w / h) = (4 / 3)
|
||||
self.aspectRatio = self.config.GetFloat('aspect-ratio', (4.0 / 3.0))
|
||||
self.aspect2d = self.render2d.attachNewNode(PGTop("aspect2d"))
|
||||
self.aspect2d.setScale(1.0 / self.aspectRatio, 1.0, 1.0)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user