mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
Background label hide function, Skins fix and combobox hide, messagebox changes, show entergame when reload
This commit is contained in:
@@ -340,14 +340,15 @@ void UIManager::importStyleFromOTML(const OTMLNodePtr& styleNode)
|
||||
styleNode->writeAt("__unique", true);
|
||||
}
|
||||
|
||||
OTMLNodePtr oldStyle = m_styles[name];
|
||||
|
||||
// Warn about redefined styles
|
||||
if(!g_app.isRunning() && !unique) {
|
||||
if(!g_app.isRunning() && (oldStyle && !oldStyle->valueAt("__unique", false))) {
|
||||
auto it = m_styles.find(name);
|
||||
if(it != m_styles.end())
|
||||
g_logger.warning(stdext::format("style '%s' is being redefined", name));
|
||||
}
|
||||
|
||||
OTMLNodePtr oldStyle = m_styles[name];
|
||||
if(!oldStyle || !oldStyle->valueAt("__unique", false) || unique) {
|
||||
OTMLNodePtr originalStyle = getStyle(base);
|
||||
if(!originalStyle)
|
||||
|
Reference in New Issue
Block a user