Skip to content

Commit 21d1724

Browse files
committed
Fixing circular ref
1 parent 322f89d commit 21d1724

File tree

3 files changed

+286
-286
lines changed

3 files changed

+286
-286
lines changed

source/resource/ui/elements/properties/controls.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

source/resource/ui/grouped-ui.json

Lines changed: 1 addition & 267 deletions
Original file line numberDiff line numberDiff line change
@@ -1,267 +1 @@
1-
{
2-
"title": "UI definition",
3-
"type": "object",
4-
"anyOf": [{ "$ref": "#/definitions/control" }, { "$ref": "#/definitions/animation" }, { "$ref": "#/definitions/control_factory" }],
5-
"definitions": {
6-
"animation": {
7-
"type": "object",
8-
"title": "Animation",
9-
"description": "An animation is a set of keyframes that can be applied to an element.",
10-
"additionalProperties": false,
11-
"required": ["anim_type"],
12-
"patternProperties": {
13-
"^\\$.*": {
14-
"$ref": "./general/variables.json"
15-
}
16-
},
17-
"properties": {
18-
"anim_type": { "$ref": "./elements/properties/anim_type.json" },
19-
"animation_reset_name": { "$ref": "./elements/properties/animation_reset_name.json" },
20-
"destroy_at_end": { "$ref": "./elements/properties/destroy_at_end.json" },
21-
"disable_anim_fast_forward": { "$ref": "./elements/properties/disable_anim_fast_forward.json" },
22-
"duration": { "$ref": "./elements/properties/duration.json" },
23-
"easing": { "$ref": "./elements/properties/easing.json" },
24-
"end_event": { "$ref": "./elements/properties/end_event.json" },
25-
"fps": { "$ref": "./elements/properties/fps.json" },
26-
"frame_count": { "$ref": "./elements/properties/frame_count.json" },
27-
"frame_step": { "$ref": "./elements/properties/frame_step.json" },
28-
"from": { "$ref": "./elements/properties/from.json" },
29-
"initial_uv": { "$ref": "./elements/properties/initial_uv.json" },
30-
"next": { "$ref": "./elements/properties/next.json" },
31-
"play_event": { "$ref": "./elements/properties/play_event.json" },
32-
"propagate_alpha": { "$ref": "./elements/properties/alpha.json" },
33-
"reversible": { "$ref": "./elements/properties/reversible.json" },
34-
"scale_from_starting_alpha": { "$ref": "./elements/properties/scale_from_starting_alpha.json" },
35-
"to": { "$ref": "./elements/properties/to.json" },
36-
"uv": { "$ref": "./elements/properties/uv.json" },
37-
"uv_size": { "$ref": "./elements/properties/uv_size.json" }
38-
}
39-
},
40-
"control": {
41-
"title": "Element",
42-
"description": "An element is a control that can be added to a screen. It can be a button, a label, an image, etc.",
43-
"type": "object",
44-
"propertyNames": {
45-
"examples": ["$variable"]
46-
},
47-
"additionalProperties": false,
48-
"patternProperties": {
49-
"^\\$.*": {
50-
"$ref": "./general/variables.json"
51-
}
52-
},
53-
"properties": {
54-
"allow_clipping": { "$ref": "./elements/properties/allow_clipping.json" },
55-
"allow_scroll_even_when_content_fits": { "$ref": "./elements/properties/allow_scroll_even_when_content_fits.json" },
56-
"alpha": { "$ref": "./elements/properties/alpha.json" },
57-
"always_handle_pointer": { "$ref": "./elements/properties/always_handle_pointer.json" },
58-
"always_handle_scrolling": { "$ref": "./elements/properties/always_handle_scrolling.json" },
59-
"always_listen_to_input": { "$ref": "./elements/properties/always_listen_to_input.json" },
60-
"always_rotate": { "$ref": "./elements/properties/always_rotate.json" },
61-
"anchor_from": { "$ref": "./elements/properties/anchor_from.json" },
62-
"anchor_to": { "$ref": "./elements/properties/anchor_to.json" },
63-
"anims": { "$ref": "./elements/properties/anims.json" },
64-
"background_control": { "$ref": "./elements/properties/background_control.json" },
65-
"background_hover_control": { "$ref": "./elements/properties/background_hover_control.json" },
66-
"backup_font_type": { "$ref": "./elements/properties/backup_font_type.json" },
67-
"bilinear": { "$ref": "./elements/properties/bilinear.json" },
68-
"bindings": { "$ref": "./elements/properties/bindings.json" },
69-
"button_mappings": { "$ref": "./elements/properties/button_mappings.json" },
70-
"cache_screen": { "$ref": "./elements/properties/cache_screen.json" },
71-
"checked_control": { "$ref": "./elements/properties/checked_control.json" },
72-
"checked_hover_control": { "$ref": "./elements/properties/checked_hover_control.json" },
73-
"checked_locked_control": { "$ref": "./elements/properties/checked_locked_control.json" },
74-
"checked_locked_hover_control": { "$ref": "./elements/properties/checked_locked_hover_control.json" },
75-
"clip_direction": { "$ref": "./elements/properties/clip_direction.json" },
76-
"clip_pixelperfect": { "$ref": "./elements/properties/clip_pixelperfect.json" },
77-
"clips_children": { "$ref": "./elements/properties/clips_children.json" },
78-
"close_on_player_hurt": { "$ref": "./elements/properties/close_on_player_hurt.json" },
79-
"collection_index": { "$ref": "./elements/properties/collection_index.json" },
80-
"collection_name": { "$ref": "./elements/properties/collection_name.json" },
81-
"color": { "$ref": "./elements/properties/color.json" },
82-
"consume_hover_events": { "$ref": "./elements/properties/consume_hover_events.json" },
83-
"contained": { "$ref": "./elements/properties/contained.json" },
84-
"control_name": { "$ref": "./elements/properties/control_name.json" },
85-
"controls": { "$ref": "./elements/properties/controls.json" },
86-
"default_control": { "$ref": "./elements/properties/default_control.json" },
87-
"default_focus_precedence": { "$ref": "./elements/properties/default_focus_precedence.json" },
88-
"disable_anim_fast_forward": { "$ref": "./elements/properties/disable_anim_fast_forward.json" },
89-
"draggable": { "$ref": "./elements/properties/draggable.json" },
90-
"dropdown_area": { "$ref": "./elements/properties/dropdown_area.json" },
91-
"dropdown_content_control": { "$ref": "./elements/properties/dropdown_content_control.json" },
92-
"dropdown_name": { "$ref": "./elements/properties/dropdown_name.json" },
93-
"enable_directional_toggling": { "$ref": "./elements/properties/enable_directional_toggling.json" },
94-
"enable_profanity_filter": { "$ref": "./elements/properties/enable_profanity_filter.json" },
95-
"enabled_newline": { "$ref": "./elements/properties/enabled_newline.json" },
96-
"enabled": { "$ref": "./elements/properties/enabled.json" },
97-
"factory": { "$ref": "./elements/properties/factory.json" },
98-
"fill": { "$ref": "./elements/properties/fill.json" },
99-
"focus_change_down": { "$ref": "./elements/properties/focus_change_down.json" },
100-
"focus_change_left": { "$ref": "./elements/properties/focus_change_left.json" },
101-
"focus_change_right": { "$ref": "./elements/properties/focus_change_right.json" },
102-
"focus_change_up": { "$ref": "./elements/properties/focus_change_up.json" },
103-
"focus_container": { "$ref": "./elements/properties/focus_container.json" },
104-
"focus_enabled": { "$ref": "./elements/properties/focus_enabled.json" },
105-
"focus_identifier": { "$ref": "./elements/properties/focus_identifier.json" },
106-
"focus_magnet_enabled": { "$ref": "./elements/properties/focus_magnet_enabled.json" },
107-
"focus_navigation_mode_down": { "$ref": "./elements/properties/focus_navigation_mode_down.json" },
108-
"focus_navigation_mode_left": { "$ref": "./elements/properties/focus_navigation_mode_left.json" },
109-
"focus_navigation_mode_right": { "$ref": "./elements/properties/focus_navigation_mode_right.json" },
110-
"focus_navigation_mode_up": { "$ref": "./elements/properties/focus_navigation_mode_up.json" },
111-
"focus_wrap_enabled": { "$ref": "./elements/properties/focus_wrap_enabled.json" },
112-
"font_scale_factor": { "$ref": "./elements/properties/font_scale_factor.json" },
113-
"font_size": { "$ref": "./elements/properties/font_size.json" },
114-
"font_type": { "$ref": "./elements/properties/font_type.json" },
115-
"force_render_below": { "$ref": "./elements/properties/force_render_below.json" },
116-
"force_texture_reload": { "$ref": "./elements/properties/force_texture_reload.json" },
117-
"grid_dimension_binding": { "$ref": "./elements/properties/grid_dimension_binding.json" },
118-
"grid_dimensions": { "$ref": "./elements/properties/grid_dimensions.json" },
119-
"grid_item_template": { "$ref": "./elements/properties/grid_item_template.json" },
120-
"grid_position": { "$ref": "./elements/properties/grid_position.json" },
121-
"grid_rescaling_type": { "$ref": "./elements/properties/grid_rescaling_type.json" },
122-
"handle_deselect": { "$ref": "./elements/properties/handle_deselect.json" },
123-
"handle_select": { "$ref": "./elements/properties/handle_select.json" },
124-
"hide_hyphen": { "$ref": "./elements/properties/hide_hyphen.json" },
125-
"hover_alpha": { "$ref": "./elements/properties/alpha.json" },
126-
"hover_color": { "$ref": "./elements/properties/color.json" },
127-
"hover_control": { "$ref": "./elements/properties/hover_control.json" },
128-
"hover_enabled": { "$ref": "./elements/properties/hover_enabled.json" },
129-
"ignored": { "$ref": "./elements/properties/ignored.json" },
130-
"images": { "$ref": "./elements/properties/images.json" },
131-
"indent_control": { "$ref": "./elements/properties/indent_control.json" },
132-
"inherit_max_sibling_height": { "$ref": "./elements/properties/inherit_max_sibling_height.json" },
133-
"inherit_max_sibling_width": { "$ref": "./elements/properties/inherit_max_sibling_width.json" },
134-
"is_modal": { "$ref": "./elements/properties/is_modal.json" },
135-
"is_showing_menu": { "$ref": "./elements/properties/is_showing_menu.json" },
136-
"jump_to_bottom_on_update": { "$ref": "./elements/properties/jump_to_bottom_on_update.json" },
137-
"keep_ratio": { "$ref": "./elements/properties/keep_ratio.json" },
138-
"layer": { "$ref": "./elements/properties/layer.json" },
139-
"localize": { "$ref": "./elements/properties/localize.json" },
140-
"locked_alpha": { "$ref": "./elements/properties/alpha.json" },
141-
"locked_color": { "$ref": "./elements/properties/color.json" },
142-
"locked_control": { "$ref": "./elements/properties/locked_control.json" },
143-
"low_frequency_rendering": { "$ref": "./elements/properties/low_frequency_rendering.json" },
144-
"max_length": { "$ref": "./elements/properties/max_length.json" },
145-
"max_size": { "$ref": "./elements/properties/max_size.json" },
146-
"maximum_grid_items": { "$ref": "./elements/properties/maximum_grid_items.json" },
147-
"min_size": { "$ref": "./elements/properties/min_size.json" },
148-
"modal": { "$ref": "./elements/properties/modal.json" },
149-
"offset": { "$ref": "./elements/properties/offset.json" },
150-
"orientation": { "$ref": "./elements/properties/orientation.json" },
151-
"place_holder_control": { "$ref": "./elements/properties/place_holder_control.json" },
152-
"pressed_alpha": { "$ref": "./elements/properties/alpha.json" },
153-
"pressed_color": { "$ref": "./elements/properties/color.json" },
154-
"pressed_control": { "$ref": "./elements/properties/pressed_control.json" },
155-
"prevent_touch_input": { "$ref": "./elements/properties/prevent_touch_input.json" },
156-
"primary_color": { "$ref": "./elements/properties/color.json" },
157-
"progress_control": { "$ref": "./elements/properties/progress_control.json" },
158-
"progress_hover_control": { "$ref": "./elements/properties/progress_hover_control.json" },
159-
"propagate_alpha": { "$ref": "./elements/properties/alpha.json" },
160-
"property_bag": { "$ref": "./elements/properties/property_bag.json" },
161-
"radio_toggle_group": { "$ref": "./elements/properties/radio_toggle_group.json" },
162-
"render_game_behind": { "$ref": "./elements/properties/render_game_behind.json" },
163-
"render_only_when_topmost": { "$ref": "./elements/properties/render_only_when_topmost.json" },
164-
"renderer": { "$ref": "./elements/properties/renderer.json" },
165-
"reset_event": { "$ref": "./elements/properties/reset_event.json" },
166-
"reset_on_focus_lost": { "$ref": "./elements/properties/reset_on_focus_lost.json" },
167-
"rotate_speed": { "$ref": "./elements/properties/rotate_speed.json" },
168-
"screen_draws_last": { "$ref": "./elements/properties/screen_draws_last.json" },
169-
"screen_not_flushable": { "$ref": "./elements/properties/screen_not_flushable.json" },
170-
"scroll_box_and_track_panel": { "$ref": "./elements/properties/scroll_box_and_track_panel.json" },
171-
"scroll_content": { "$ref": "./elements/properties/scroll_content.json" },
172-
"scroll_speed": { "$ref": "./elements/properties/scroll_speed.json" },
173-
"scroll_view_port": { "$ref": "./elements/properties/scroll_view_port.json" },
174-
"scrollbar_box": { "$ref": "./elements/properties/scrollbar_box.json" },
175-
"scrollbar_touch_button": { "$ref": "./elements/properties/scrollbar_touch_button.json" },
176-
"scrollbar_track_button": { "$ref": "./elements/properties/scrollbar_track_button.json" },
177-
"scrollbar_track": { "$ref": "./elements/properties/scrollbar_track.json" },
178-
"send_telemetry": { "$ref": "./elements/properties/send_telemetry.json" },
179-
"shadow": { "$ref": "./elements/properties/shadow.json" },
180-
"should_steal_mouse": { "$ref": "./elements/properties/should_steal_mouse.json" },
181-
"size": { "$ref": "./elements/properties/size.json" },
182-
"slider_box_control": { "$ref": "./elements/properties/slider_box_control.json" },
183-
"slider_collection_name": { "$ref": "./elements/properties/slider_collection_name.json" },
184-
"slider_deselected_button": { "$ref": "./elements/properties/slider_deselected_button.json" },
185-
"slider_direction": { "$ref": "./elements/properties/slider_direction.json" },
186-
"slider_name": { "$ref": "./elements/properties/slider_name.json" },
187-
"slider_select_on_hover": { "$ref": "./elements/properties/slider_select_on_hover.json" },
188-
"slider_selected_button": { "$ref": "./elements/properties/slider_selected_button.json" },
189-
"slider_small_decrease_button": { "$ref": "./elements/properties/slider_small_decrease_button.json" },
190-
"slider_small_increase_button": { "$ref": "./elements/properties/slider_small_increase_button.json" },
191-
"slider_steps": { "$ref": "./elements/properties/slider_steps.json" },
192-
"slider_track_button": { "$ref": "./elements/properties/slider_track_button.json" },
193-
"sound_name": { "$ref": "./elements/properties/sound_name.json" },
194-
"sound_pitch": { "$ref": "./elements/properties/sound_pitch.json" },
195-
"sound_volume": { "$ref": "./elements/properties/sound_volume.json" },
196-
"text_alignment": { "$ref": "./elements/properties/text_alignment.json" },
197-
"text_box_name": { "$ref": "./elements/properties/text_box_name.json" },
198-
"text_control": { "$ref": "./elements/properties/text_control.json" },
199-
"text_edit_box_grid_collection_name": { "$ref": "./elements/properties/text_edit_box_grid_collection_name.json" },
200-
"text_labels": { "$ref": "./elements/properties/text_labels.json" },
201-
"text_type": { "$ref": "./elements/properties/text_type.json" },
202-
"text": { "$ref": "./elements/properties/text.json" },
203-
"texture_file_system": { "$ref": "./elements/properties/texture_file_system.json" },
204-
"texture": { "$ref": "./elements/properties/texture.json" },
205-
"tiled": { "$ref": "./elements/properties/tiled.json" },
206-
"toggle_default_state": { "$ref": "./elements/properties/toggle_default_state.json" },
207-
"toggle_grid_collection_name": { "$ref": "./elements/properties/toggle_grid_collection_name.json" },
208-
"toggle_group_default_selected": { "$ref": "./elements/properties/toggle_group_default_selected.json" },
209-
"toggle_group_forced_index": { "$ref": "./elements/properties/toggle_group_forced_index.json" },
210-
"toggle_name": { "$ref": "./elements/properties/toggle_name.json" },
211-
"toggle_off_button": { "$ref": "./elements/properties/toggle_off_button.json" },
212-
"toggle_on_button": { "$ref": "./elements/properties/toggle_on_button.json" },
213-
"touch_mode": { "$ref": "./elements/properties/touch_mode.json" },
214-
"tts_control_header": { "$ref": "./elements/properties/tts/control_header.json" },
215-
"tts_control_type_order_priority": { "$ref": "./elements/properties/tts/control_type_order_priority.json" },
216-
"tts_ignore_count": { "$ref": "./elements/properties/tts/ignore_count.json" },
217-
"tts_ignore_subsections": { "$ref": "./elements/properties/tts/ignore_subsections.json" },
218-
"tts_index_priority": { "$ref": "./elements/properties/tts/index_priority.json" },
219-
"tts_inherit_siblings": { "$ref": "./elements/properties/tts/inherit_siblings.json" },
220-
"tts_name": { "$ref": "./elements/properties/tts/name.json" },
221-
"tts_override_control_value": { "$ref": "./elements/properties/tts/override_control_value.json" },
222-
"tts_section_header": { "$ref": "./elements/properties/tts/section_header.json" },
223-
"tts_toggle_off": { "$ref": "./elements/properties/tts/toggle_off.json" },
224-
"tts_toggle_on": { "$ref": "./elements/properties/tts/toggle_on.json" },
225-
"tts_value_changed": { "$ref": "./elements/properties/tts/value_changed.json" },
226-
"tts_value_order_priority": { "$ref": "./elements/properties/tts/value_order_priority.json" },
227-
"ttsSectionContainer": { "$ref": "./elements/properties/ttsSectionContainer.json" },
228-
"type": { "$ref": "./elements/properties/type.json" },
229-
"unchecked_control": { "$ref": "./elements/properties/unchecked_control.json" },
230-
"unchecked_hover_control": { "$ref": "./elements/properties/unchecked_hover_control.json" },
231-
"unchecked_locked_control": { "$ref": "./elements/properties/unchecked_locked_control.json" },
232-
"unchecked_locked_hover_control": { "$ref": "./elements/properties/unchecked_locked_hover_control.json" },
233-
"use_anchored_offset": { "$ref": "./elements/properties/use_anchored_offset.json" },
234-
"use_last_focus": { "$ref": "./elements/properties/use_last_focus.json" },
235-
"uv_size": { "$ref": "./elements/properties/uv_size.json" },
236-
"uv": { "$ref": "./elements/properties/uv.json" },
237-
"variables": { "$ref": "./elements/properties/variables.json" },
238-
"virtual_keyboard_buffer_control": { "$ref": "./elements/properties/virtual_keyboard_buffer_control.json" },
239-
"visible": { "$ref": "./elements/properties/visible.json" },
240-
"zip_folder": { "$ref": "./elements/properties/zip_folder.json" }
241-
}
242-
},
243-
"control_factory": {
244-
"title": "Control Factory",
245-
"type": "object",
246-
"propertyNames": {
247-
"examples": ["$variable"]
248-
},
249-
"additionalProperties": false,
250-
"patternProperties": {
251-
"^\\$.*": {
252-
"$ref": "./general/variables.json"
253-
}
254-
},
255-
"properties": {
256-
"type": {
257-
"title": "Type",
258-
"description": "The type of the element",
259-
"type": "string",
260-
"enum": ["factory"]
261-
},
262-
"control_ids": { "$ref": "./elements/properties/control_ids.json" },
263-
"control_name": { "$ref": "./elements/properties/control_name.json" }
264-
}
265-
}
266-
}
267-
}
1+
{}

0 commit comments

Comments
 (0)