Rename close window functions to match upstream
This commit is contained in:
@@ -37,18 +37,14 @@ void InputLoop();
|
||||
void InvalidateWindowData(WindowClass cls, WindowNumber number, int data = 0, bool gui_scope = false);
|
||||
void InvalidateWindowClassesData(WindowClass cls, int data = 0, bool gui_scope = false);
|
||||
|
||||
void DeleteNonVitalWindows();
|
||||
void DeleteAllNonVitalWindows();
|
||||
void CloseNonVitalWindows();
|
||||
void CloseAllNonVitalWindows();
|
||||
void DeleteAllMessages();
|
||||
void DeleteConstructionWindows();
|
||||
void DeleteNetworkClientWindows();
|
||||
void CloseConstructionWindows();
|
||||
void CloseNetworkClientWindows();
|
||||
void HideVitalWindows();
|
||||
void ShowVitalWindows();
|
||||
|
||||
inline void CloseNonVitalWindows() { DeleteNonVitalWindows(); }
|
||||
inline void CloseAllNonVitalWindows() { DeleteAllNonVitalWindows(); }
|
||||
inline void CloseConstructionWindows() { DeleteConstructionWindows(); }
|
||||
|
||||
/**
|
||||
* Re-initialize all windows.
|
||||
* @param zoom_changed Set if windows are being re-initialized due to a zoom level changed.
|
||||
@@ -59,12 +55,9 @@ void SetWindowWidgetDirty(WindowClass cls, WindowNumber number, byte widget_inde
|
||||
void SetWindowDirty(WindowClass cls, WindowNumber number);
|
||||
void SetWindowClassesDirty(WindowClass cls);
|
||||
|
||||
void DeleteWindowById(WindowClass cls, WindowNumber number, bool force = true);
|
||||
void DeleteAllWindowsById(WindowClass cls, WindowNumber number, bool force = true);
|
||||
void DeleteWindowByClass(WindowClass cls);
|
||||
|
||||
inline void CloseWindowById(WindowClass cls, WindowNumber number, bool force = true) { DeleteWindowById(cls, number, force); }
|
||||
inline void CloseWindowByClass(WindowClass cls) { DeleteWindowByClass(cls); }
|
||||
void CloseWindowById(WindowClass cls, WindowNumber number, bool force = true);
|
||||
void CloseAllWindowsById(WindowClass cls, WindowNumber number, bool force = true);
|
||||
void CloseWindowByClass(WindowClass cls);
|
||||
|
||||
bool FocusWindowById(WindowClass cls, WindowNumber number);
|
||||
|
||||
|
Reference in New Issue
Block a user