Changeset 775


Ignore:
Timestamp:
03/01/11 22:46:01 (8 years ago)
Author:
technomage
Message:

Patch by Technomage

  • Fixed PARPGApplication.loadFonts to actually *load* fonts - the previous version of function didn't give the correct file path to pychan.loadFonts;
  • Replaced white text on the main menu for the "New Game" and "Wuit" buttons with black text that is easier to see;
  • Deleted duplicate "Font" line in settings.ini;
Location:
branches/active/character_customization/game
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/active/character_customization/game/gui/main_menu.xml

    r740 r775  
    1212                <!-- by adding hexpand, buttons get resized to size of hbox (which is what I want) but I don't know why)--> 
    1313        <VBox name="leftPage" hexpand="1" max_size="312,474" min_size="312,474" padding="8" opaque="0"> 
    14           <Button base_color="0,0,0,0" name="newButton" text="New Game"/> 
     14          <Button base_color="0,0,0,0" name="newButton" text="New Game" font="OldTypewriter"/> 
    1515          <Button name="loadButton" text="Load Game"/> 
    1616          <Button name="optionsButton" text="Settings"/> 
     
    2222      <HBox name="bottomTabs" min_size="0,30" opaque="0"> 
    2323          <!-- the tabl below is supposed to be at bottom left.. for now? --> 
    24           <ImageButton max_size="50,50" text="Quit" name="quitButton" up_image="gui/notebook/tabs/tab4_bg_dark_bottom.png" hover_image="gui/notebook/tabs/tab4_bg_normal_bottom.png" down_image="gui/notebook/tabs/tab4_bg_normal_bottom.png" /> 
     24          <ImageButton max_size="50,50" text="Quit" name="quitButton" font="OldTypewriter" up_image="gui/notebook/tabs/tab4_bg_dark_bottom.png" hover_image="gui/notebook/tabs/tab4_bg_normal_bottom.png" down_image="gui/notebook/tabs/tab4_bg_normal_bottom.png" /> 
    2525          </HBox> 
    2626    </VBox> 
  • branches/active/character_customization/game/parpg/application.py

    r771 r775  
    153153            base_name, extension = os.path.splitext(file_name) 
    154154            if extension == '.fontdef': 
    155                 pychan.loadFonts(file_name) 
     155                file_path = os.path.join(fonts_directory, file_name) 
     156                pychan.loadFonts(file_path) 
    156157 
    157158    def loadSettings(self): 
  • branches/active/character_customization/game/settings.ini

    r772 r775  
    1414WindowTitle = PARPG Demo 
    1515WindowIcon = gui/icons/window_icon.png 
    16 Font = fonts/oldtypewriter.ttf 
    1716Font = fonts/oldtypewriter.ttf 
    1817FontsDirectory = fonts/ 
Note: See TracChangeset for help on using the changeset viewer.