mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
+6
-1
@@ -1181,6 +1181,9 @@ MiniEditor::MiniEditor(wxWindow *parent, const wxString& title, wxPoint pos, wxS
|
||||
SetIcon(wxIconLocation("LOOT.exe"));
|
||||
|
||||
SetSizerAndFit(bigBox);
|
||||
|
||||
if (size != wxDefaultSize)
|
||||
SetSize(size);
|
||||
}
|
||||
|
||||
void MiniEditor::OnApply(wxCommandEvent& event) {
|
||||
@@ -1228,7 +1231,9 @@ FullEditor::FullEditor(wxWindow *parent, const wxString& title, wxPoint pos, wxS
|
||||
SetIcon(wxIconLocation("LOOT.exe"));
|
||||
|
||||
SetSizerAndFit(bigBox);
|
||||
Layout();
|
||||
|
||||
if (size != wxDefaultSize)
|
||||
SetSize(size);
|
||||
}
|
||||
|
||||
void FullEditor::OnQuit(wxCommandEvent& event) {
|
||||
|
||||
+6
-2
@@ -552,8 +552,12 @@ Launcher::Launcher(const wxChar *title, YAML::Node& settings, Game * game, vecto
|
||||
//Now set the layout and sizes.
|
||||
SetMenuBar(MenuBar);
|
||||
SetBackgroundColour(wxColour(255,255,255));
|
||||
SetSizerAndFit(buttonBox);
|
||||
SetSize(wxSize(250, 200));
|
||||
SetSizerAndFit(buttonBox);
|
||||
|
||||
if (size != wxDefaultSize)
|
||||
SetSize(size);
|
||||
else
|
||||
SetSize(wxSize(250, 200));
|
||||
|
||||
SortButton->SetFocus();
|
||||
}
|
||||
|
||||
@@ -143,6 +143,9 @@ SettingsFrame::SettingsFrame(wxWindow *parent, const wxString& title, YAML::Node
|
||||
SetBackgroundColour(wxColour(255,255,255));
|
||||
SetIcon(wxIconLocation("LOOT.exe"));
|
||||
SetSizerAndFit(bigBox);
|
||||
|
||||
if (size != wxDefaultSize)
|
||||
SetSize(size);
|
||||
}
|
||||
|
||||
void SettingsFrame::SetDefaultValues() {
|
||||
|
||||
+4
-1
@@ -37,7 +37,10 @@ Viewer::Viewer(wxWindow *parent, const wxString& title, const wxString& url, wxP
|
||||
topsizer->Add(web, 1, wxEXPAND);
|
||||
|
||||
SetSizer(topsizer);
|
||||
SetSize(800,600);
|
||||
if (size != wxDefaultSize)
|
||||
SetSize(size);
|
||||
else
|
||||
SetSize(800, 600);
|
||||
SetIcon(wxIconLocation("LOOT.exe"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user