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.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/ext/dll/tgui.dll +0 -0
  3. data/ext/so/libtgui.so +0 -0
  4. data/lib/white_gold/abi/enum.rb +0 -8
  5. data/lib/white_gold/abi/extern_object.rb +6 -1
  6. data/lib/white_gold/abi/unpacker.rb +4 -2
  7. data/lib/white_gold/convention/bang_nest.rb +12 -2
  8. data/lib/white_gold/convention/bang_nested_caller.rb +34 -34
  9. data/lib/white_gold/convention/container_widgets.rb +53 -51
  10. data/lib/white_gold/convention/page.rb +22 -4
  11. data/lib/white_gold/{dsl → convention}/theme/color_attribute.rb +2 -0
  12. data/lib/white_gold/{dsl → convention}/theme/outline_attribute.rb +2 -0
  13. data/lib/white_gold/convention/theme/text_styles_attribute.rb +18 -0
  14. data/lib/white_gold/{dsl → convention}/theme/texture_attribute.rb +2 -0
  15. data/lib/white_gold/{dsl → convention}/theme/theme_attributed.rb +4 -18
  16. data/lib/white_gold/{dsl → convention}/theme/theme_component.rb +14 -3
  17. data/lib/white_gold/convention/theme_attributes.rb +49 -0
  18. data/lib/white_gold/convention/tree_node.rb +43 -0
  19. data/lib/white_gold/convention/widget_like.rb +0 -6
  20. data/lib/white_gold/dsl/backend_gui.rb +1 -0
  21. data/lib/white_gold/dsl/button_base.rb +17 -2
  22. data/lib/white_gold/dsl/canvas.rb +40 -0
  23. data/lib/white_gold/dsl/chat_box.rb +12 -1
  24. data/lib/white_gold/dsl/child_window.rb +22 -1
  25. data/lib/white_gold/dsl/color.rb +5 -2
  26. data/lib/white_gold/dsl/color_picker.rb +9 -0
  27. data/lib/white_gold/dsl/combo_box.rb +30 -2
  28. data/lib/white_gold/dsl/container.rb +17 -11
  29. data/lib/white_gold/dsl/edit_box.rb +29 -0
  30. data/lib/white_gold/dsl/file_dialog.rb +17 -0
  31. data/lib/white_gold/dsl/font.rb +5 -1
  32. data/lib/white_gold/dsl/grid.rb +3 -3
  33. data/lib/white_gold/dsl/group.rb +5 -0
  34. data/lib/white_gold/dsl/knob.rb +10 -0
  35. data/lib/white_gold/dsl/label.rb +14 -0
  36. data/lib/white_gold/dsl/list_box.rb +27 -11
  37. data/lib/white_gold/dsl/list_view.rb +29 -6
  38. data/lib/white_gold/dsl/menu_bar.rb +21 -48
  39. data/lib/white_gold/dsl/message_box.rb +8 -2
  40. data/lib/white_gold/dsl/panel_list_box.rb +3 -3
  41. data/lib/white_gold/dsl/progress_bar.rb +14 -0
  42. data/lib/white_gold/dsl/radio_button.rb +25 -0
  43. data/lib/white_gold/dsl/range_slider.rb +8 -0
  44. data/lib/white_gold/dsl/scrollbar.rb +19 -0
  45. data/lib/white_gold/dsl/separator_line.rb +5 -0
  46. data/lib/white_gold/dsl/sfml/circle_shape.rb +7 -0
  47. data/lib/white_gold/dsl/sfml/convex_shape.rb +15 -0
  48. data/lib/white_gold/dsl/sfml/rectangle_shape.rb +7 -0
  49. data/lib/white_gold/dsl/sfml/shape.rb +19 -0
  50. data/lib/white_gold/dsl/sfml/text.rb +22 -0
  51. data/lib/white_gold/dsl/signal/global_signal.rb +1 -1
  52. data/lib/white_gold/dsl/signal/signal.rb +1 -1
  53. data/lib/white_gold/dsl/signal/signal_animation_type.rb +1 -1
  54. data/lib/white_gold/dsl/signal/signal_bool.rb +1 -1
  55. data/lib/white_gold/dsl/signal/signal_color.rb +1 -1
  56. data/lib/white_gold/dsl/signal/signal_float.rb +1 -1
  57. data/lib/white_gold/dsl/signal/signal_int.rb +1 -1
  58. data/lib/white_gold/dsl/signal/signal_pointer.rb +1 -1
  59. data/lib/white_gold/dsl/signal/signal_range.rb +1 -1
  60. data/lib/white_gold/dsl/signal/signal_show_effect.rb +1 -1
  61. data/lib/white_gold/dsl/signal/signal_string.rb +1 -1
  62. data/lib/white_gold/dsl/signal/signal_u_int.rb +1 -1
  63. data/lib/white_gold/dsl/signal/signal_vector2f.rb +1 -1
  64. data/lib/white_gold/dsl/slider.rb +15 -0
  65. data/lib/white_gold/dsl/spin_button.rb +14 -0
  66. data/lib/white_gold/dsl/tab_container.rb +2 -2
  67. data/lib/white_gold/dsl/tabs.rb +26 -2
  68. data/lib/white_gold/dsl/text_area.rb +16 -0
  69. data/lib/white_gold/dsl/theme.rb +11 -51
  70. data/lib/white_gold/dsl/tree_view.rb +41 -33
  71. data/lib/white_gold/dsl/widget.rb +81 -39
  72. data/lib/white_gold/generated/tgui-abi-loader.gf.rb +197 -47
  73. data/lib/white_gold/library/theme/light.rb +15 -3
  74. data/lib/white_gold/master.rb +21 -40
  75. data/lib/white_gold/path/object.path.rb +0 -11
  76. data/lib/white_gold/tgui-abi.rb +17 -16
  77. data/lib/white_gold/version.rb +3 -0
  78. data/lib/white_gold.rb +29 -28
  79. metadata +26 -39
  80. data/lib/white_gold/dsl/theme/button_theme.rb +0 -19
  81. data/lib/white_gold/dsl/theme/chat_box_theme.rb +0 -16
  82. data/lib/white_gold/dsl/theme/child_window_theme.rb +0 -25
  83. data/lib/white_gold/dsl/theme/color_picker_theme.rb +0 -14
  84. data/lib/white_gold/dsl/theme/combo_box_theme.rb +0 -33
  85. data/lib/white_gold/dsl/theme/common_renderer.rb +0 -7
  86. data/lib/white_gold/dsl/theme/edit_box_theme.rb +0 -34
  87. data/lib/white_gold/dsl/theme/file_dialog_theme.rb +0 -22
  88. data/lib/white_gold/dsl/theme/group_theme.rb +0 -9
  89. data/lib/white_gold/dsl/theme/knob_theme.rb +0 -15
  90. data/lib/white_gold/dsl/theme/label_theme.rb +0 -20
  91. data/lib/white_gold/dsl/theme/list_box_theme.rb +0 -25
  92. data/lib/white_gold/dsl/theme/list_view_theme.rb +0 -27
  93. data/lib/white_gold/dsl/theme/menu_bar_theme.rb +0 -21
  94. data/lib/white_gold/dsl/theme/message_box_theme.rb +0 -11
  95. data/lib/white_gold/dsl/theme/progress_bar_theme.rb +0 -19
  96. data/lib/white_gold/dsl/theme/radio_button_theme.rb +0 -30
  97. data/lib/white_gold/dsl/theme/scrollbar_theme.rb +0 -24
  98. data/lib/white_gold/dsl/theme/separator_line_theme.rb +0 -9
  99. data/lib/white_gold/dsl/theme/slider_theme.rb +0 -20
  100. data/lib/white_gold/dsl/theme/spin_button_theme.rb +0 -19
  101. data/lib/white_gold/dsl/theme/tabs_theme.rb +0 -29
  102. data/lib/white_gold/dsl/theme/text_area_theme.rb +0 -22
  103. data/lib/white_gold/dsl/theme/text_styles_attribute.rb +0 -13
  104. data/lib/white_gold/dsl/theme/tree_view_theme.rb +0 -26
  105. data/lib/white_gold/dsl/theme/widget_theme.rb +0 -12
  106. /data/lib/white_gold/{dsl → convention}/theme/boolean_attribute.rb +0 -0
  107. /data/lib/white_gold/{dsl → convention}/theme/float_attribute.rb +0 -0
  108. /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,11 +0,0 @@
1
- require_relative 'widget_theme'
2
- require_relative 'button_theme'
3
-
4
- module Tgui
5
- class MessageBoxTheme < WidgetTheme
6
-
7
- theme_attr :text_color, :color
8
- theme_comp :button, ButtonTheme
9
-
10
- end
11
- 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,9 +0,0 @@
1
- require_relative 'widget_theme'
2
-
3
- module Tgui
4
- class SeparatorLineTheme < WidgetTheme
5
-
6
- theme_attr :color, :color
7
-
8
- end
9
- 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,13 +0,0 @@
1
- class TextStylesAttribute
2
- def initialize name, value
3
- @name = name
4
- @value = value
5
- end
6
-
7
- attr :name
8
- attr :value
9
-
10
- def to_theme
11
- "#{name} = #{value.to_s};"
12
- end
13
- 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
@@ -1,12 +0,0 @@
1
- require_relative 'theme_component'
2
-
3
- module Tgui
4
- class WidgetTheme < ThemeComponent
5
-
6
- theme_attr :opacity, :float
7
- theme_attr :opacity_disabled, :float
8
- theme_attr :text_size, :float
9
- theme_attr :transparent_texture, :boolean
10
-
11
- end
12
- end
File without changes