0ad/source/gui/ObjectTypes
wraitii cdd75deafb XMB Improvements, parse JS into XMB, make strings more efficient.
XMB format is bumped to 4, invalidating all cached files. The
differences are:
 - element/attribute names are stored after the elements themselves, and
not before. This allows writing XMB data in one pass instead of two.
 - names themselves becomes offsets (instead of arbitrary integers),
making getting the string from the int name much more efficient.

XMBFile is renamed to XMBData to clarify that it does not, in fact,
refer to a file on disk.

XMBData::GetElementString is also changed to return a const char*, thus
not creating an std::string. A string_view version is added where
convenient.

The XML->XMB and JS->XMB conversion functions and the corresponding
storage are moved to `ps/XMB`, since that format doesn't particularly
relate to XML. CXeromyces becomes lighter and more focused as a result.
The XML->XMB conversion also benefits from the above streamlining.

Note that in a few cases, string_view gets printed to CLogger via
data(), which is generally not legal, but we know that the strings are
null-terminated here. Our libfmt (version 4) doesn't support
string_view, that would be v5.

Differential Revision: https://code.wildfiregames.com/D3909
This was SVN commit r25375.
2021-05-04 13:02:34 +00:00
..
CButton.cpp Simplify GUI Proxy implementation & customisation. 2021-04-09 18:01:47 +00:00
CButton.h Simplify GUI Proxy implementation & customisation. 2021-04-09 18:01:47 +00:00
CChart.cpp Removes unused shadow settings forgotten in 12e2428495, removes direct SkipSubmit access. 2021-04-14 20:25:05 +00:00
CChart.h Replaces CPos by more a consistent CVector2D, reduces geometry code duplication. 2021-03-28 21:55:13 +00:00
CCheckBox.cpp Removes unused and limited cell sprite functionality. 2021-03-27 11:38:34 +00:00
CCheckBox.h Removes unused and limited cell sprite functionality. 2021-03-27 11:38:34 +00:00
CDropDown.cpp Draws scrollbar above list to have a correct order for Z sorting after a6cb77a204. 2021-04-23 06:56:01 +00:00
CDropDown.h Replaces CPos by more a consistent CVector2D, reduces geometry code duplication. 2021-03-28 21:55:13 +00:00
CGUIDummyObject.h Sort GUI Object types, GUI Object bases and GUI Setting value types into three new folders. 2019-10-02 09:44:00 +00:00
CHotkeyPicker.cpp Fix usage of remove_if in CHotkeyPicker 2020-12-11 10:02:05 +00:00
CHotkeyPicker.h Further header & precompiled cleanup, fix no-PCH builds. 2020-12-09 14:39:14 +00:00
CImage.cpp Removes unused and limited cell sprite functionality. 2021-03-27 11:38:34 +00:00
CImage.h Removes unused and limited cell sprite functionality. 2021-03-27 11:38:34 +00:00
CInput.cpp Further hotkey work: clear hotkeys when an input box/the console gets focus. 2021-04-03 20:12:40 +00:00
CInput.h Removes unused and limited cell sprite functionality. 2021-03-27 11:38:34 +00:00
CList.cpp Draws scrollbar above list to have a correct order for Z sorting after a6cb77a204. 2021-04-23 06:56:01 +00:00
CList.h Simplify GUI Proxy implementation & customisation. 2021-04-09 18:01:47 +00:00
CMiniMap.cpp Revert 895182cbcb 2021-04-25 13:42:51 +00:00
CMiniMap.h Crops minimap view bounds to map size. 2021-04-12 12:39:07 +00:00
COList.cpp XMB Improvements, parse JS into XMB, make strings more efficient. 2021-05-04 13:02:34 +00:00
COList.h Remove counterproductive lowercasing of GUI ScriptEvent names, refs #127. 2020-01-15 16:00:37 +00:00
CProgressBar.cpp Removes unused and limited cell sprite functionality. 2021-03-27 11:38:34 +00:00
CProgressBar.h Rename CProgressBar numeric "caption" setting to "progress" to distinguish it from the Button, Input, Text and Tooltip "caption" setting values that are tag-formatted texts. 2019-11-12 16:53:19 +00:00
CRadioButton.cpp Sort GUI Object types, GUI Object bases and GUI Setting value types into three new folders. 2019-10-02 09:44:00 +00:00
CRadioButton.h Sort GUI Object types, GUI Object bases and GUI Setting value types into three new folders. 2019-10-02 09:44:00 +00:00
CSlider.cpp Replaces CPos by more a consistent CVector2D, reduces geometry code duplication. 2021-03-28 21:55:13 +00:00
CSlider.h Replaces CPos by more a consistent CVector2D, reduces geometry code duplication. 2021-03-28 21:55:13 +00:00
CText.cpp Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
CText.h Generalize icon-specific tooltips to a tag, streamline code. 2021-05-01 12:38:05 +00:00
CTooltip.cpp Draws GUI elements by Z order. 2021-04-11 11:27:53 +00:00
CTooltip.h Draws GUI elements by Z order. 2021-04-11 11:27:53 +00:00