Ignore:
Timestamp:
03/01/11 21:30:28 (8 years ago)
Author:
aspidites
Message:

Patch by Aspidites:

  • no longer generates settings.xml files
  • removed more references to old Settings API from model classes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/active/character_customization/game/parpg/gamemap.py

    r736 r755  
    1919 
    2020from fife.extensions.loaders import loadMapFile 
    21 from parpg.common.utils import loadSettings 
    22  
    23  
    24 Settings = loadSettings() 
    2521 
    2622class GameMap(fife.MapChangeListener): 
     
    9591        At this point we also set the viewport to the current resolution.""" 
    9692        for cam in self.map.getCameras(): 
    97             width = self.engine.getSettings().getScreenWidth() 
    98             height = self.engine.getSettings().getScreenHeight()  
     93            width = self.model.settings.fife.ScreenWidth 
     94            height = self.model.settings.fife.ScreenHeight 
    9995            viewport = fife.Rect(0, 0, width, height) 
    10096            cam.setViewPort(viewport) 
     
    117113        text = self.engine.getGuiManager().\ 
    118114                        createFont('fonts/rpgfont.png', 0, \ 
    119                                    Settings.get("FIFE", "FontGlyphs")) 
     115                                   self.model.settings.fife.FontGlyphs) 
    120116        rend.changeDefaultFont(text) 
    121117        rend.activateAllLayers(self.map) 
Note: See TracChangeset for help on using the changeset viewer.