Some refactoring to have UiSpriteObject and UiFontObject derive from a generic UiObject.
Refactor to have UiSpriteObject and UiFontObject wrapped inside a UiElement.