1
0
forked from 0ad/0ad
0ad/source/gui
elexis 0cfe9ab153 Expose the same ReadJSONFile function to simulation, GUI and rmgen.
This way globalscripts/ can use the same code in all contexts, all paths
are absolute and only one function name is needed.
Remove ReadCivJSONFile which is redundant with this function as well.
Restrict read access of rmgen/ to rmgen/ and simulation/, refs
4275a8a33c, 89055ef858.

Refs #4868
Differential Revision: https://code.wildfiregames.com/D1085
Reviewed By: wraitii
Partial agreement with leper

This was SVN commit r20576.
2017-12-03 23:02:27 +00:00
..
scripting Expose the same ReadJSONFile function to simulation, GUI and rmgen. 2017-12-03 23:02:27 +00:00
tests Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
CButton.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CButton.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CChart.cpp Fix oversight in 16afbf32c8 noticed by Geramoto 2017-11-27 19:51:21 +00:00
CChart.h Bump year number of files changed this year in the license headers. 2017-05-01 14:28:22 +00:00
CCheckBox.cpp GUI cleanup. 2016-06-21 14:38:06 +00:00
CCheckBox.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CDropDown.cpp Fix scrollbare edgy-case and off by 1's in dropdown 2017-11-21 20:07:23 +00:00
CDropDown.h Fix dropdown list height after resizing the window (in case there is an item that used wordwrapping before but not after the resize or vice versa). 2017-06-29 23:39:12 +00:00
CGUI.cpp Use direct gui.scale instead of reciprocal gui.scale 2017-06-14 17:13:44 +00:00
CGUI.h Fix few typos found with the Debian lintian tool. 2017-10-28 22:34:57 +00:00
CGUIList.h Add GPL header 2009-04-18 17:00:33 +00:00
CGUIScrollBarVertical.cpp GUI engine cleanup. 2016-06-07 15:57:33 +00:00
CGUIScrollBarVertical.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CGUISeries.h Fix [19027] by using generic code for conversions and fixing a few other issues. Refs #3403. Reviewed by leper. 2017-01-06 11:14:03 +00:00
CGUISprite.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CGUISprite.h Allow multiple special sprites, to facilitate cases where we want to add an overlay to a sprite. 2015-12-13 16:03:17 +00:00
CImage.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CImage.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CInput.cpp Add FALLTHROUGH, which in the best case is just [[fallthrough]]. 2017-09-01 20:04:53 +00:00
CInput.h Implement readonly Input GUI objects and use it in the file location indicator in the replay menu, 2017-08-29 23:53:23 +00:00
CList.cpp JS lobby cleanup, fixes and lobby bot performance improvements: 2017-06-29 02:58:04 +00:00
CList.h Get the index of the hovered element in GUI lists and use it to display item-specific tooltips in the gamesetup for the victory condition, maptype and starting resources. 2017-05-15 21:49:10 +00:00
COList.cpp Allow hiding of list columns via XML or JS. 2017-03-28 00:25:17 +00:00
COList.h Major ordered list GUI cleanup. Patch by Imarok, fixes #3905. 2016-08-31 19:29:48 +00:00
CProgressBar.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CProgressBar.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CRadioButton.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CRadioButton.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CSlider.cpp Add sliders to the GUI. Use them for the sound/music volume controls. 2017-04-30 16:51:18 +00:00
CSlider.h Add sliders to the GUI. Use them for the sound/music volume controls. 2017-04-30 16:51:18 +00:00
CText.cpp Scroll to the top when switching between tabs in the credits. Patch by vladislavbelov 2016-12-11 21:15:50 +00:00
CText.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CTooltip.cpp Take gui.scale into account when repositioning tooltips 2017-07-29 18:30:59 +00:00
CTooltip.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUI.h Add C++ GUI code for drawing charts. Patch by vladislavbelov. JS will come later. Refs #3403 2016-12-07 19:03:54 +00:00
GUIbase.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUIbase.h Allow the GUI to subscribe to text edit events to redeem three workarounds in the options page. 2017-09-01 12:06:18 +00:00
GUIManager.cpp Allow the JS GUI to subscribe to the window resized event and use it to conditionally update the observer panel (refs D689). 2017-06-30 00:04:29 +00:00
GUIManager.h Pass some strings and a vector as const refs. 2017-02-24 17:02:10 +00:00
GUIRenderer.cpp Allow multiple special sprites, to facilitate cases where we want to add an overlay to a sprite. 2015-12-13 16:03:17 +00:00
GUIRenderer.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUItext.cpp Add FALLTHROUGH, which in the best case is just [[fallthrough]]. 2017-09-01 20:04:53 +00:00
GUItext.h Ignore color and font tags when typing something in a Dropdown gui element to select an item. 2017-05-09 13:29:19 +00:00
GUITooltip.cpp Tooltip GUI engine cleanup. 2016-06-15 15:40:05 +00:00
GUITooltip.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUItypes.h Add C++ GUI code for drawing charts. Patch by vladislavbelov. JS will come later. Refs #3403 2016-12-07 19:03:54 +00:00
GUIutil.cpp Use direct gui.scale instead of reciprocal gui.scale 2017-06-14 17:13:44 +00:00
GUIutil.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUIButtonBehavior.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUIButtonBehavior.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUIObject.cpp Use direct gui.scale instead of reciprocal gui.scale 2017-06-14 17:13:44 +00:00
IGUIObject.h Replace deprecated jsval with JS::Value. 2017-08-28 10:27:36 +00:00
IGUIScrollBar.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUIScrollBar.h Fix scrollbare edgy-case and off by 1's in dropdown 2017-11-21 20:07:23 +00:00
IGUIScrollBarOwner.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUIScrollBarOwner.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUITextOwner.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUITextOwner.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
MiniMap.cpp Use direct gui.scale instead of reciprocal gui.scale 2017-06-14 17:13:44 +00:00
MiniMap.h Update the Minimap texture if the waterheight has changed. 2017-04-16 22:13:32 +00:00