Changeset 348:e61f95503461


Ignore:
Timestamp:
Sep 5, 2009, 11:17:31 PM (11 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@349
Message:

Add fences to price list. Tidying up price list dialog a little.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/gameboard.py

    r346 r348  
    164164        tbl = gui.Table()
    165165        tbl.tr()
    166         doc = gui.Document(width=400)
     166        doc = gui.Document(width=380)
    167167        space = doc.style.font.size(" ")
    168168        for header in ['Item', 'Buy Price', 'Sell Price']:
     
    179179            doc.add(make_box('%d' % equip.SELL_PRICE))
    180180            doc.br(space[1])
     181
     182        doc.add(make_box("Fence"))
     183        doc.add(make_box('%d' % constants.BUY_PRICE_FENCE))
     184        doc.add(make_box('%d' % constants.SELL_PRICE_FENCE))
     185
     186        doc.add(make_box("Repair Fence"))
     187        doc.add(make_box('%d' % constants.REPAIR_PRICE_FENCE))
     188        doc.add(make_box(''))
     189
    181190        fix_widths(doc)
    182         for word in "Damaged equipment will be sold for less than" \
    183                 " the sell price.".split():
     191        for word in "Damaged equipment or broken fences will be sold for" \
     192                " less than the sell price.".split():
    184193            doc.add(gui.Label(word))
    185194            doc.space(space)
    186195        close_button = gui.Button("Close")
    187         tbl.td(doc, colspan=3)
     196        tbl.td(doc)
    188197        tbl.tr()
    189         tbl.td(gui.Label(''))
    190         tbl.td(gui.Label(''))
    191         tbl.td(close_button)
     198        tbl.td(close_button, align=1)
    192199        dialog = gui.Dialog(gui.Label('Price Reference'), tbl)
    193200        close_button.connect(gui.CLICK, dialog.close)
Note: See TracChangeset for help on using the changeset viewer.