Changeset 572


Ignore:
Timestamp:
04/21/2012 09:39:30 PM (3 years ago)
Author:
ecoughlan
Message:

unused imports and DIM files

Location:
src
Files:
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • src/buildMenu.py

    r553 r572  
    5555                    continue
    5656                building = catBuildings[j*PAGE_SIZE + i]
    57                 entry = BuildMenuEntry((self.pos[0] + DIM.W_SHIFT, self.pos[1] + DIM.H_SHIFT + DIM.V_SHIFT * i), True, building)
     57                entry = BuildMenuEntry((self.pos[0] + DIM.W_SHIFT,
     58                                        self.pos[1] + DIM.H_SHIFT + DIM.V_SHIFT * i),
     59                                       True, building)
    5860                entry.setYesResponse(buildResponse)
    5961                page.subwindows.append(entry)
  • src/buildMenuEntry.py

    r539 r572  
    99from buildDescription import BuildDescription
    1010from info import Info
    11 from stats import Stats
    12 from dim import buildMenuEntryDim as DIM
    1311from globals import *
    1412from hoverDescription import HoverDescription
     
    3230        self.info.createFromBuilding(building, False, self.able)
    3331        MenuEntry.__init__(self, pos, visible, self.info)
    34         buildingStats = self.building.stats.oneTimeSpecs.getAllStats()
    35 
    36         #self.stats = Stats((DIM.DESCRIP_LEFT + 50, DIM.DESCRIP_TOP + 125), False, buildingStats, isBuilding=True)
    37         #self.stats.stayBack = True
    3832
    3933        self.info.createFromBuilding(building, True, self.able)
    4034        popup = BuildDescription((0, 0), False, self.info, self.able)
    41         #popup.addWindow(self.stats)
    4235        self.addWindow(popup)
    4336        self.addResponse((popup.toggleVisible,))
  • src/closeButton.py

    r538 r572  
    88from image import Image
    99from dim import closeButtonDim as DIM
    10 from globals import *
     10from fileio import buttonDir
    1111
    1212
  • src/detailedDescription.py

    r539 r572  
    77from window import Window
    88from simpleButton import SimpleButton
    9 from rectangle import Rectangle
    109from text import Text
    1110from image import Image
  • src/dim/hoverDescriptionDim.py

    r519 r572  
    11POS = (680, 660)
     2W = 400
     3H = 80
     4
     5TEXT_W = 380
     6TEXT_POS = (685, 685)
  • src/hoverDescription.py

    r539 r572  
    2727        Window.__init__(self, DIM.POS, True)
    2828
    29         self.addImg(Image(DIM.POS, 400, 80, buttonDir + "info_background"))
     29        self.addImg(Image(DIM.POS, DIM.W, DIM.H, buttonDir + "info_background"))
    3030
    31         self.addText(Text((DIM.POS[0] + 5, DIM.POS[1] + 5),
    32                               text, SM_TEXT, WHITE, width=380))
     31        self.addText(Text(DIM.TEXT_POS, text, SM_TEXT, WHITE, DIM.TEXT_W))
    3332
    3433    def render(self, surface):
Note: See TracChangeset for help on using the changeset viewer.