mirror of https://github.com/OpenTTD/OpenTTD
(svn r16011) -Codechange: Extracting widget number enums from the window classes.
parent
69ad98ecd5
commit
9acb1dc3f2
|
@ -192,8 +192,6 @@ void MusicLoop()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct MusicTrackSelectionWindow : public Window {
|
|
||||||
private:
|
|
||||||
enum MusicTrackSelectionWidgets {
|
enum MusicTrackSelectionWidgets {
|
||||||
MTSW_CLOSE,
|
MTSW_CLOSE,
|
||||||
MTSW_CAPTION,
|
MTSW_CAPTION,
|
||||||
|
@ -210,7 +208,7 @@ private:
|
||||||
MTSW_SAVE,
|
MTSW_SAVE,
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
struct MusicTrackSelectionWindow : public Window {
|
||||||
MusicTrackSelectionWindow(const WindowDesc *desc, WindowNumber number) : Window(desc, number)
|
MusicTrackSelectionWindow(const WindowDesc *desc, WindowNumber number) : Window(desc, number)
|
||||||
{
|
{
|
||||||
this->FindWindowPlacementAndResize(desc);
|
this->FindWindowPlacementAndResize(desc);
|
||||||
|
@ -350,8 +348,6 @@ static void ShowMusicTrackSelection()
|
||||||
AllocateWindowDescFront<MusicTrackSelectionWindow>(&_music_track_selection_desc, 0);
|
AllocateWindowDescFront<MusicTrackSelectionWindow>(&_music_track_selection_desc, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct MusicWindow : public Window {
|
|
||||||
private:
|
|
||||||
enum MusicWidgets {
|
enum MusicWidgets {
|
||||||
MW_CLOSE,
|
MW_CLOSE,
|
||||||
MW_CAPTION,
|
MW_CAPTION,
|
||||||
|
@ -373,7 +369,7 @@ private:
|
||||||
MW_CUSTOM2,
|
MW_CUSTOM2,
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
struct MusicWindow : public Window {
|
||||||
MusicWindow(const WindowDesc *desc, WindowNumber number) : Window(desc, number)
|
MusicWindow(const WindowDesc *desc, WindowNumber number) : Window(desc, number)
|
||||||
{
|
{
|
||||||
this->FindWindowPlacementAndResize(desc);
|
this->FindWindowPlacementAndResize(desc);
|
||||||
|
|
Loading…
Reference in New Issue