HomeWildfire Games

Delete 27 invalid style settings and add LOGWARNING to inform future authors.

Description

Delete 27 invalid style settings and add LOGWARNING to inform future authors.

Unify the two IGUIObject::LoadStyle functions and remove CGUI argument that is always identical to the member.

Differential Revision: https://code.wildfiregames.com/D2232
Tested on: gcc 9.1.0., clang 8.0.1, Jenkins

Event Timeline

Stan added a subscriber: Stan.Sep 16 2019, 11:37 AM

When opening the save game dialog I get this warning

WARNING: GUI object has no setting "sprite_heading", but the style "ModernList" defines it
elexis added a comment.EditedSep 16 2019, 11:45 AM

-> D2290

(It's because the style defines properties for COList but that dialog uses that style for an `CList, so either one insists on that being a feature and reverts this warning, specifies a new style for CList, or makes the COList feature available to the other dialog too, and in that case one can fix it by deleting the entire folder (ok, moving few lines of code over).)