Skip to content

Commit 0c2eaf3

Browse files
committed
SSS Rework FOMOD GUI
Depends on inf-wx-begone, rewrites most of the GUI to use the wrappers instead. Drops a whole bunch of wx usages, which is nice. RadioButton needs wrapping, see all the ugly hacks at the bottom of gui_fomod. Also, the design that uses __dict__ of wx objects to store group objects has to go, it's fundamentally hacky and very fragile - e.g. imagine if the wx guys decided to add __slots__ to their objects. Also contains a bunch of fixes and misc improvements, e.g. user-facing strings have been made translatable, some bugs that were carried over from belt have been fixed, and the 'Back' button no longer works on the first page. Note the glaring TODOs - this is a straight up port of the original GUI, but we currently don't have a way to change fonts, which the original GUI relied on to differentiate its components. I added some HBoxedLayouts as an alternative, which works fine for the main FOMOD dialog and may even be an improvement in terms of visual clarity, but doesn't help at all with the results screen, which is now an unreadable mess.
1 parent 7e82cce commit 0c2eaf3

3 files changed

Lines changed: 162 additions & 200 deletions

File tree

Mopy/bash/balt.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3069,6 +3069,7 @@ class Events(object):
30693069
WIZARD_CANCEL = 'wizard_cancel'
30703070
WIZARD_FINISHED = 'wizard_finished'
30713071
WIZARD_PAGE_CHANGING = 'wizard_page_changing'
3072+
HOVER = 'hover'
30723073
# TODO(nycz): possibly too specific stuff here, what do?
30733074
# also the names here... ugh. needless to say its very wip
30743075
COMBOBOX_CHOICE = 'combobox_choice'
@@ -3086,6 +3087,7 @@ class Events(object):
30863087
Events.WIZARD_CANCEL: wiz.EVT_WIZARD_CANCEL,
30873088
Events.WIZARD_FINISHED: wiz.EVT_WIZARD_FINISHED,
30883089
Events.WIZARD_PAGE_CHANGING: wiz.EVT_WIZARD_PAGE_CHANGING,
3090+
Events.HOVER: wx.EVT_ENTER_WINDOW,
30893091
Events.COMBOBOX_CHOICE: wx.EVT_COMBOBOX,
30903092
Events.COLORPICKER_CHANGED: wx.EVT_COLOURPICKER_CHANGED,
30913093
}

0 commit comments

Comments
 (0)