white_gold 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/dll/tgui.dll +0 -0
- data/ext/so/libtgui.so +0 -0
- data/lib/white_gold/abi/enum.rb +0 -8
- data/lib/white_gold/abi/extern_object.rb +6 -1
- data/lib/white_gold/abi/unpacker.rb +4 -2
- data/lib/white_gold/convention/bang_nest.rb +12 -2
- data/lib/white_gold/convention/bang_nested_caller.rb +34 -34
- data/lib/white_gold/convention/container_widgets.rb +53 -51
- data/lib/white_gold/convention/page.rb +22 -4
- data/lib/white_gold/{dsl → convention}/theme/color_attribute.rb +2 -0
- data/lib/white_gold/{dsl → convention}/theme/outline_attribute.rb +2 -0
- data/lib/white_gold/convention/theme/text_styles_attribute.rb +18 -0
- data/lib/white_gold/{dsl → convention}/theme/texture_attribute.rb +2 -0
- data/lib/white_gold/{dsl → convention}/theme/theme_attributed.rb +4 -18
- data/lib/white_gold/{dsl → convention}/theme/theme_component.rb +14 -3
- data/lib/white_gold/convention/theme_attributes.rb +49 -0
- data/lib/white_gold/convention/tree_node.rb +43 -0
- data/lib/white_gold/convention/widget_like.rb +0 -6
- data/lib/white_gold/dsl/backend_gui.rb +1 -0
- data/lib/white_gold/dsl/button_base.rb +17 -2
- data/lib/white_gold/dsl/canvas.rb +40 -0
- data/lib/white_gold/dsl/chat_box.rb +12 -1
- data/lib/white_gold/dsl/child_window.rb +22 -1
- data/lib/white_gold/dsl/color.rb +5 -2
- data/lib/white_gold/dsl/color_picker.rb +9 -0
- data/lib/white_gold/dsl/combo_box.rb +30 -2
- data/lib/white_gold/dsl/container.rb +17 -11
- data/lib/white_gold/dsl/edit_box.rb +29 -0
- data/lib/white_gold/dsl/file_dialog.rb +17 -0
- data/lib/white_gold/dsl/font.rb +5 -1
- data/lib/white_gold/dsl/grid.rb +3 -3
- data/lib/white_gold/dsl/group.rb +5 -0
- data/lib/white_gold/dsl/knob.rb +10 -0
- data/lib/white_gold/dsl/label.rb +14 -0
- data/lib/white_gold/dsl/list_box.rb +27 -11
- data/lib/white_gold/dsl/list_view.rb +29 -6
- data/lib/white_gold/dsl/menu_bar.rb +21 -48
- data/lib/white_gold/dsl/message_box.rb +8 -2
- data/lib/white_gold/dsl/panel_list_box.rb +3 -3
- data/lib/white_gold/dsl/progress_bar.rb +14 -0
- data/lib/white_gold/dsl/radio_button.rb +25 -0
- data/lib/white_gold/dsl/range_slider.rb +8 -0
- data/lib/white_gold/dsl/scrollbar.rb +19 -0
- data/lib/white_gold/dsl/separator_line.rb +5 -0
- data/lib/white_gold/dsl/sfml/circle_shape.rb +7 -0
- data/lib/white_gold/dsl/sfml/convex_shape.rb +15 -0
- data/lib/white_gold/dsl/sfml/rectangle_shape.rb +7 -0
- data/lib/white_gold/dsl/sfml/shape.rb +19 -0
- data/lib/white_gold/dsl/sfml/text.rb +22 -0
- data/lib/white_gold/dsl/signal/global_signal.rb +1 -1
- data/lib/white_gold/dsl/signal/signal.rb +1 -1
- data/lib/white_gold/dsl/signal/signal_animation_type.rb +1 -1
- data/lib/white_gold/dsl/signal/signal_bool.rb +1 -1
- data/lib/white_gold/dsl/signal/signal_color.rb +1 -1
- data/lib/white_gold/dsl/signal/signal_float.rb +1 -1
- data/lib/white_gold/dsl/signal/signal_int.rb +1 -1
- data/lib/white_gold/dsl/signal/signal_pointer.rb +1 -1
- data/lib/white_gold/dsl/signal/signal_range.rb +1 -1
- data/lib/white_gold/dsl/signal/signal_show_effect.rb +1 -1
- data/lib/white_gold/dsl/signal/signal_string.rb +1 -1
- data/lib/white_gold/dsl/signal/signal_u_int.rb +1 -1
- data/lib/white_gold/dsl/signal/signal_vector2f.rb +1 -1
- data/lib/white_gold/dsl/slider.rb +15 -0
- data/lib/white_gold/dsl/spin_button.rb +14 -0
- data/lib/white_gold/dsl/tab_container.rb +2 -2
- data/lib/white_gold/dsl/tabs.rb +26 -2
- data/lib/white_gold/dsl/text_area.rb +16 -0
- data/lib/white_gold/dsl/theme.rb +11 -51
- data/lib/white_gold/dsl/tree_view.rb +41 -33
- data/lib/white_gold/dsl/widget.rb +81 -39
- data/lib/white_gold/generated/tgui-abi-loader.gf.rb +197 -47
- data/lib/white_gold/library/theme/light.rb +15 -3
- data/lib/white_gold/master.rb +21 -40
- data/lib/white_gold/path/object.path.rb +0 -11
- data/lib/white_gold/tgui-abi.rb +17 -16
- data/lib/white_gold/version.rb +3 -0
- data/lib/white_gold.rb +29 -28
- metadata +26 -39
- data/lib/white_gold/dsl/theme/button_theme.rb +0 -19
- data/lib/white_gold/dsl/theme/chat_box_theme.rb +0 -16
- data/lib/white_gold/dsl/theme/child_window_theme.rb +0 -25
- data/lib/white_gold/dsl/theme/color_picker_theme.rb +0 -14
- data/lib/white_gold/dsl/theme/combo_box_theme.rb +0 -33
- data/lib/white_gold/dsl/theme/common_renderer.rb +0 -7
- data/lib/white_gold/dsl/theme/edit_box_theme.rb +0 -34
- data/lib/white_gold/dsl/theme/file_dialog_theme.rb +0 -22
- data/lib/white_gold/dsl/theme/group_theme.rb +0 -9
- data/lib/white_gold/dsl/theme/knob_theme.rb +0 -15
- data/lib/white_gold/dsl/theme/label_theme.rb +0 -20
- data/lib/white_gold/dsl/theme/list_box_theme.rb +0 -25
- data/lib/white_gold/dsl/theme/list_view_theme.rb +0 -27
- data/lib/white_gold/dsl/theme/menu_bar_theme.rb +0 -21
- data/lib/white_gold/dsl/theme/message_box_theme.rb +0 -11
- data/lib/white_gold/dsl/theme/progress_bar_theme.rb +0 -19
- data/lib/white_gold/dsl/theme/radio_button_theme.rb +0 -30
- data/lib/white_gold/dsl/theme/scrollbar_theme.rb +0 -24
- data/lib/white_gold/dsl/theme/separator_line_theme.rb +0 -9
- data/lib/white_gold/dsl/theme/slider_theme.rb +0 -20
- data/lib/white_gold/dsl/theme/spin_button_theme.rb +0 -19
- data/lib/white_gold/dsl/theme/tabs_theme.rb +0 -29
- data/lib/white_gold/dsl/theme/text_area_theme.rb +0 -22
- data/lib/white_gold/dsl/theme/text_styles_attribute.rb +0 -13
- data/lib/white_gold/dsl/theme/tree_view_theme.rb +0 -26
- data/lib/white_gold/dsl/theme/widget_theme.rb +0 -12
- /data/lib/white_gold/{dsl → convention}/theme/boolean_attribute.rb +0 -0
- /data/lib/white_gold/{dsl → convention}/theme/float_attribute.rb +0 -0
- /data/lib/white_gold/dsl/{checkbox.rb → check_box.rb} +0 -0
@@ -1,21 +0,0 @@
|
|
1
|
-
require_relative 'widget_theme'
|
2
|
-
|
3
|
-
module Tgui
|
4
|
-
class MenuBarTheme < WidgetTheme
|
5
|
-
|
6
|
-
theme_attr :background_color, :color
|
7
|
-
theme_attr :selected_background_color, :color
|
8
|
-
theme_attr :text_color, :color
|
9
|
-
theme_attr :selected_text_color, :color
|
10
|
-
theme_attr :text_color_disabled, :color
|
11
|
-
theme_attr :separator_color, :color
|
12
|
-
theme_attr :texture_background, :texture
|
13
|
-
theme_attr :texture_item_background, :texture
|
14
|
-
theme_attr :texture_selected_item_background, :texture
|
15
|
-
theme_attr :distance_to_side, :float
|
16
|
-
theme_attr :separator_thickness, :float
|
17
|
-
theme_attr :separator_vertical_padding, :float
|
18
|
-
theme_attr :separator_side_padding, :float
|
19
|
-
|
20
|
-
end
|
21
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
require_relative 'widget_theme'
|
2
|
-
|
3
|
-
module Tgui
|
4
|
-
class ProgressBarTheme < WidgetTheme
|
5
|
-
|
6
|
-
theme_attr :borders, :outline
|
7
|
-
theme_attr :text_color, :color
|
8
|
-
theme_attr :text_color_filled, :color
|
9
|
-
theme_attr :background_color, :color
|
10
|
-
theme_attr :fill_color, :color
|
11
|
-
theme_attr :border_color, :color
|
12
|
-
theme_attr :texture_background, :texture
|
13
|
-
theme_attr :texture_fill, :texture
|
14
|
-
theme_attr :text_style, :text_styles
|
15
|
-
theme_attr :text_outline_color, :color
|
16
|
-
theme_attr :text_outline_thickness, :float
|
17
|
-
|
18
|
-
end
|
19
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
require_relative 'widget_theme'
|
2
|
-
|
3
|
-
module Tgui
|
4
|
-
class RadioButtonTheme < WidgetTheme
|
5
|
-
|
6
|
-
theme_attr :borders, :outline
|
7
|
-
theme_attr :text_distance_ratio, :float
|
8
|
-
[ '', :_hover, :_disabled, :_checked, :_checked_hover, :_checked_disabled ].each do |v|
|
9
|
-
theme_attr "text_color#{v}".to_sym, :color
|
10
|
-
theme_attr "background_color#{v}".to_sym, :color
|
11
|
-
theme_attr "border_color#{v}".to_sym, :color
|
12
|
-
end
|
13
|
-
theme_attr :border_color_focused, :color
|
14
|
-
theme_attr :border_color_checked_focused, :color
|
15
|
-
theme_attr :check_color, :color
|
16
|
-
theme_attr :check_color_hover, :color
|
17
|
-
theme_attr :check_color_disabled, :color
|
18
|
-
theme_attr :texture_unchecked, :texture
|
19
|
-
theme_attr :texture_unchecked_hover, :texture
|
20
|
-
theme_attr :texture_unchecked_disabled, :texture
|
21
|
-
theme_attr :texture_unchecked_focused, :texture
|
22
|
-
theme_attr :texture_checked, :texture
|
23
|
-
theme_attr :texture_checked_hover, :texture
|
24
|
-
theme_attr :texture_checked_disabled, :texture
|
25
|
-
theme_attr :texture_checked_focused, :texture
|
26
|
-
theme_attr :text_style, :text_styles
|
27
|
-
theme_attr :text_style_checked, :text_styles
|
28
|
-
|
29
|
-
end
|
30
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
require_relative 'widget_theme'
|
2
|
-
|
3
|
-
module Tgui
|
4
|
-
class ScrollbarTheme < WidgetTheme
|
5
|
-
|
6
|
-
theme_attr :track_color, :color
|
7
|
-
theme_attr :track_color_hover, :color
|
8
|
-
theme_attr :thumb_color, :color
|
9
|
-
theme_attr :thumb_color_hover, :color
|
10
|
-
theme_attr :arrow_background_color, :color
|
11
|
-
theme_attr :arrow_background_color_hover, :color
|
12
|
-
theme_attr :arrow_color, :color
|
13
|
-
theme_attr :arrow_color_hover, :color
|
14
|
-
theme_attr :texture_track, :texture
|
15
|
-
theme_attr :texture_track_hover, :texture
|
16
|
-
theme_attr :texture_thumb, :texture
|
17
|
-
theme_attr :texture_thumb_hover, :texture
|
18
|
-
theme_attr :texture_arrow_up, :texture
|
19
|
-
theme_attr :texture_arrow_up_hover, :texture
|
20
|
-
theme_attr :texture_arrow_down, :texture
|
21
|
-
theme_attr :texture_arrow_down_hover, :texture
|
22
|
-
|
23
|
-
end
|
24
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
require_relative 'widget_theme'
|
2
|
-
|
3
|
-
module Tgui
|
4
|
-
class SliderTheme < WidgetTheme
|
5
|
-
|
6
|
-
theme_attr :borders, :outline
|
7
|
-
theme_attr :track_color, :color
|
8
|
-
theme_attr :track_color_hover, :color
|
9
|
-
theme_attr :thumb_color, :color
|
10
|
-
theme_attr :thumb_color_hover, :color
|
11
|
-
theme_attr :border_color, :color
|
12
|
-
theme_attr :border_color_hover, :color
|
13
|
-
theme_attr :texture_track, :texture
|
14
|
-
theme_attr :texture_track_hover, :texture
|
15
|
-
theme_attr :texture_thumb, :texture
|
16
|
-
theme_attr :texture_thumb_hover, :texture
|
17
|
-
theme_attr :thumb_within_track, :boolean
|
18
|
-
|
19
|
-
end
|
20
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
require_relative 'widget_theme'
|
2
|
-
|
3
|
-
module Tgui
|
4
|
-
class SpinButtonTheme < WidgetTheme
|
5
|
-
|
6
|
-
theme_attr :borders, :outline
|
7
|
-
theme_attr :border_between_arrows, :float
|
8
|
-
theme_attr :background_color, :color
|
9
|
-
theme_attr :background_color_hover, :color
|
10
|
-
theme_attr :arrow_color, :color
|
11
|
-
theme_attr :arrow_color_hover, :color
|
12
|
-
theme_attr :border_color, :color
|
13
|
-
theme_attr :texture_arrow_up, :texture
|
14
|
-
theme_attr :texture_arrow_up_hover, :texture
|
15
|
-
theme_attr :texture_arrow_down, :texture
|
16
|
-
theme_attr :texture_arrow_down_hover, :texture
|
17
|
-
|
18
|
-
end
|
19
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
require_relative 'widget_theme'
|
2
|
-
|
3
|
-
module Tgui
|
4
|
-
class TabsTheme < WidgetTheme
|
5
|
-
|
6
|
-
theme_attr :borders, :outline
|
7
|
-
theme_attr :background_color, :color
|
8
|
-
theme_attr :background_color_hover, :color
|
9
|
-
theme_attr :background_color_disabled, :color
|
10
|
-
theme_attr :selected_background_color, :color
|
11
|
-
theme_attr :selected_background_color_hover, :color
|
12
|
-
theme_attr :text_color, :color
|
13
|
-
theme_attr :text_color_hover, :color
|
14
|
-
theme_attr :text_color_disabled, :color
|
15
|
-
theme_attr :selected_text_color, :color
|
16
|
-
theme_attr :selected_text_color_hover, :color
|
17
|
-
theme_attr :border_color, :color
|
18
|
-
theme_attr :border_color_hover, :color
|
19
|
-
theme_attr :selected_border_color, :color
|
20
|
-
theme_attr :selected_border_color_hover, :color
|
21
|
-
theme_attr :texture_tab, :texture
|
22
|
-
theme_attr :texture_tab_hover, :texture
|
23
|
-
theme_attr :texture_selected_tab, :texture
|
24
|
-
theme_attr :texture_selected_tab_hover, :texture
|
25
|
-
theme_attr :texture_disabled_tab, :texture
|
26
|
-
theme_attr :distance_to_side, :float
|
27
|
-
|
28
|
-
end
|
29
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
require_relative 'widget_theme'
|
2
|
-
require_relative 'scrollbar_theme'
|
3
|
-
|
4
|
-
module Tgui
|
5
|
-
class TextAreaTheme < WidgetTheme
|
6
|
-
|
7
|
-
theme_attr :borders, :outline
|
8
|
-
theme_attr :padding, :outline
|
9
|
-
theme_attr :background_color, :color
|
10
|
-
theme_attr :text_color, :color
|
11
|
-
theme_attr :default_text_color, :color
|
12
|
-
theme_attr :selected_text_color, :color
|
13
|
-
theme_attr :selected_text_background_color, :color
|
14
|
-
theme_attr :border_color, :color
|
15
|
-
theme_attr :caret_color, :color
|
16
|
-
theme_attr :texture_background, :texture
|
17
|
-
theme_attr :caret_width, :float
|
18
|
-
theme_comp :scrollbar, ScrollbarTheme
|
19
|
-
theme_attr :scrollbar_width, :float
|
20
|
-
|
21
|
-
end
|
22
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
require_relative 'widget_theme'
|
2
|
-
require_relative 'scrollbar_theme'
|
3
|
-
|
4
|
-
module Tgui
|
5
|
-
class TreeViewTheme < WidgetTheme
|
6
|
-
|
7
|
-
theme_attr :borders, :outline
|
8
|
-
theme_attr :padding, :outline
|
9
|
-
theme_attr :background_color, :color
|
10
|
-
theme_attr :background_color_hover, :color
|
11
|
-
theme_attr :selected_background_color, :color
|
12
|
-
theme_attr :selected_background_color_hover, :color
|
13
|
-
theme_attr :border_color, :color
|
14
|
-
theme_attr :text_color, :color
|
15
|
-
theme_attr :text_color_hover, :color
|
16
|
-
theme_attr :selected_text_color, :color
|
17
|
-
theme_attr :selected_text_color_hover, :color
|
18
|
-
theme_comp :scrollbar, ScrollbarTheme
|
19
|
-
theme_attr :scrollbar_width, :float
|
20
|
-
theme_attr :texture_background, :texture
|
21
|
-
theme_attr :texture_branch_expanded, :texture
|
22
|
-
theme_attr :texture_branch_collapsed, :texture
|
23
|
-
theme_attr :texture_leaf, :texture
|
24
|
-
|
25
|
-
end
|
26
|
-
end
|
File without changes
|
File without changes
|
File without changes
|