Changeset 575


Ignore:
Timestamp:
04/21/12 22:04:41 (3 years ago)
Author:
ecoughlan
Message:

DIM files and unused imports

Location:
src
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • src/dim/simpleButtonDim.py

    r513 r575  
    11W = 56
    22H = 25
     3OFF = 5
  • src/dim/statDescriptionDim.py

    r410 r575  
    33LEFT = (1080 - 400) / 2
    44TOP = 14
     5
     6CLOSE_X = W - 24
     7CLOSE_Y = 6
  • src/scene.py

    r561 r575  
    1111from leftRight import LeftRight
    1212from fileio import loadText
    13 from globals import *
     13from dim import sceneDim as DIM
     14from globals import sceneDir
    1415
    1516
     
    2728        self.forwardResponse = 0
    2829
    29         left = LeftRight((10, SCREEN_H + 50),
    30                           True, False)
     30        left = LeftRight(DIM.LEFT_POS, True, False)
    3131        left.addResponse((self.prevStill,))
    32         right = LeftRight((SCREEN_W - 60, SCREEN_H + 50),
    33                          True, True)
     32        right = LeftRight(DIM.RIGHT_POS, True, True)
    3433        right.addResponse((self.nextStill,))
    3534
  • src/simpleButton.py

    r539 r575  
    2525
    2626        self.addRect(Rectangle(self.pos, DIM.W, DIM.H, GRAY))
    27         self.addText(Text((self.pos[0], self.pos[1] + 5), message,
     27        self.addText(Text((self.pos[0], self.pos[1] + DIM.OFF), message,
    2828                              XSM_TEXT, FAKEBLACK, DIM.W, True))
    2929        self.affirmative = affirmative
  • src/statDescription.py

    r539 r575  
    2626        self.category = category
    2727        self.addImg(Image(self.pos, DIM.W, DIM.H, buttonDir + "bottombar_background"))
    28         self.addWindow(CloseButton((self.pos[0] + DIM.W - CLOSE_DIM.W - 6, self.pos[1] + 6), True, (self.close,)))
     28        self.addWindow(CloseButton((self.pos[0] + DIM.CLOSE_X, self.pos[1] + DIM.CLOSE_Y), True, (self.close,)))
    2929        self.message = ""
    3030
Note: See TracChangeset for help on using the changeset viewer.