GUI: Improve layout update for UnknownGameDialog
Previously the dialog was not resized and was just recentered on the screen when the overlay size changed. Now it is properly resized as well.
This commit is contained in:
parent
42cd3e9596
commit
201b347ebd
2 changed files with 92 additions and 46 deletions
|
@ -30,12 +30,16 @@
|
|||
namespace GUI {
|
||||
|
||||
class StaticTextWidget;
|
||||
class ScrollContainerWidget;
|
||||
class ButtonWidget;
|
||||
|
||||
class UnknownGameDialog : public Dialog {
|
||||
public:
|
||||
UnknownGameDialog(const DetectionResults &detectionResults);
|
||||
|
||||
private:
|
||||
void rebuild();
|
||||
|
||||
// Dialog API
|
||||
void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data) override;
|
||||
void reflowLayout() override;
|
||||
|
@ -43,7 +47,11 @@ private:
|
|||
Common::String generateBugtrackerURL();
|
||||
|
||||
const DetectionResults &_detectionResults;
|
||||
Common::Array<GUI::StaticTextWidget *> _textWidgets;
|
||||
ScrollContainerWidget *_textContainer;
|
||||
Common::Array<StaticTextWidget *> _textWidgets;
|
||||
ButtonWidget* _openBugTrackerUrlButton;
|
||||
ButtonWidget* _copyToClipboardButton;
|
||||
ButtonWidget* _closeButton;
|
||||
};
|
||||
|
||||
} // End of namespace GUI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue