Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Full refactoring of Nifty

 - Applied JSR-305 annotations
 - Fixed potential null problems
 - Got rid of most Null-Objects
 - Implemented enum related storage system
   -> Mainly used for EffectEventId related storages
 - Got rid of Hashtables
 - Added early checks for problems
 - Added a lot of additional log warnings
 - Formatted code to meet Nifty specifications
 - Implemented proper use of XmlPullParserFactory
 - Fixed ID bug
  • Loading branch information...
commit bd08f8ce208a2b8e626d1e5f467beb016ac93360 1 parent 617df99
@mkaring mkaring authored
Showing with 8,656 additions and 7,863 deletions.
  1. +46 −45 nifty-controls-style-black/pom.xml
  2. +26 −23 nifty-controls-style-black/src/main/resources/button/nifty-button.xml
  3. +36 −34 nifty-controls-style-black/src/main/resources/chat-control/nifty-chat-control.xml
  4. +26 −24 nifty-controls-style-black/src/main/resources/checkbox/nifty-checkbox.xml
  5. +52 −48 nifty-controls-style-black/src/main/resources/console/nifty-console-style.xml
  6. +56 −53 nifty-controls-style-black/src/main/resources/dropdown/nifty-drop-down.xml
  7. +10 −10 nifty-controls-style-black/src/main/resources/fonts.xml
  8. +12 −12 nifty-controls-style-black/src/main/resources/hint/nifty-hint.xml
  9. +69 −61 nifty-controls-style-black/src/main/resources/imageselect/nifty-image-select.xml
  10. +8 −8 nifty-controls-style-black/src/main/resources/label/nifty-label.xml
  11. +32 −28 nifty-controls-style-black/src/main/resources/listbox/nifty-listbox-style.xml
  12. +19 −19 nifty-controls-style-black/src/main/resources/menu/nifty-menu-style.xml
  13. +8 −7 nifty-controls-style-black/src/main/resources/messagebox/nifty-messagebox.xml
  14. +21 −21 nifty-controls-style-black/src/main/resources/nifty-default-styles.xml
  15. +25 −19 nifty-controls-style-black/src/main/resources/panel/nifty-panel.xml
  16. +25 −19 nifty-controls-style-black/src/main/resources/radiobutton/nifty-radiobutton.xml
  17. +102 −90 nifty-controls-style-black/src/main/resources/scrollbar/nifty-scrollbar-style.xml
  18. +12 −11 nifty-controls-style-black/src/main/resources/scrollpanel/nifty-scrollpanel-style.xml
  19. +96 −88 nifty-controls-style-black/src/main/resources/slider/nifty-slider-style.xml
  20. +54 −54 nifty-controls-style-black/src/main/resources/tabs/nifty-tabs.xml
  21. +40 −37 nifty-controls-style-black/src/main/resources/textfield/nifty-textfield.xml
  22. +18 −18 nifty-controls-style-black/src/main/resources/treebox/nifty-treebox.xml
  23. +24 −22 nifty-controls-style-black/src/main/resources/window/nifty-window.xml
  24. +81 −80 nifty-controls/pom.xml
  25. +27 −6 nifty-controls/src/main/java/de/lessvoid/nifty/controls/Button.java
  26. +6 −2 nifty-controls/src/main/java/de/lessvoid/nifty/controls/ButtonClickedEvent.java
  27. +6 −2 nifty-controls/src/main/java/de/lessvoid/nifty/controls/ButtonReleasedEvent.java
  28. +82 −88 nifty-controls/src/main/java/de/lessvoid/nifty/controls/Chat.java
  29. +19 −15 nifty-controls/src/main/java/de/lessvoid/nifty/controls/ChatTextSendEvent.java
  30. +3 −2 nifty-controls/src/main/java/de/lessvoid/nifty/controls/CheckBox.java
  31. +8 −3 nifty-controls/src/main/java/de/lessvoid/nifty/controls/CheckBoxStateChangedEvent.java
  32. +17 −6 nifty-controls/src/main/java/de/lessvoid/nifty/controls/Console.java
  33. +8 −6 nifty-controls/src/main/java/de/lessvoid/nifty/controls/ConsoleCommandSplitter.java
  34. +67 −42 nifty-controls/src/main/java/de/lessvoid/nifty/controls/ConsoleCommands.java
  35. +27 −18 nifty-controls/src/main/java/de/lessvoid/nifty/controls/ConsoleExecuteCommandEvent.java
  36. +3 −1 nifty-controls/src/main/java/de/lessvoid/nifty/controls/Draggable.java
  37. +9 −3 nifty-controls/src/main/java/de/lessvoid/nifty/controls/DraggableDragCanceledEvent.java
  38. +9 −3 nifty-controls/src/main/java/de/lessvoid/nifty/controls/DraggableDragStartedEvent.java
  39. +50 −26 nifty-controls/src/main/java/de/lessvoid/nifty/controls/DropDown.java
  40. +14 −4 nifty-controls/src/main/java/de/lessvoid/nifty/controls/DropDownSelectionChangedEvent.java
  41. +7 −2 nifty-controls/src/main/java/de/lessvoid/nifty/controls/Droppable.java
  42. +3 −1 nifty-controls/src/main/java/de/lessvoid/nifty/controls/DroppableDropFilter.java
  43. +16 −5 nifty-controls/src/main/java/de/lessvoid/nifty/controls/DroppableDroppedEvent.java
  44. +11 −3 nifty-controls/src/main/java/de/lessvoid/nifty/controls/ImageSelect.java
  45. +8 −3 nifty-controls/src/main/java/de/lessvoid/nifty/controls/ImageSelectSelectionChangedEvent.java
  46. +11 −3 nifty-controls/src/main/java/de/lessvoid/nifty/controls/Label.java
  47. +81 −50 nifty-controls/src/main/java/de/lessvoid/nifty/controls/ListBox.java
  48. +17 −6 nifty-controls/src/main/java/de/lessvoid/nifty/controls/ListBoxSelectionChangedEvent.java
  49. +10 −6 nifty-controls/src/main/java/de/lessvoid/nifty/controls/Menu.java
  50. +10 −3 nifty-controls/src/main/java/de/lessvoid/nifty/controls/MenuItemActivatedEvent.java
  51. +213 −181 nifty-controls/src/main/java/de/lessvoid/nifty/controls/MessageBox.java
  52. +6 −3 nifty-controls/src/main/java/de/lessvoid/nifty/controls/RadioButton.java
  53. +3 −1 nifty-controls/src/main/java/de/lessvoid/nifty/controls/RadioButtonGroup.java
  54. +14 −3 nifty-controls/src/main/java/de/lessvoid/nifty/controls/RadioButtonGroupStateChangedEvent.java
  55. +9 −4 nifty-controls/src/main/java/de/lessvoid/nifty/controls/RadioButtonStateChangedEvent.java
  56. +22 −13 nifty-controls/src/main/java/de/lessvoid/nifty/controls/ScrollPanel.java
  57. +9 −4 nifty-controls/src/main/java/de/lessvoid/nifty/controls/ScrollPanelChangedEvent.java
  58. +15 −6 nifty-controls/src/main/java/de/lessvoid/nifty/controls/Scrollbar.java
  59. +8 −3 nifty-controls/src/main/java/de/lessvoid/nifty/controls/ScrollbarChangedEvent.java
  60. +17 −6 nifty-controls/src/main/java/de/lessvoid/nifty/controls/Slider.java
  61. +8 −3 nifty-controls/src/main/java/de/lessvoid/nifty/controls/SliderChangedEvent.java
  62. +6 −1 nifty-controls/src/main/java/de/lessvoid/nifty/controls/Tab.java
  63. +29 −36 nifty-controls/src/main/java/de/lessvoid/nifty/controls/TabGroup.java
  64. +10 −4 nifty-controls/src/main/java/de/lessvoid/nifty/controls/TabSelectedEvent.java
  65. +16 −10 nifty-controls/src/main/java/de/lessvoid/nifty/controls/TextField.java
  66. +10 −3 nifty-controls/src/main/java/de/lessvoid/nifty/controls/TextFieldChangedEvent.java
  67. +4 −2 nifty-controls/src/main/java/de/lessvoid/nifty/controls/TreeBox.java
  68. +12 −5 nifty-controls/src/main/java/de/lessvoid/nifty/controls/TreeItem.java
  69. +13 −13 nifty-controls/src/main/java/de/lessvoid/nifty/controls/TreeItemSelectionChangedEvent.java
  70. +8 −1 nifty-controls/src/main/java/de/lessvoid/nifty/controls/Window.java
  71. +5 −1 nifty-controls/src/main/java/de/lessvoid/nifty/controls/WindowClosedEvent.java
  72. +129 −79 nifty-controls/src/main/java/de/lessvoid/nifty/controls/button/ButtonControl.java
  73. +5 −3 nifty-controls/src/main/java/de/lessvoid/nifty/controls/button/builder/ButtonBuilder.java
  74. +0 −38 nifty-controls/src/main/java/de/lessvoid/nifty/controls/button/builder/CreateButtonControl.java
  75. +58 −37 nifty-controls/src/main/java/de/lessvoid/nifty/controls/chatcontrol/ChatBoxViewConverter.java
  76. +208 −192 nifty-controls/src/main/java/de/lessvoid/nifty/controls/chatcontrol/ChatControl.java
  77. +48 −41 nifty-controls/src/main/java/de/lessvoid/nifty/controls/chatcontrol/ChatEntry.java
  78. +91 −85 nifty-controls/src/main/java/de/lessvoid/nifty/controls/chatcontrol/ChatEntryModelClass.java
  79. +7 −6 nifty-controls/src/main/java/de/lessvoid/nifty/controls/chatcontrol/builder/ChatBuilder.java
  80. +0 −61 nifty-controls/src/main/java/de/lessvoid/nifty/controls/chatcontrol/builder/ChatCreator.java
  81. +18 −13 nifty-controls/src/main/java/de/lessvoid/nifty/controls/checkbox/CheckBoxImpl.java
  82. +3 −0  nifty-controls/src/main/java/de/lessvoid/nifty/controls/checkbox/CheckBoxView.java
  83. +0 −18 nifty-controls/src/main/java/de/lessvoid/nifty/controls/checkbox/CheckBoxViewNull.java
  84. +77 −34 nifty-controls/src/main/java/de/lessvoid/nifty/controls/checkbox/CheckboxControl.java
  85. +3 −1 nifty-controls/src/main/java/de/lessvoid/nifty/controls/checkbox/builder/CheckboxBuilder.java
  86. +0 −39 nifty-controls/src/main/java/de/lessvoid/nifty/controls/checkbox/builder/CreateCheckBoxControl.java
  87. +92 −44 nifty-controls/src/main/java/de/lessvoid/nifty/controls/console/ConsoleControl.java
  88. +4 −2 nifty-controls/src/main/java/de/lessvoid/nifty/controls/console/builder/ConsoleBuilder.java
  89. +0 −38 nifty-controls/src/main/java/de/lessvoid/nifty/controls/console/builder/CreateConsoleControl.java
  90. +135 −50 nifty-controls/src/main/java/de/lessvoid/nifty/controls/dragndrop/DraggableControl.java
  91. +94 −37 nifty-controls/src/main/java/de/lessvoid/nifty/controls/dragndrop/DroppableControl.java
  92. +0 −36 nifty-controls/src/main/java/de/lessvoid/nifty/controls/dragndrop/builder/CreateDraggable.java
  93. +0 −50 nifty-controls/src/main/java/de/lessvoid/nifty/controls/dragndrop/builder/CreateDroppable.java
  94. +4 −2 nifty-controls/src/main/java/de/lessvoid/nifty/controls/dragndrop/builder/DraggableBuilder.java
  95. +3 −1 nifty-controls/src/main/java/de/lessvoid/nifty/controls/dragndrop/builder/DroppableBuilder.java
  96. +204 −70 nifty-controls/src/main/java/de/lessvoid/nifty/controls/dropdown/DropDownControl.java
  97. +7 −3 nifty-controls/src/main/java/de/lessvoid/nifty/controls/dropdown/DropDownControlInputMapping.java
  98. +56 −25 ...trols/src/main/java/de/lessvoid/nifty/controls/dropdown/DropDownListBoxSelectionChangedEventSubscriber.java
  99. +82 −38 nifty-controls/src/main/java/de/lessvoid/nifty/controls/dropdown/DropDownPopup.java
  100. +0 −37 nifty-controls/src/main/java/de/lessvoid/nifty/controls/dropdown/builder/CreateDropDownControl.java
  101. +8 −2 nifty-controls/src/main/java/de/lessvoid/nifty/controls/dropdown/builder/DropDownBuilder.java
  102. +340 −248 nifty-controls/src/main/java/de/lessvoid/nifty/controls/imageselect/ImageSelectControl.java
  103. +7 −2 nifty-controls/src/main/java/de/lessvoid/nifty/controls/imageselect/ImageSelectInputMapping.java
  104. +0 −36 nifty-controls/src/main/java/de/lessvoid/nifty/controls/imageselect/builder/CreateImageSelectControl.java
  105. +6 −4 nifty-controls/src/main/java/de/lessvoid/nifty/controls/imageselect/builder/ImageSelectBuilder.java
  106. +40 −13 nifty-controls/src/main/java/de/lessvoid/nifty/controls/label/LabelControl.java
  107. +0 −40 nifty-controls/src/main/java/de/lessvoid/nifty/controls/label/builder/CreateLabelControl.java
  108. +5 −3 nifty-controls/src/main/java/de/lessvoid/nifty/controls/label/builder/LabelBuilder.java
  109. +415 −194 nifty-controls/src/main/java/de/lessvoid/nifty/controls/listbox/ListBoxControl.java
  110. +17 −15 nifty-controls/src/main/java/de/lessvoid/nifty/controls/listbox/ListBoxFocusItem.java
  111. +137 −91 nifty-controls/src/main/java/de/lessvoid/nifty/controls/listbox/ListBoxImpl.java
  112. +68 −54 nifty-controls/src/main/java/de/lessvoid/nifty/controls/listbox/ListBoxItemController.java
  113. +3 −1 nifty-controls/src/main/java/de/lessvoid/nifty/controls/listbox/ListBoxItemProcessor.java
  114. +22 −14 nifty-controls/src/main/java/de/lessvoid/nifty/controls/listbox/ListBoxPanel.java
  115. +13 −11 nifty-controls/src/main/java/de/lessvoid/nifty/controls/listbox/ListBoxSelectionMode.java
  116. +10 −9 nifty-controls/src/main/java/de/lessvoid/nifty/controls/listbox/ListBoxSelectionModeDisabled.java
  117. +10 −6 nifty-controls/src/main/java/de/lessvoid/nifty/controls/listbox/ListBoxSelectionModeMulti.java
  118. +22 −25 nifty-controls/src/main/java/de/lessvoid/nifty/controls/listbox/ListBoxSelectionModeSingle.java
  119. +11 −7 nifty-controls/src/main/java/de/lessvoid/nifty/controls/listbox/ListBoxView.java
  120. +0 −38 nifty-controls/src/main/java/de/lessvoid/nifty/controls/listbox/ListBoxViewNull.java
  121. +0 −38 nifty-controls/src/main/java/de/lessvoid/nifty/controls/listbox/builder/CreateListBoxControl.java
  122. +5 −3 nifty-controls/src/main/java/de/lessvoid/nifty/controls/listbox/builder/ListBoxBuilder.java
  123. +72 −148 nifty-controls/src/main/java/de/lessvoid/nifty/controls/menu/MenuControl.java
  124. +19 −19 nifty-controls/src/main/java/de/lessvoid/nifty/controls/menu/PopupMenuControl.java
  125. +31 −25 nifty-controls/src/main/java/de/lessvoid/nifty/controls/messagebox/MessageBoxControl.java
  126. +33 −30 nifty-controls/src/main/java/de/lessvoid/nifty/controls/messagebox/builder/MessageBoxBuilder.java
  127. +0 −151 nifty-controls/src/main/java/de/lessvoid/nifty/controls/nullobjects/ButtonNull.java
  128. +0 −109 nifty-controls/src/main/java/de/lessvoid/nifty/controls/nullobjects/CheckBoxNull.java
  129. +0 −151 nifty-controls/src/main/java/de/lessvoid/nifty/controls/nullobjects/DropDownNull.java
  130. +0 −107 nifty-controls/src/main/java/de/lessvoid/nifty/controls/nullobjects/LabelNull.java
  131. +0 −221 nifty-controls/src/main/java/de/lessvoid/nifty/controls/nullobjects/ListBoxNull.java
  132. +0 −137 nifty-controls/src/main/java/de/lessvoid/nifty/controls/nullobjects/ScrollbarNull.java
  133. +0 −137 nifty-controls/src/main/java/de/lessvoid/nifty/controls/nullobjects/SliderNull.java
  134. +0 −167 nifty-controls/src/main/java/de/lessvoid/nifty/controls/nullobjects/TextFieldNull.java
  135. +63 −25 nifty-controls/src/main/java/de/lessvoid/nifty/controls/radiobutton/RadioButtonControl.java
  136. +62 −28 nifty-controls/src/main/java/de/lessvoid/nifty/controls/radiobutton/RadioButtonGroupControl.java
  137. +0 −39 nifty-controls/src/main/java/de/lessvoid/nifty/controls/radiobutton/builder/CreateRadioButtonControl.java
  138. +0 −39 nifty-controls/src/main/java/de/lessvoid/nifty/controls/radiobutton/builder/CreateRadioGroupControl.java
  139. +4 −2 nifty-controls/src/main/java/de/lessvoid/nifty/controls/radiobutton/builder/RadioButtonBuilder.java
  140. +3 −1 nifty-controls/src/main/java/de/lessvoid/nifty/controls/radiobutton/builder/RadioGroupBuilder.java
  141. +134 −62 nifty-controls/src/main/java/de/lessvoid/nifty/controls/scrollbar/ScrollbarControl.java
  142. +38 −13 nifty-controls/src/main/java/de/lessvoid/nifty/controls/scrollbar/ScrollbarImpl.java
  143. +8 −5 nifty-controls/src/main/java/de/lessvoid/nifty/controls/scrollbar/ScrollbarInputMapping.java
  144. +7 −1 nifty-controls/src/main/java/de/lessvoid/nifty/controls/scrollbar/ScrollbarView.java
  145. +29 −10 ...-controls/src/main/java/de/lessvoid/nifty/controls/scrollbar/UpdateScrollpanelPositionToDisplayElement.java
  146. +0 −45 nifty-controls/src/main/java/de/lessvoid/nifty/controls/scrollbar/builder/CreateScrollbarControl.java
  147. +4 −1 nifty-controls/src/main/java/de/lessvoid/nifty/controls/scrollbar/builder/ScrollbarBuilder.java
  148. +169 −98 nifty-controls/src/main/java/de/lessvoid/nifty/controls/scrollpanel/ScrollPanelControl.java
  149. +0 −34 nifty-controls/src/main/java/de/lessvoid/nifty/controls/scrollpanel/builder/CreateScrollPanelControl.java
  150. +3 −1 nifty-controls/src/main/java/de/lessvoid/nifty/controls/scrollpanel/builder/ScrollPanelBuilder.java
  151. +0 −96 nifty-controls/src/main/java/de/lessvoid/nifty/controls/shared/EmptyNiftyControlImpl.java
  152. +99 −52 nifty-controls/src/main/java/de/lessvoid/nifty/controls/slider/SliderControl.java
  153. +34 −8 nifty-controls/src/main/java/de/lessvoid/nifty/controls/slider/SliderImpl.java
  154. +5 −0 nifty-controls/src/main/java/de/lessvoid/nifty/controls/slider/SliderView.java
  155. +0 −44 nifty-controls/src/main/java/de/lessvoid/nifty/controls/slider/builder/CreateSliderControl.java
  156. +4 −1 nifty-controls/src/main/java/de/lessvoid/nifty/controls/slider/builder/SliderBuilder.java
  157. +33 −19 nifty-controls/src/main/java/de/lessvoid/nifty/controls/tabs/TabControl.java
  158. +198 −107 nifty-controls/src/main/java/de/lessvoid/nifty/controls/tabs/TabGroupControl.java
  159. +3 −1 nifty-controls/src/main/java/de/lessvoid/nifty/controls/tabs/TabGroupMember.java
  160. +9 −7 nifty-controls/src/main/java/de/lessvoid/nifty/controls/tabs/builder/TabBuilder.java
  161. +10 −8 nifty-controls/src/main/java/de/lessvoid/nifty/controls/tabs/builder/TabGroupBuilder.java
  162. +5 −6 nifty-controls/src/main/java/de/lessvoid/nifty/controls/textfield/InputCharFilterWrapper.java
  163. +4 −5 nifty-controls/src/main/java/de/lessvoid/nifty/controls/textfield/InputCharSequenceFilterWrapper.java
  164. +4 −1 nifty-controls/src/main/java/de/lessvoid/nifty/controls/textfield/SingleCharSequence.java
  165. +280 −150 nifty-controls/src/main/java/de/lessvoid/nifty/controls/textfield/TextFieldControl.java
  166. +18 −9 nifty-controls/src/main/java/de/lessvoid/nifty/controls/textfield/TextFieldInputMapping.java
  167. +44 −17 nifty-controls/src/main/java/de/lessvoid/nifty/controls/textfield/TextFieldLogic.java
  168. +8 −3 nifty-controls/src/main/java/de/lessvoid/nifty/controls/textfield/TextFieldView.java
  169. +5 −3 nifty-controls/src/main/java/de/lessvoid/nifty/controls/textfield/builder/TextFieldBuilder.java
  170. +0 −38 nifty-controls/src/main/java/de/lessvoid/nifty/controls/textfield/builder/TextFieldCreator.java
  171. +3 −1 nifty-controls/src/main/java/de/lessvoid/nifty/controls/textfield/filter/delete/FilterDeleteAll.java
  172. +4 −2 nifty-controls/src/main/java/de/lessvoid/nifty/controls/textfield/filter/delete/TextFieldDeleteFilter.java
  173. +3 −1 nifty-controls/src/main/java/de/lessvoid/nifty/controls/textfield/filter/input/FilterAcceptAll.java
  174. +11 −8 nifty-controls/src/main/java/de/lessvoid/nifty/controls/textfield/filter/input/FilterAcceptRegex.java
  175. +1 −1  nifty-controls/src/main/java/de/lessvoid/nifty/controls/textfield/filter/input/TextFieldInputCharFilter.java
  176. +4 −2 ...trols/src/main/java/de/lessvoid/nifty/controls/textfield/filter/input/TextFieldInputCharSequenceFilter.java
  177. +4 −1 nifty-controls/src/main/java/de/lessvoid/nifty/controls/textfield/format/FormatPassword.java
  178. +4 −1 nifty-controls/src/main/java/de/lessvoid/nifty/controls/textfield/format/FormatPlain.java
  179. +6 −3 nifty-controls/src/main/java/de/lessvoid/nifty/controls/textfield/format/TextFieldDisplayFormat.java
  180. +48 −30 nifty-controls/src/main/java/de/lessvoid/nifty/controls/treebox/TreeBoxControl.java
  181. +14 −16 nifty-controls/src/main/java/de/lessvoid/nifty/controls/treebox/TreeBoxItemController.java
  182. +62 −30 nifty-controls/src/main/java/de/lessvoid/nifty/controls/treebox/TreeBoxViewConverter.java
  183. +5 −5 nifty-controls/src/main/java/de/lessvoid/nifty/controls/treebox/builder/TreeBoxBuilder.java
  184. +105 −23 nifty-controls/src/main/java/de/lessvoid/nifty/controls/window/WindowControl.java
  185. +0 −42 nifty-controls/src/main/java/de/lessvoid/nifty/controls/window/builder/CreateWindow.java
  186. +3 −1 nifty-controls/src/main/java/de/lessvoid/nifty/controls/window/builder/WindowBuilder.java
  187. +7 −5 nifty-controls/src/main/resources/nifty-controls/nifty-button.xml
  188. +39 −30 nifty-controls/src/main/resources/nifty-controls/nifty-chat-control.xml
  189. +7 −6 nifty-controls/src/main/resources/nifty-controls/nifty-checkbox.xml
  190. +11 −8 nifty-controls/src/main/resources/nifty-controls/nifty-console.xml
  191. +16 −14 nifty-controls/src/main/resources/nifty-controls/nifty-dragndrop.xml
  192. +25 −23 nifty-controls/src/main/resources/nifty-controls/nifty-drop-down.xml
  193. +5 −5 nifty-controls/src/main/resources/nifty-controls/nifty-hint.xml
  194. +19 −17 nifty-controls/src/main/resources/nifty-controls/nifty-image-select.xml
  195. +3 −3 nifty-controls/src/main/resources/nifty-controls/nifty-label.xml
  196. +22 −17 nifty-controls/src/main/resources/nifty-controls/nifty-listbox.xml
  197. +28 −26 nifty-controls/src/main/resources/nifty-controls/nifty-menu.xml
  198. +19 −16 nifty-controls/src/main/resources/nifty-controls/nifty-messagebox.xml
  199. +12 −10 nifty-controls/src/main/resources/nifty-controls/nifty-radiobutton.xml
  200. +40 −34 nifty-controls/src/main/resources/nifty-controls/nifty-scrollbar.xml
  201. +14 −13 nifty-controls/src/main/resources/nifty-controls/nifty-scrollpanel.xml
  202. +38 −34 nifty-controls/src/main/resources/nifty-controls/nifty-slider.xml
  203. +13 −13 nifty-controls/src/main/resources/nifty-controls/nifty-tabs.xml
  204. +14 −11 nifty-controls/src/main/resources/nifty-controls/nifty-textfield.xml
  205. +19 −19 nifty-controls/src/main/resources/nifty-controls/nifty-treebox.xml
  206. +14 −12 nifty-controls/src/main/resources/nifty-controls/nifty-window.xml
  207. +20 −20 nifty-controls/src/main/resources/nifty-default-controls.xml
  208. +17 −17 nifty-controls/src/site/site.xml
  209. +2 −2 nifty-controls/src/test/java/de/lessvoid/nifty/controls/CheckBoxStateChangedEventTest.java
  210. +10 −10 nifty-controls/src/test/java/de/lessvoid/nifty/controls/ConsoleCommandsMatchTest.java
  211. +7 −10 nifty-controls/src/test/java/de/lessvoid/nifty/controls/ConsoleCommandsTest.java
  212. +4 −3 nifty-controls/src/test/java/de/lessvoid/nifty/controls/ConsoleExecuteCommandEventTest.java
  213. +5 −7 nifty-controls/src/test/java/de/lessvoid/nifty/controls/checkbox/CheckBoxImplTest.java
  214. +27 −24 nifty-controls/src/test/java/de/lessvoid/nifty/controls/checkbox/controller/CreateCheckBoxControlTest.java
  215. +12 −10 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxAddItemTest.java
  216. +4 −7 nifty-controls/src/test/java/de/lessvoid/nifty/controls/{ → listbox}/ListBoxChangeSelectionModeTest.java
  217. +2 −5 ...y-controls/src/test/java/de/lessvoid/nifty/controls/{ → listbox}/ListBoxDisabledSelectionModeTest.java
  218. +2 −5 nifty-controls/src/test/java/de/lessvoid/nifty/controls/{ → listbox}/ListBoxDisabledSelectionTest.java
  219. +6 −9 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxFocusElementEmptyTest.java
  220. +4 −7 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxFocusElementTest.java
  221. +3 −3 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxFocusItemTest.java
  222. +4 −4 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxInsertItemInvalidTest.java
  223. +3 −3 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxInsertItemTest.java
  224. +2 −3 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxItemNextPreviousEmptyTest.java
  225. +2 −3 ...rols/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxItemNextPreviousWithDisabledSelectionTest.java
  226. +2 −3 ...rols/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxItemNextPreviousWithMultipleSelectionTest.java
  227. +2 −3 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxItemNextPreviousWithSelectionTest.java
  228. +8 −11 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxItemRemoveTest.java
  229. +3 −3 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxItemSortTest.java
  230. +2 −2 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxItemTest.java
  231. +2 −5 nifty-controls/src/test/java/de/lessvoid/nifty/controls/{ → listbox}/ListBoxMultipleSelectionTest.java
  232. +11 −16 ...y-controls/src/test/java/de/lessvoid/nifty/controls/{ → listbox}/ListBoxMultipleSelectionViewTest.java
  233. +72 −18 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxNotifyDeselectionTest.java
  234. +5 −8 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxNotifyTest.java
  235. +5 −7 ...ntrols/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxSelectionModeMultiRequiredSelectionTest.java
  236. +5 −5 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxSelectionModeMultiTest.java
  237. +5 −7 ...trols/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxSelectionModeSingleRequiredSelectionTest.java
  238. +5 −5 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxSelectionModeSingleTest.java
  239. +2 −4 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxShowItemLessThanViewCountTest.java
  240. +2 −4 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxShowItemTest.java
  241. +4 −10 ...controls/src/test/java/de/lessvoid/nifty/controls/{ → listbox}/ListBoxSingleSelectionListViewTest.java
  242. +7 −11 .../java/de/lessvoid/nifty/controls/{ → listbox}/ListBoxSingleSelectionRequiresSelectionListViewTest.java
  243. +2 −5 nifty-controls/src/test/java/de/lessvoid/nifty/controls/{ → listbox}/ListBoxSingleSelectionTest.java
  244. +10 −6 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxTestTool.java
  245. +10 −28 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxViewDefaultTest.java
  246. +2 −4 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxViewMoveTest.java
  247. +4 −6 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxViewTest.java
  248. +4 −6 nifty-controls/src/test/java/de/lessvoid/nifty/controls/listbox/ListBoxViewWidthTest.java
  249. +11 −7 nifty-controls/src/test/java/de/lessvoid/nifty/controls/{ → listbox}/SelectionCheck.java
  250. +4 −5 nifty-controls/src/test/java/de/lessvoid/nifty/controls/scrollbar/ScrollbarImplHandleSizeTest.java
  251. +11 −12 nifty-controls/src/test/java/de/lessvoid/nifty/controls/scrollbar/ScrollbarImplTest.java
  252. +3 −8 nifty-controls/src/test/java/de/lessvoid/nifty/controls/slider/SliderImplTest.java
  253. +3 −1 nifty-controls/src/test/java/de/lessvoid/nifty/controls/textfield/EmptyTextFieldView.java
  254. +1 −2  nifty-controls/src/test/java/de/lessvoid/nifty/controls/textfield/TextFieldChangeEventClipboardTest.java
  255. +2 −3 nifty-controls/src/test/java/de/lessvoid/nifty/controls/textfield/TextFieldMaxLenClipboardTest.java
  256. +1 −2  nifty-controls/src/test/java/de/lessvoid/nifty/controls/textfield/TextFieldPasswordTest.java
  257. +13 −13 nifty-core/src/assemble/nifty.xml
  258. +5 −2 nifty-core/src/main/java/de/lessvoid/nifty/Clipboard.java
  259. +23 −18 nifty-core/src/main/java/de/lessvoid/nifty/ClipboardAWT.java
  260. +29 −0 nifty-core/src/main/java/de/lessvoid/nifty/ClipboardInternal.java
  261. +0 −14 nifty-core/src/main/java/de/lessvoid/nifty/ClipboardNull.java
  262. +558 −378 nifty-core/src/main/java/de/lessvoid/nifty/Nifty.java
  263. +3 −1 nifty-core/src/main/java/de/lessvoid/nifty/NiftyDefaults.java
  264. +16 −13 nifty-core/src/main/java/de/lessvoid/nifty/NiftyEventAnnotationProcessor.java
  265. +3 −2 nifty-core/src/main/java/de/lessvoid/nifty/NiftyEventSubscriber.java
  266. +40 −5 nifty-core/src/main/java/de/lessvoid/nifty/NiftyIdCreator.java
  267. +37 −26 nifty-core/src/main/java/de/lessvoid/nifty/NiftyMethodInvoker.java
  268. +11 −1 nifty-core/src/main/java/de/lessvoid/nifty/NiftyMouse.java
  269. +6 −4 nifty-core/src/main/java/de/lessvoid/nifty/NiftyStopwatch.java
  270. +16 −7 nifty-core/src/main/java/de/lessvoid/nifty/ParameterizedObjectFactory.java
  271. +3 −1 nifty-core/src/main/java/de/lessvoid/nifty/Size.java
  272. +141 −75 nifty-core/src/main/java/de/lessvoid/nifty/batch/BatchRenderDevice.java
  273. +9 −9 nifty-core/src/main/java/de/lessvoid/nifty/batch/BatchRenderFont.java
  274. +22 −6 nifty-core/src/main/java/de/lessvoid/nifty/batch/BatchRenderImage.java
  275. +48 −31 nifty-core/src/main/java/de/lessvoid/nifty/batch/TextureAtlasGenerator.java
  276. +2 −1  nifty-core/src/main/java/de/lessvoid/nifty/batch/TextureAtlasGeneratorException.java
  277. +59 −46 nifty-core/src/main/java/de/lessvoid/nifty/batch/spi/BatchRenderBackend.java
  278. +16 −10 nifty-core/src/main/java/de/lessvoid/nifty/builder/ControlBuilder.java
  279. +24 −12 nifty-core/src/main/java/de/lessvoid/nifty/builder/ControlDefinitionBuilder.java
  280. +47 −22 nifty-core/src/main/java/de/lessvoid/nifty/builder/EffectBuilder.java
  281. +210 −198 nifty-core/src/main/java/de/lessvoid/nifty/builder/ElementBuilder.java
  282. +63 −46 nifty-core/src/main/java/de/lessvoid/nifty/builder/HoverEffectBuilder.java
  283. +6 −5 nifty-core/src/main/java/de/lessvoid/nifty/builder/ImageBuilder.java
  284. +7 −6 nifty-core/src/main/java/de/lessvoid/nifty/builder/LayerBuilder.java
  285. +4 −3 nifty-core/src/main/java/de/lessvoid/nifty/builder/PanelBuilder.java
  286. +15 −9 nifty-core/src/main/java/de/lessvoid/nifty/builder/PopupBuilder.java
  287. +9 −6 nifty-core/src/main/java/de/lessvoid/nifty/builder/ScreenBuilder.java
  288. +95 −75 nifty-core/src/main/java/de/lessvoid/nifty/builder/StyleBuilder.java
  289. +12 −3 nifty-core/src/main/java/de/lessvoid/nifty/builder/TextBuilder.java
  290. +129 −88 nifty-core/src/main/java/de/lessvoid/nifty/controls/AbstractController.java
  291. +25 −14 nifty-core/src/main/java/de/lessvoid/nifty/controls/Controller.java
  292. +14 −9 nifty-core/src/main/java/de/lessvoid/nifty/controls/DefaultController.java
  293. +2 −2 nifty-core/src/main/java/de/lessvoid/nifty/controls/FocusGainedEvent.java
  294. +59 −32 nifty-core/src/main/java/de/lessvoid/nifty/controls/FocusHandler.java
  295. +2 −2 nifty-core/src/main/java/de/lessvoid/nifty/controls/FocusLostEvent.java
  296. +15 −7 nifty-core/src/main/java/de/lessvoid/nifty/controls/MenuItemControl.java
  297. +9 −9 nifty-core/src/main/java/de/lessvoid/nifty/controls/NextPrevHelper.java
  298. +29 −8 nifty-core/src/main/java/de/lessvoid/nifty/controls/NiftyControl.java
  299. +56 −34 nifty-core/src/main/java/de/lessvoid/nifty/controls/NiftyInputControl.java
  300. +3 −0  nifty-core/src/main/java/de/lessvoid/nifty/controls/NiftyObservable.java
Sorry, we could not display the entire diff because too many files (1,015) changed.
View
91 nifty-controls-style-black/pom.xml
@@ -1,46 +1,47 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>lessvoid</groupId>
- <artifactId>nifty-main</artifactId>
- <version>1.4.0-SNAPSHOT</version>
- </parent>
- <artifactId>nifty-style-black</artifactId>
- <name>Nifty Controls Style Definition (Black)</name>
- <url>http://nifty-gui.sourceforge.net/nifty-style-black/project-info.html</url>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>2.0.4</version>
- <executions>
- <execution>
- <id>attach-sources</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-project-info-reports-plugin</artifactId>
- <version>2.1.2</version>
- <reportSets>
- <reportSet>
- <reports>
- <report>index</report>
- <report>summary</report>
- <report>dependencies</report>
- </reports>
- </reportSet>
- </reportSets>
- </plugin>
- </plugins>
- </reporting>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>lessvoid</groupId>
+ <artifactId>nifty-main</artifactId>
+ <version>1.4.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>nifty-style-black</artifactId>
+ <name>Nifty Controls Style Definition (Black)</name>
+ <url>http://nifty-gui.sourceforge.net/nifty-style-black/project-info.html</url>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.0.4</version>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>2.1.2</version>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>index</report>
+ <report>summary</report>
+ <report>dependencies</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ </plugins>
+ </reporting>
</project>
View
49 nifty-controls-style-black/src/main/resources/button/nifty-button.xml
@@ -1,27 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
-<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
+<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
- <!-- +++++++++++++++++++++++++++++++++++++ -->
- <!-- style for the button background panel -->
- <!-- +++++++++++++++++++++++++++++++++++++ -->
- <style id="nifty-button#panel">
- <attributes backgroundImage="button/button.png" imageMode="sprite-resize:100,23,0,2,96,2,2,2,96,2,19,2,96,2,2" paddingLeft="7px" paddingRight="7px" width="100px" height="23px" childLayout="center" visibleToMouse="true" />
- <effect>
- <onHover name="border" color="#822f" post="true" />
- <onFocus name="imageOverlay" filename="button/button.png" imageMode="sprite-resize:100,23,1,2,96,2,2,2,96,2,19,2,96,2,2" post="true" />
- <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="true" length="150" />
- <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="true" length="150" />
- </effect>
- </style>
+ <!-- +++++++++++++++++++++++++++++++++++++ -->
+ <!-- style for the button background panel -->
+ <!-- +++++++++++++++++++++++++++++++++++++ -->
+ <style id="nifty-button#panel">
+ <attributes backgroundImage="button/button.png" imageMode="sprite-resize:100,23,0,2,96,2,2,2,96,2,19,2,96,2,2"
+ paddingLeft="7px" paddingRight="7px" width="100px" height="23px" childLayout="center"
+ visibleToMouse="true"/>
+ <effect>
+ <onHover name="border" color="#822f" post="true"/>
+ <onFocus name="imageOverlay" filename="button/button.png"
+ imageMode="sprite-resize:100,23,1,2,96,2,2,2,96,2,19,2,96,2,2" post="true"/>
+ <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="true" length="150"/>
+ <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="true" length="150"/>
+ </effect>
+ </style>
- <!-- +++++++++++++++++++++++++++++++++++++ -->
- <!-- style for the button text -->
- <!-- +++++++++++++++++++++++++++++++++++++ -->
- <style id="nifty-button#text" base="button-font">
- <attributes align="center" valign="center" textHAlign="center" textVAlign="center" visibleToMouse="false"/>
- <effect>
- <onEnabled name="textColorAnimated" startColor="#8886" endColor="#eeef" post="false" length="150" />
- <onDisabled name="textColorAnimated" startColor="#eeef" endColor="#8886" post="false" length="150" />
- </effect>
- </style>
+ <!-- +++++++++++++++++++++++++++++++++++++ -->
+ <!-- style for the button text -->
+ <!-- +++++++++++++++++++++++++++++++++++++ -->
+ <style id="nifty-button#text" base="button-font">
+ <attributes align="center" valign="center" textHAlign="center" textVAlign="center" visibleToMouse="false"/>
+ <effect>
+ <onEnabled name="textColorAnimated" startColor="#8886" endColor="#eeef" post="false" length="150"/>
+ <onDisabled name="textColorAnimated" startColor="#eeef" endColor="#8886" post="false" length="150"/>
+ </effect>
+ </style>
</nifty-styles>
View
70 nifty-controls-style-black/src/main/resources/chat-control/nifty-chat-control.xml
@@ -1,36 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
-<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
-
- <style id="nifty-chat-control#mainPanel">
- <attributes childLayout="vertical" width="100%" />
- </style>
-
- <style id="nifty-chat-control#chatPanel">
- <attributes childLayout="horizontal" width="100%" align="center" />
- </style>
-
- <style id="nifty-chat-control#chatArea">
- <attributes childLayout="horizontal" align="left" width="75%" />
- </style>
-
- <style id="nifty-chat-control#playerArea">
- <attributes childLayout="vertical" width="25%" />
- </style>
-
- <style id="nifty-chat-control#spacer">
- <attributes height="9px" width="100%" />
- </style>
-
- <style id="nifty-chat-control#chatTextArea">
- <attributes childLayout="horizontal" align="left" width="75%" />
- </style>
-
- <style id="current-player">
- <attributes backgroundImage="panel/nifty-panel-red-no-shadow.png" imageMode="resize:8,210,8,8,8,210,8,209,8,210,8,8" />
- </style>
-
- <style id="default">
- <attributes backgroundImage="panel/nifty-panel-no-shadow.png" imageMode="resize:8,210,8,8,8,210,8,209,8,210,8,8" />
- </style>
-
+<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
+
+ <style id="nifty-chat-control#mainPanel">
+ <attributes childLayout="vertical" width="100%"/>
+ </style>
+
+ <style id="nifty-chat-control#chatPanel">
+ <attributes childLayout="horizontal" width="100%" align="center"/>
+ </style>
+
+ <style id="nifty-chat-control#chatArea">
+ <attributes childLayout="horizontal" align="left" width="75%"/>
+ </style>
+
+ <style id="nifty-chat-control#playerArea">
+ <attributes childLayout="vertical" width="25%"/>
+ </style>
+
+ <style id="nifty-chat-control#spacer">
+ <attributes height="9px" width="100%"/>
+ </style>
+
+ <style id="nifty-chat-control#chatTextArea">
+ <attributes childLayout="horizontal" align="left" width="75%"/>
+ </style>
+
+ <style id="current-player">
+ <attributes backgroundImage="panel/nifty-panel-red-no-shadow.png"
+ imageMode="resize:8,210,8,8,8,210,8,209,8,210,8,8"/>
+ </style>
+
+ <style id="default">
+ <attributes backgroundImage="panel/nifty-panel-no-shadow.png"
+ imageMode="resize:8,210,8,8,8,210,8,209,8,210,8,8"/>
+ </style>
+
</nifty-styles>
View
50 nifty-controls-style-black/src/main/resources/checkbox/nifty-checkbox.xml
@@ -1,27 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
-<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
+<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
- <style id="nifty-checkbox-style#panel">
- <attributes width="23px" height="23px" childLayout="center" backgroundColor="#666f" />
- <effect>
- <onActive name="border" color="#222f" post="true" inset="1px" />
- <onFocus name="colorBar" color="#800f" post="true" inset="1px" />
- <onHover name="border" color="#822f" post="true" />
- <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="true" length="150" />
- <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="true" length="150" />
- </effect>
- </style>
-
- <style id="nifty-checkbox-style#select">
- <attributes align="center" valign="center" width="32px" height="32px" />
- <effect overlay="true">
- <onCustom customKey="show" name="imageSize" startSize="2.0" endSize="1.0" length="250" post="true" />
- <onCustom customKey="show" name="fade" start="#0" end="#f" length="250" post="true" />
- <onCustom customKey="show" name="imageOverlay" filename="checkbox/checkbox.png" width="32px" height="32px" post="true" neverStopRendering="true" />
- <onCustom customKey="hide" name="fade" start="#f" end="#0" length="250" post="true" />
- <onCustom customKey="hide" name="imageOverlay" filename="checkbox/checkbox.png" width="32px" height="32px" post="true" length="250" />
- <onEnabled name="fade" start="#4" end="#f" length="150" post="false" />
- <onDisabled name="fade" start="#f" end="#4" length="150" post="false" />
- </effect>
- </style>
+ <style id="nifty-checkbox-style#panel">
+ <attributes width="23px" height="23px" childLayout="center" backgroundColor="#666f"/>
+ <effect>
+ <onActive name="border" color="#222f" post="true" inset="1px"/>
+ <onFocus name="colorBar" color="#800f" post="true" inset="1px"/>
+ <onHover name="border" color="#822f" post="true"/>
+ <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="true" length="150"/>
+ <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="true" length="150"/>
+ </effect>
+ </style>
+
+ <style id="nifty-checkbox-style#select">
+ <attributes align="center" valign="center" width="32px" height="32px"/>
+ <effect overlay="true">
+ <onCustom customKey="show" name="imageSize" startSize="2.0" endSize="1.0" length="250" post="true"/>
+ <onCustom customKey="show" name="fade" start="#0" end="#f" length="250" post="true"/>
+ <onCustom customKey="show" name="imageOverlay" filename="checkbox/checkbox.png" width="32px" height="32px"
+ post="true" neverStopRendering="true"/>
+ <onCustom customKey="hide" name="fade" start="#f" end="#0" length="250" post="true"/>
+ <onCustom customKey="hide" name="imageOverlay" filename="checkbox/checkbox.png" width="32px" height="32px"
+ post="true" length="250"/>
+ <onEnabled name="fade" start="#4" end="#f" length="150" post="false"/>
+ <onDisabled name="fade" start="#f" end="#4" length="150" post="false"/>
+ </effect>
+ </style>
</nifty-styles>
View
100 nifty-controls-style-black/src/main/resources/console/nifty-console-style.xml
@@ -1,57 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
-<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
+<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
- <registerMouseCursor id="textFieldCursor" filename="textfield/mouse-cursor-textfield.png" hotspotX="3" hotspotY="12"/>
+ <registerMouseCursor id="textFieldCursor" filename="textfield/mouse-cursor-textfield.png" hotspotX="3"
+ hotspotY="12"/>
- <!-- console panel style -->
- <style id="nifty-console-panel">
- <attributes childLayout="vertical" backgroundColor="#822A" />
- <effect>
- <onActive name="border" border="1px" color="#222f" />
- </effect>
- </style>
+ <!-- console panel style -->
+ <style id="nifty-console-panel">
+ <attributes childLayout="vertical" backgroundColor="#822A"/>
+ <effect>
+ <onActive name="border" border="1px" color="#222f"/>
+ </effect>
+ </style>
- <!-- nifty-console-listbox -->
+ <!-- nifty-console-listbox -->
- <style id="nifty-console-listbox">
- <attributes />
- </style>
- <style id="nifty-console-listbox#scrollpanel">
- <attributes focusable="true" borderBottom="1px" borderColor="#000f"/>
- </style>
- <style id="nifty-console-listbox#bottom-right">
- <attributes width="20px" height="20px" />
- </style>
- <style id="nifty-console-listbox-item">
- <attributes font="console.fnt" height="14px" width="100%" align="left" textVAlign="center" textHAlign="left" />
- <effect>
- <onCustom customKey="focus" name="colorBar" post="false" color="#4446" neverStopRendering="true" timeType="infinite" />
- </effect>
- </style>
+ <style id="nifty-console-listbox">
+ <attributes/>
+ </style>
+ <style id="nifty-console-listbox#scrollpanel">
+ <attributes focusable="true" borderBottom="1px" borderColor="#000f"/>
+ </style>
+ <style id="nifty-console-listbox#bottom-right">
+ <attributes width="20px" height="20px"/>
+ </style>
+ <style id="nifty-console-listbox-item">
+ <attributes font="console.fnt" height="14px" width="100%" align="left" textVAlign="center" textHAlign="left"/>
+ <effect>
+ <onCustom customKey="focus" name="colorBar" post="false" color="#4446" neverStopRendering="true"
+ timeType="infinite"/>
+ </effect>
+ </style>
- <!-- nifty-console-textfield -->
+ <!-- nifty-console-textfield -->
- <style id="nifty-console-textfield#panel">
- <attributes childLayout="overlay" height="20px" />
- <effect>
- <onHover name="changeMouseCursor" id="textFieldCursor" />
- <onActive name="border" border="1px,0px,0px,0px" color="#222f" />
- </effect>
- </style>
- <style id="nifty-console-textfield#field">
- <attributes childLayout="center" childClip="true" />
- </style>
- <style id="nifty-console-textfield#text">
- <attributes font="console.fnt" selectionColor="#f00f" visibleToMouse="false" align="left" textHAlign="left" textVAlign="center" valign="center"/>
- </style>
- <style id="nifty-console-textfield#cursor-panel">
- <attributes childLayout="absolute" />
- </style>
- <style id="nifty-console-textfield#cursor">
- <attributes filename="console_cursor_empty.png"/>
- <effect>
- <onCustom name="imageOverlayPulsate" period="250" timeType="infinite" pulsateType="rectangle" filename="console_cursor.png" post="true"/>
- </effect>
- </style>
+ <style id="nifty-console-textfield#panel">
+ <attributes childLayout="overlay" height="20px"/>
+ <effect>
+ <onHover name="changeMouseCursor" id="textFieldCursor"/>
+ <onActive name="border" border="1px,0px,0px,0px" color="#222f"/>
+ </effect>
+ </style>
+ <style id="nifty-console-textfield#field">
+ <attributes childLayout="center" childClip="true"/>
+ </style>
+ <style id="nifty-console-textfield#text">
+ <attributes font="console.fnt" selectionColor="#f00f" visibleToMouse="false" align="left" textHAlign="left"
+ textVAlign="center" valign="center"/>
+ </style>
+ <style id="nifty-console-textfield#cursor-panel">
+ <attributes childLayout="absolute"/>
+ </style>
+ <style id="nifty-console-textfield#cursor">
+ <attributes filename="console_cursor_empty.png"/>
+ <effect>
+ <onCustom name="imageOverlayPulsate" period="250" timeType="infinite" pulsateType="rectangle"
+ filename="console_cursor.png" post="true"/>
+ </effect>
+ </style>
</nifty-styles>
View
109 nifty-controls-style-black/src/main/resources/dropdown/nifty-drop-down.xml
@@ -1,61 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
-<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
+<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
- <style id="nifty-drop-down#panel">
- <attributes childLayout="horizontal" height="23px" focusable="true" visibleToMouse="true" />
- <effect>
- <onHover name="border" color="#822f" post="true" />
- </effect>
- </style>
+ <style id="nifty-drop-down#panel">
+ <attributes childLayout="horizontal" height="23px" focusable="true" visibleToMouse="true"/>
+ <effect>
+ <onHover name="border" color="#822f" post="true"/>
+ </effect>
+ </style>
- <style id="nifty-drop-down#panel-text">
- <attributes childLayout="center" childClip="true" backgroundColor="#666f" padding="0px,2px" width="*" />
- <effect>
- <onActive name="border" color="#222f" post="true" inset="1px" />
- <onFocus name="colorBar" color="#800f" post="true" inset="1px" />
- <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="true" length="150" />
- <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="true" length="150" />
- </effect>
- </style>
+ <style id="nifty-drop-down#panel-text">
+ <attributes childLayout="center" childClip="true" backgroundColor="#666f" padding="0px,2px" width="*"/>
+ <effect>
+ <onActive name="border" color="#222f" post="true" inset="1px"/>
+ <onFocus name="colorBar" color="#800f" post="true" inset="1px"/>
+ <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="true" length="150"/>
+ <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="true" length="150"/>
+ </effect>
+ </style>
- <style id="nifty-drop-down#text" base="base-font">
- <attributes color="#000f" selectionColor="#f00f" visibleToMouse="false" align="left" valign="center" textHAlign="left" height="23px" />
- <effect>
- <onFocus name="textColor" post="false" color="#cccf" />
- </effect>
- </style>
-
- <style id="nifty-drop-down#panel-icon">
- <attributes childLayout="center" />
- </style>
+ <style id="nifty-drop-down#text" base="base-font">
+ <attributes color="#000f" selectionColor="#f00f" visibleToMouse="false" align="left" valign="center"
+ textHAlign="left" height="23px"/>
+ <effect>
+ <onFocus name="textColor" post="false" color="#cccf"/>
+ </effect>
+ </style>
- <style id="nifty-drop-down#icon">
- <attributes filename="scrollbar/scrollbar.png" width="23px" height="23px" imageMode="sprite:23,23,0" />
- <effect>
- <onClick name="focus" targetElement="#parent" />
- <onClick name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite:23,23,2" post="true" />
- <onFocus name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite:23,23,1" post="true" />
- <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="true" length="150" />
- <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="true" length="150" />
- </effect>
- </style>
+ <style id="nifty-drop-down#panel-icon">
+ <attributes childLayout="center"/>
+ </style>
- <style id="nifty-drop-down#list-panel">
- <attributes childLayout="vertical" width="*" />
- <effect>
- <onStartScreen name="clip" length="150" inherit="true" post="false" />
- <onStartScreen name="move" length="150" timeType="exp" factor="2.5" mode="fromOffset" offsetY="-100" inherit="true" />
- <onStartScreen name="fade" length="150" startColor="#0000" endColor="#000c" inherit="true"/>
- <onEndScreen name="clip" length="150" inherit="true" post="false" />
- <onEndScreen name="move" length="150" timeType="exp" factor="2.5" mode="toOffset" offsetY="-100" inherit="true"/>
- </effect>
- </style>
+ <style id="nifty-drop-down#icon">
+ <attributes filename="scrollbar/scrollbar.png" width="23px" height="23px" imageMode="sprite:23,23,0"/>
+ <effect>
+ <onClick name="focus" targetElement="#parent"/>
+ <onClick name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite:23,23,2" post="true"/>
+ <onFocus name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite:23,23,1" post="true"/>
+ <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="true" length="150"/>
+ <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="true" length="150"/>
+ </effect>
+ </style>
- <style id="nifty-drop-down#text-item" base="base-font">
- <attributes textHAlign="left" textVAlign="center" width="100%" />
- <effect>
- <onHover name="focus" />
- <onFocus name="colorBar" color="#000f" post="false" />
- </effect>
- </style>
+ <style id="nifty-drop-down#list-panel">
+ <attributes childLayout="vertical" width="*"/>
+ <effect>
+ <onStartScreen name="clip" length="150" inherit="true" post="false"/>
+ <onStartScreen name="move" length="150" timeType="exp" factor="2.5" mode="fromOffset" offsetY="-100"
+ inherit="true"/>
+ <onStartScreen name="fade" length="150" startColor="#0000" endColor="#000c" inherit="true"/>
+ <onEndScreen name="clip" length="150" inherit="true" post="false"/>
+ <onEndScreen name="move" length="150" timeType="exp" factor="2.5" mode="toOffset" offsetY="-100"
+ inherit="true"/>
+ </effect>
+ </style>
+
+ <style id="nifty-drop-down#text-item" base="base-font">
+ <attributes textHAlign="left" textVAlign="center" width="100%"/>
+ <effect>
+ <onHover name="focus"/>
+ <onFocus name="colorBar" color="#000f" post="false"/>
+ </effect>
+ </style>
</nifty-styles>
View
20 nifty-controls-style-black/src/main/resources/fonts.xml
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
-<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
+<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
- <style id="button-font">
- <attributes font="aurulent-sans-16.fnt"/>
- </style>
+ <style id="button-font">
+ <attributes font="aurulent-sans-16.fnt"/>
+ </style>
- <style id="tab-font">
- <attributes font="aurulent-sans-16.fnt"/>
- </style>
+ <style id="tab-font">
+ <attributes font="aurulent-sans-16.fnt"/>
+ </style>
- <style id="base-font">
- <attributes font="aurulent-sans-16.fnt"/>
- </style>
+ <style id="base-font">
+ <attributes font="aurulent-sans-16.fnt"/>
+ </style>
</nifty-styles>
View
24 nifty-controls-style-black/src/main/resources/hint/nifty-hint.xml
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
-<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
+<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
- <style id="nifty-default-hint" base="nifty-panel-bright">
- <attributes childLayout="center" />
- <effect>
- <onShow name="fade" length="150" start="#0" end="#d" inherit="true" neverStopRendering="true" />
- <onCustom name="fade" length="150" start="#d" end="#0" inherit="true" neverStopRendering="true" />
- <onActive name="followMouse" />
- </effect>
- </style>
+ <style id="nifty-default-hint" base="nifty-panel-bright">
+ <attributes childLayout="center"/>
+ <effect>
+ <onShow name="fade" length="150" start="#0" end="#d" inherit="true" neverStopRendering="true"/>
+ <onCustom name="fade" length="150" start="#d" end="#0" inherit="true" neverStopRendering="true"/>
+ <onActive name="followMouse"/>
+ </effect>
+ </style>
- <style id="nifty-default-hint#hint-text" base="base-font">
- <attributes align="left" valign="center" textHAlign="left" color="#111f" />
- </style>
+ <style id="nifty-default-hint#hint-text" base="base-font">
+ <attributes align="left" valign="center" textHAlign="left" color="#111f"/>
+ </style>
</nifty-styles>
View
130 nifty-controls-style-black/src/main/resources/imageselect/nifty-image-select.xml
@@ -1,63 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>
-<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
-
- <style id="nifty-image-select">
- <attributes align="center" valign="center" childLayout="horizontal" focusable="true" visibleToMouse="true" />
- <effect>
- <onActive name="border" color="#000f" post="true" />
- <onHover name="border" color="#822f" post="true" />
- </effect>
- </style>
-
- <style id="nifty-image-select#back-button">
- <attributes backgroundImage="imageselect/background.png" imageMode="resize:2,19,2,2,2,19,2,76,2,19,2,2" width="23px" height="100%" childLayout="center" />
- <interact onClick="backClick()"/>
- <effect>
- <onClick name="focus" targetElement="#parent" />
- <onFocus name="imageOverlay" filename="imageselect/background-focus.png" imageMode="resize:2,19,2,2,2,19,2,76,2,19,2,2" post="true" />
- </effect>
- </style>
-
- <style id="nifty-image-select#back-button-image">
- <attributes filename="imageselect/left.png" align="center" valign="center" />
- <effect>
- <onCustom name="imageOverlay" filename="imageselect/left-focus.png" post="true" neverStopRendering="true" />
- </effect>
- </style>
-
- <style id="nifty-image-select#image-panel">
- <attributes childLayout="overlay" backgroundColor="#000f" childClip="true" />
- </style>
-
- <style id="nifty-image-select#image">
- <attributes align="center" valign="center" />
- <effect>
- <onCustom customKey="back" name="move" post="false" mode="fromOffset" offsetX="0" length="350" timeType="exp" factor="5" />
- <onCustom customKey="forward" name="move" post="false" mode="fromOffset" offsetX="0" length="350" timeType="exp" factor="5" />
- </effect>
- </style>
-
- <style id="nifty-image-select#image-2">
- <attributes align="center" valign="center" />
- <effect>
- <onCustom customKey="back" name="move" post="false" mode="toOffset" offsetX="0" length="350" timeType="exp" factor="5" />
- <onCustom customKey="forward" name="move" post="false" mode="toOffset" offsetX="0" length="350" timeType="exp" factor="5" />
- </effect>
- </style>
-
- <style id="nifty-image-select#forward-button">
- <attributes backgroundImage="imageselect/background.png" imageMode="resize:2,19,2,2,2,19,2,76,2,19,2,2" width="23px" height="100%" childLayout="center" />
- <interact onClick="forwardClick()"/>
- <effect>
- <onClick name="focus" targetElement="#parent" />
- <onFocus name="imageOverlay" filename="imageselect/background-focus.png" imageMode="resize:2,19,2,2,2,19,2,76,2,19,2,2" post="true" />
- </effect>
- </style>
-
- <style id="nifty-image-select#forward-button-image">
- <attributes filename="imageselect/right.png" align="center" valign="center" />
- <effect>
- <onCustom name="imageOverlay" filename="imageselect/right-focus.png" post="true" neverStopRendering="true" />
- </effect>
- </style>
+<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
+
+ <style id="nifty-image-select">
+ <attributes align="center" valign="center" childLayout="horizontal" focusable="true" visibleToMouse="true"/>
+ <effect>
+ <onActive name="border" color="#000f" post="true"/>
+ <onHover name="border" color="#822f" post="true"/>
+ </effect>
+ </style>
+
+ <style id="nifty-image-select#back-button">
+ <attributes backgroundImage="imageselect/background.png" imageMode="resize:2,19,2,2,2,19,2,76,2,19,2,2"
+ width="23px" height="100%" childLayout="center"/>
+ <interact onClick="backClick()"/>
+ <effect>
+ <onClick name="focus" targetElement="#parent"/>
+ <onFocus name="imageOverlay" filename="imageselect/background-focus.png"
+ imageMode="resize:2,19,2,2,2,19,2,76,2,19,2,2" post="true"/>
+ </effect>
+ </style>
+
+ <style id="nifty-image-select#back-button-image">
+ <attributes filename="imageselect/left.png" align="center" valign="center"/>
+ <effect>
+ <onCustom name="imageOverlay" filename="imageselect/left-focus.png" post="true" neverStopRendering="true"/>
+ </effect>
+ </style>
+
+ <style id="nifty-image-select#image-panel">
+ <attributes childLayout="overlay" backgroundColor="#000f" childClip="true"/>
+ </style>
+
+ <style id="nifty-image-select#image">
+ <attributes align="center" valign="center"/>
+ <effect>
+ <onCustom customKey="back" name="move" post="false" mode="fromOffset" offsetX="0" length="350"
+ timeType="exp" factor="5"/>
+ <onCustom customKey="forward" name="move" post="false" mode="fromOffset" offsetX="0" length="350"
+ timeType="exp" factor="5"/>
+ </effect>
+ </style>
+
+ <style id="nifty-image-select#image-2">
+ <attributes align="center" valign="center"/>
+ <effect>
+ <onCustom customKey="back" name="move" post="false" mode="toOffset" offsetX="0" length="350" timeType="exp"
+ factor="5"/>
+ <onCustom customKey="forward" name="move" post="false" mode="toOffset" offsetX="0" length="350"
+ timeType="exp" factor="5"/>
+ </effect>
+ </style>
+
+ <style id="nifty-image-select#forward-button">
+ <attributes backgroundImage="imageselect/background.png" imageMode="resize:2,19,2,2,2,19,2,76,2,19,2,2"
+ width="23px" height="100%" childLayout="center"/>
+ <interact onClick="forwardClick()"/>
+ <effect>
+ <onClick name="focus" targetElement="#parent"/>
+ <onFocus name="imageOverlay" filename="imageselect/background-focus.png"
+ imageMode="resize:2,19,2,2,2,19,2,76,2,19,2,2" post="true"/>
+ </effect>
+ </style>
+
+ <style id="nifty-image-select#forward-button-image">
+ <attributes filename="imageselect/right.png" align="center" valign="center"/>
+ <effect>
+ <onCustom name="imageOverlay" filename="imageselect/right-focus.png" post="true" neverStopRendering="true"/>
+ </effect>
+ </style>
</nifty-styles>
View
16 nifty-controls-style-black/src/main/resources/label/nifty-label.xml
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
-<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
+<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
- <!-- just some text label default -->
- <style id="nifty-label" base="base-font">
- <attributes align="center" textLineHeight="23px" textMinHeight="23px" />
- <effect>
- <onActive name="clip" post="false" />
- </effect>
- </style>
+ <!-- just some text label default -->
+ <style id="nifty-label" base="base-font">
+ <attributes align="center" textLineHeight="23px" textMinHeight="23px"/>
+ <effect>
+ <onActive name="clip" post="false"/>
+ </effect>
+ </style>
</nifty-styles>
View
60 nifty-controls-style-black/src/main/resources/listbox/nifty-listbox-style.xml
@@ -1,31 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
-<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
+<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
- <style id="nifty-listbox">
- <attributes />
- </style>
- <style id="nifty-listbox#scrollpanel">
- <attributes focusable="true" padding="1px"/>
- <effect overlay="true">
- <onActive name="colorBar" color="#666f" post="false" neverStopRendering="true" timeType="infinite" />
- <onActive name="border" border="1px" color="#222f" inset="1px,0px,0px,1px"/>
- <onFocus name="border" border="1px" color="#f006" />
- <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="false" length="150" />
- <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="false" length="150" />
- </effect>
- </style>
- <style id="nifty-listbox#bottom-right">
- <attributes width="23px" height="23px" />
- </style>
- <style id="nifty-listbox-item" base="nifty-label">
- <attributes color="#000f" width="100%" align="left" textVAlign="center" textHAlign="left" />
- <interact onClick="listBoxItemClicked()" />
- <effect>
- <onCustom customKey="focus" name="colorBar" post="false" color="#444f" neverStopRendering="true" timeType="infinite" />
- <onCustom customKey="select" name="colorBar" post="false" color="#444f" neverStopRendering="true" timeType="infinite" />
- <onCustom customKey="select" name="textColor" post="false" color="#fc0f" neverStopRendering="true" timeType="infinite" />
- <onHover name="colorBar" color="#444f" post="false" neverStopRendering="true" timeType="infinite" inset="1px"/>
- <onClick name="focus" targetElement="#parent#parent"/>
- </effect>
- </style>
+ <style id="nifty-listbox">
+ <attributes/>
+ </style>
+ <style id="nifty-listbox#scrollpanel">
+ <attributes focusable="true" padding="1px"/>
+ <effect overlay="true">
+ <onActive name="colorBar" color="#666f" post="false" neverStopRendering="true" timeType="infinite"/>
+ <onActive name="border" border="1px" color="#222f" inset="1px,0px,0px,1px"/>
+ <onFocus name="border" border="1px" color="#f006"/>
+ <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="false" length="150"/>
+ <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="false" length="150"/>
+ </effect>
+ </style>
+ <style id="nifty-listbox#bottom-right">
+ <attributes width="23px" height="23px"/>
+ </style>
+ <style id="nifty-listbox-item" base="nifty-label">
+ <attributes color="#000f" width="100%" align="left" textVAlign="center" textHAlign="left"/>
+ <interact onClick="listBoxItemClicked()"/>
+ <effect>
+ <onCustom customKey="focus" name="colorBar" post="false" color="#444f" neverStopRendering="true"
+ timeType="infinite"/>
+ <onCustom customKey="select" name="colorBar" post="false" color="#444f" neverStopRendering="true"
+ timeType="infinite"/>
+ <onCustom customKey="select" name="textColor" post="false" color="#fc0f" neverStopRendering="true"
+ timeType="infinite"/>
+ <onHover name="colorBar" color="#444f" post="false" neverStopRendering="true" timeType="infinite"
+ inset="1px"/>
+ <onClick name="focus" targetElement="#parent#parent"/>
+ </effect>
+ </style>
</nifty-styles>
View
38 nifty-controls-style-black/src/main/resources/menu/nifty-menu-style.xml
@@ -1,25 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
-<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
+<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
- <!-- nifty menu item style -->
- <style id="niftyMenuItemStyle">
- <attributes width="100%" childLayout="horizontal" focusable="true" />
- <effect>
- <onHover name="focus" />
- <onFocus name="colorBar" color="#4448" />
- </effect>
- </style>
+ <!-- nifty menu item style -->
+ <style id="niftyMenuItemStyle">
+ <attributes width="100%" childLayout="horizontal" focusable="true"/>
+ <effect>
+ <onHover name="focus"/>
+ <onFocus name="colorBar" color="#4448"/>
+ </effect>
+ </style>
- <style id="niftyMenuItemStyle#text" base="nifty-label">
- <attributes textHAlign="left" width="*" color="#222f" />
- </style>
+ <style id="niftyMenuItemStyle#text" base="nifty-label">
+ <attributes textHAlign="left" width="*" color="#222f"/>
+ </style>
- <!-- nifty menu item separator style -->
- <style id="niftyMenuItemSeparatorStyle">
- <attributes width="100%" height="10px" childLayout="center" paddingLeft="5px" paddingRight="5px" />
- </style>
+ <!-- nifty menu item separator style -->
+ <style id="niftyMenuItemSeparatorStyle">
+ <attributes width="100%" height="10px" childLayout="center" paddingLeft="5px" paddingRight="5px"/>
+ </style>
- <style id="niftyMenuItemSeparatorStyle#line">
- <attributes width="100%" height="1px" align="center" valign="center" backgroundColor="#777f" />
- </style>
+ <style id="niftyMenuItemSeparatorStyle#line">
+ <attributes width="100%" height="1px" align="center" valign="center" backgroundColor="#777f"/>
+ </style>
</nifty-styles>
View
15 nifty-controls-style-black/src/main/resources/messagebox/nifty-messagebox.xml
@@ -1,11 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
-<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
+<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
- <style id="nifty-standard-messagebox-popup-style">
- <attributes childLayout="center" backgroundColor="#0006" />
- </style>
+ <style id="nifty-standard-messagebox-popup-style">
+ <attributes childLayout="center" backgroundColor="#0006"/>
+ </style>
- <style id="nifty-standard-messagebox-style">
- <attributes align="center" valign="center" padding="15px" backgroundImage="panel/nifty-panel-hint.png" imageMode="resize:8,210,8,8,8,210,8,209,8,210,8,8" />
- </style>
+ <style id="nifty-standard-messagebox-style">
+ <attributes align="center" valign="center" padding="15px" backgroundImage="panel/nifty-panel-hint.png"
+ imageMode="resize:8,210,8,8,8,210,8,209,8,210,8,8"/>
+ </style>
</nifty-styles>
View
42 nifty-controls-style-black/src/main/resources/nifty-default-styles.xml
@@ -1,24 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
- <useStyles filename="fonts.xml" />
- <useStyles filename="panel/nifty-panel.xml" />
- <useStyles filename="button/nifty-button.xml" />
- <useStyles filename="label/nifty-label.xml" />
- <useStyles filename="textfield/nifty-textfield.xml" />
- <useStyles filename="dropdown/nifty-drop-down.xml" />
- <useStyles filename="imageselect/nifty-image-select.xml" />
- <useStyles filename="checkbox/nifty-checkbox.xml" />
- <useStyles filename="radiobutton/nifty-radiobutton.xml" />
- <useStyles filename="scrollbar/nifty-scrollbar-style.xml" />
- <useStyles filename="slider/nifty-slider-style.xml" />
- <useStyles filename="scrollpanel/nifty-scrollpanel-style.xml" />
- <useStyles filename="console/nifty-console-style.xml" />
- <useStyles filename="chat-control/nifty-chat-control.xml" />
- <useStyles filename="menu/nifty-menu-style.xml" />
- <useStyles filename="listbox/nifty-listbox-style.xml" />
- <useStyles filename="window/nifty-window.xml" />
- <useStyles filename="hint/nifty-hint.xml" />
- <useStyles filename="tabs/nifty-tabs.xml" />
- <useStyles filename="treebox/nifty-treebox.xml" />
- <useStyles filename="messagebox/nifty-messagebox.xml" />
+ <useStyles filename="fonts.xml"/>
+ <useStyles filename="panel/nifty-panel.xml"/>
+ <useStyles filename="button/nifty-button.xml"/>
+ <useStyles filename="label/nifty-label.xml"/>
+ <useStyles filename="textfield/nifty-textfield.xml"/>
+ <useStyles filename="dropdown/nifty-drop-down.xml"/>
+ <useStyles filename="imageselect/nifty-image-select.xml"/>
+ <useStyles filename="checkbox/nifty-checkbox.xml"/>
+ <useStyles filename="radiobutton/nifty-radiobutton.xml"/>
+ <useStyles filename="scrollbar/nifty-scrollbar-style.xml"/>
+ <useStyles filename="slider/nifty-slider-style.xml"/>
+ <useStyles filename="scrollpanel/nifty-scrollpanel-style.xml"/>
+ <useStyles filename="console/nifty-console-style.xml"/>
+ <useStyles filename="chat-control/nifty-chat-control.xml"/>
+ <useStyles filename="menu/nifty-menu-style.xml"/>
+ <useStyles filename="listbox/nifty-listbox-style.xml"/>
+ <useStyles filename="window/nifty-window.xml"/>
+ <useStyles filename="hint/nifty-hint.xml"/>
+ <useStyles filename="tabs/nifty-tabs.xml"/>
+ <useStyles filename="treebox/nifty-treebox.xml"/>
+ <useStyles filename="messagebox/nifty-messagebox.xml"/>
</nifty-styles>
View
44 nifty-controls-style-black/src/main/resources/panel/nifty-panel.xml
@@ -1,28 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
-<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
+<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
- <style id="nifty-panel">
- <attributes padding="8px,16px,24px,16px" backgroundImage="panel/nifty-panel.png" imageMode="resize:28,184,28,28,28,184,28,154,28,184,28,58" />
- </style>
+ <style id="nifty-panel">
+ <attributes padding="8px,16px,24px,16px" backgroundImage="panel/nifty-panel.png"
+ imageMode="resize:28,184,28,28,28,184,28,154,28,184,28,58"/>
+ </style>
- <style id="nifty-panel-red">
- <attributes padding="8px,16px,24px,16px" backgroundImage="panel/nifty-panel-red.png" imageMode="resize:28,184,28,8,28,184,28,174,28,184,28,58" />
- </style>
+ <style id="nifty-panel-red">
+ <attributes padding="8px,16px,24px,16px" backgroundImage="panel/nifty-panel-red.png"
+ imageMode="resize:28,184,28,8,28,184,28,174,28,184,28,58"/>
+ </style>
- <style id="nifty-panel-no-shadow">
- <attributes padding="8px" backgroundImage="panel/nifty-panel-no-shadow.png" imageMode="resize:8,210,8,8,8,210,8,209,8,210,8,8" />
- </style>
+ <style id="nifty-panel-no-shadow">
+ <attributes padding="8px" backgroundImage="panel/nifty-panel-no-shadow.png"
+ imageMode="resize:8,210,8,8,8,210,8,209,8,210,8,8"/>
+ </style>
- <style id="nifty-panel-red-no-shadow">
- <attributes padding="8px" backgroundImage="panel/nifty-panel-red-no-shadow.png" imageMode="resize:8,210,8,8,8,210,8,209,8,210,8,8" />
- </style>
+ <style id="nifty-panel-red-no-shadow">
+ <attributes padding="8px" backgroundImage="panel/nifty-panel-red-no-shadow.png"
+ imageMode="resize:8,210,8,8,8,210,8,209,8,210,8,8"/>
+ </style>
- <style id="nifty-panel-simple">
- <attributes padding="5px" backgroundImage="panel/nifty-panel-simple.png" imageMode="resize:9,2,9,9,9,2,9,2,9,2,9,9" />
- </style>
+ <style id="nifty-panel-simple">
+ <attributes padding="5px" backgroundImage="panel/nifty-panel-simple.png"
+ imageMode="resize:9,2,9,9,9,2,9,2,9,2,9,9"/>
+ </style>
- <style id="nifty-panel-bright">
- <attributes padding="5px" backgroundImage="panel/nifty-panel-hint.png" imageMode="resize:8,210,8,8,8,210,8,209,8,210,8,8" />
- </style>
+ <style id="nifty-panel-bright">
+ <attributes padding="5px" backgroundImage="panel/nifty-panel-hint.png"
+ imageMode="resize:8,210,8,8,8,210,8,209,8,210,8,8"/>
+ </style>
</nifty-styles>
View
44 nifty-controls-style-black/src/main/resources/radiobutton/nifty-radiobutton.xml
@@ -1,22 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
-<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
+<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
- <style id="nifty-radiobutton-style#panel">
- <attributes width="23px" height="23px" childLayout="center" focusable="true" visibleToMouse="true" />
- </style>
-
- <style id="nifty-radiobutton-style#select">
- <attributes childLayout="overlay" align="center" valign="center" width="23px" height="23px" filename="radiobutton/radiobutton.png" />
- <effect overlay="true">
- <onEnabled name="fade" start="#5" end="#f" post="false" length="150" inherit="true"/>
- <onDisabled name="fade" start="#f" end="#5" post="false" length="150" inherit="true" neverStopRendering="true" />
- <onCustom customKey="show" name="imageSize" startSize="2.0" endSize="1.0" length="150" post="true" />
- <onCustom customKey="show" name="fade" start="#0" end="#f" length="150" post="true" />
- <onCustom customKey="show" name="imageOverlay" filename="radiobutton/radiobutton-checked.png" width="23px" height="23px" post="true" neverStopRendering="true" />
- <onCustom customKey="hide" name="fade" start="#f" end="#0" length="350" post="true" />
- <onCustom customKey="hide" name="imageOverlay" filename="radiobutton/radiobutton-checked.png" width="23px" height="23px" post="true" length="350" />
- <onFocus name="imageOverlay" filename="radiobutton/radiobutton-hover.png" width="23px" height="23px" post="true" />
- <onHover name="imageOverlay" filename="radiobutton/radiobutton-hover.png" width="23px" height="23px" post="true" />
- </effect>
- </style>
+ <style id="nifty-radiobutton-style#panel">
+ <attributes width="23px" height="23px" childLayout="center" focusable="true" visibleToMouse="true"/>
+ </style>
+
+ <style id="nifty-radiobutton-style#select">
+ <attributes childLayout="overlay" align="center" valign="center" width="23px" height="23px"
+ filename="radiobutton/radiobutton.png"/>
+ <effect overlay="true">
+ <onEnabled name="fade" start="#5" end="#f" post="false" length="150" inherit="true"/>
+ <onDisabled name="fade" start="#f" end="#5" post="false" length="150" inherit="true"
+ neverStopRendering="true"/>
+ <onCustom customKey="show" name="imageSize" startSize="2.0" endSize="1.0" length="150" post="true"/>
+ <onCustom customKey="show" name="fade" start="#0" end="#f" length="150" post="true"/>
+ <onCustom customKey="show" name="imageOverlay" filename="radiobutton/radiobutton-checked.png" width="23px"
+ height="23px" post="true" neverStopRendering="true"/>
+ <onCustom customKey="hide" name="fade" start="#f" end="#0" length="350" post="true"/>
+ <onCustom customKey="hide" name="imageOverlay" filename="radiobutton/radiobutton-checked.png" width="23px"
+ height="23px" post="true" length="350"/>
+ <onFocus name="imageOverlay" filename="radiobutton/radiobutton-hover.png" width="23px" height="23px"
+ post="true"/>
+ <onHover name="imageOverlay" filename="radiobutton/radiobutton-hover.png" width="23px" height="23px"
+ post="true"/>
+ </effect>
+ </style>
</nifty-styles>
View
192 nifty-controls-style-black/src/main/resources/scrollbar/nifty-scrollbar-style.xml
@@ -1,94 +1,106 @@
<?xml version="1.0" encoding="UTF-8"?>
<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
- <!-- ++++++++ -->
- <!-- vertical -->
- <!-- ++++++++ -->
- <style id="nifty-vertical-scrollbar#panel">
- <attributes childLayout="vertical" width="23px" align="center" focusable="true" />
- </style>
- <style id="nifty-vertical-scrollbar#up">
- <attributes filename="scrollbar/scrollbar.png" width="23px" height="23px" imageMode="sprite:23,23,3"/>
- <effect>
- <onClick name="focus" targetElement="#parent" />
- <onClick name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite:23,23,5" post="true" />
- <onFocus name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite:23,23,4" post="true" />
- <onHover name="border" color="#822f" post="true" />
- <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="true" length="150" />
- <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="true" length="150" />
- </effect>
- </style>
- <style id="nifty-vertical-scrollbar#down">
- <attributes filename="scrollbar/scrollbar.png" width="23px" height="23px" imageMode="sprite:23,23,0"/>
- <effect>
- <onClick name="focus" targetElement="#parent" />
- <onClick name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite:23,23,2" post="true" />
- <onFocus name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite:23,23,1" post="true" />
- <onHover name="border" color="#822f" post="true" />
- <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="true" length="150" />
- <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="true" length="150" />
- </effect>
- </style>
- <style id="nifty-vertical-scrollbar#background">
- <attributes filename="scrollbar/scrollbar.png" width="23px" height="*" childLayout="absolute" imageMode="sprite:23,23,12"/>
- <effect>
- <onClick name="focus" targetElement="#parent" />
- </effect>
- </style>
- <style id="nifty-vertical-scrollbar#position">
- <attributes filename="scrollbar/scrollbar.png" x="0px" y="0px" width="23px" height="8px" imageMode="sprite-resize:23,23,13,4,15,4,4,4,15,4,15,4,15,4,4" childLayout="center" />
- <effect>
- <onActive name="imageOverlay" filename="scrollbar/scrollbar.png" width="7px" height="8px" imageMode="subImage:468,0,7,8" post="true" overlay="true" center="true" hideIfNotEnoughSpace="true" />
- <onClick name="focus" targetElement="#parent#parent" />
- <onFocus name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite-resize:23,23,15,4,15,4,4,4,15,4,15,4,15,4,4" post="true" />
- <onHover name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite-resize:23,23,14,4,15,4,4,4,15,4,15,4,15,4,4" post="true" />
- <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="true" length="150" />
- <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="true" length="150" />
- </effect>
- </style>
+ <!-- ++++++++ -->
+ <!-- vertical -->
+ <!-- ++++++++ -->
+ <style id="nifty-vertical-scrollbar#panel">
+ <attributes childLayout="vertical" width="23px" align="center" focusable="true"/>
+ </style>
+ <style id="nifty-vertical-scrollbar#up">
+ <attributes filename="scrollbar/scrollbar.png" width="23px" height="23px" imageMode="sprite:23,23,3"/>
+ <effect>
+ <onClick name="focus" targetElement="#parent"/>
+ <onClick name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite:23,23,5" post="true"/>
+ <onFocus name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite:23,23,4" post="true"/>
+ <onHover name="border" color="#822f" post="true"/>
+ <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="true" length="150"/>
+ <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="true" length="150"/>
+ </effect>
+ </style>
+ <style id="nifty-vertical-scrollbar#down">
+ <attributes filename="scrollbar/scrollbar.png" width="23px" height="23px" imageMode="sprite:23,23,0"/>
+ <effect>
+ <onClick name="focus" targetElement="#parent"/>
+ <onClick name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite:23,23,2" post="true"/>
+ <onFocus name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite:23,23,1" post="true"/>
+ <onHover name="border" color="#822f" post="true"/>
+ <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="true" length="150"/>
+ <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="true" length="150"/>
+ </effect>
+ </style>
+ <style id="nifty-vertical-scrollbar#background">
+ <attributes filename="scrollbar/scrollbar.png" width="23px" height="*" childLayout="absolute"
+ imageMode="sprite:23,23,12"/>
+ <effect>
+ <onClick name="focus" targetElement="#parent"/>
+ </effect>
+ </style>
+ <style id="nifty-vertical-scrollbar#position">
+ <attributes filename="scrollbar/scrollbar.png" x="0px" y="0px" width="23px" height="8px"
+ imageMode="sprite-resize:23,23,13,4,15,4,4,4,15,4,15,4,15,4,4" childLayout="center"/>
+ <effect>
+ <onActive name="imageOverlay" filename="scrollbar/scrollbar.png" width="7px" height="8px"
+ imageMode="subImage:468,0,7,8" post="true" overlay="true" center="true"
+ hideIfNotEnoughSpace="true"/>
+ <onClick name="focus" targetElement="#parent#parent"/>
+ <onFocus name="imageOverlay" filename="scrollbar/scrollbar.png"
+ imageMode="sprite-resize:23,23,15,4,15,4,4,4,15,4,15,4,15,4,4" post="true"/>
+ <onHover name="imageOverlay" filename="scrollbar/scrollbar.png"
+ imageMode="sprite-resize:23,23,14,4,15,4,4,4,15,4,15,4,15,4,4" post="true"/>
+ <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="true" length="150"/>
+ <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="true" length="150"/>
+ </effect>
+ </style>
- <!-- ++++++++++ -->
- <!-- horizontal -->
- <!-- ++++++++++ -->
- <style id="nifty-horizontal-scrollbar#panel">
- <attributes childLayout="horizontal" height="23px" align="center" focusable="true" />
- </style>
- <style id="nifty-horizontal-scrollbar#left">
- <attributes filename="scrollbar/scrollbar.png" width="23px" height="23px" imageMode="sprite:23,23,6"/>
- <effect>
- <onClick name="focus" targetElement="#parent" />
- <onClick name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite:23,23,8" post="true" />
- <onFocus name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite:23,23,7" post="true" />
- <onHover name="border" color="#822f" post="true" />
- <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="true" length="150" />
- <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="true" length="150" />
- </effect>
- </style>
- <style id="nifty-horizontal-scrollbar#right">
- <attributes filename="scrollbar/scrollbar.png" width="23px" height="23px" imageMode="sprite:23,23,9"/>
- <effect>
- <onClick name="focus" targetElement="#parent" />
- <onClick name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite:23,23,11" post="true" />
- <onFocus name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite:23,23,10" post="true" />
- <onHover name="border" color="#822f" post="true" />
- <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="true" length="150" />
- <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="true" length="150" />
- </effect>
- </style>
- <style id="nifty-horizontal-scrollbar#background">
- <attributes filename="scrollbar/scrollbar.png" width="*" height="23px" childLayout="absolute" imageMode="sprite-resize:23,23,16,4,15,4,4,4,15,4,15,4,15,4,4" />
- <effect>
- <onClick name="focus" targetElement="#parent" />
- </effect>
- </style>
- <style id="nifty-horizontal-scrollbar#position">
- <attributes filename="scrollbar/scrollbar.png" x="0px" y="0px" width="8px" height="23px" imageMode="sprite-resize:23,23,17,4,15,4,4,4,15,4,15,4,15,4,4" />
- <effect>
- <onActive name="imageOverlay" filename="scrollbar/scrollbar.png" width="8px" height="7px" imageMode="subImage:490,8,8,7" post="true" overlay="true" center="true" hideIfNotEnoughSpace="true" />
- <onClick name="focus" targetElement="#parent#parent" />
- <onFocus name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite-resize:23,23,19,4,15,4,4,4,15,4,15,4,15,4,4" post="true" />
- <onHover name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite-resize:23,23,18,4,15,4,4,4,15,4,15,4,15,4,4" post="true" />
- <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="true" length="150" />
- <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="true" length="150" />
- </effect>
- </style>
+ <!-- ++++++++++ -->
+ <!-- horizontal -->
+ <!-- ++++++++++ -->
+ <style id="nifty-horizontal-scrollbar#panel">
+ <attributes childLayout="horizontal" height="23px" align="center" focusable="true"/>
+ </style>
+ <style id="nifty-horizontal-scrollbar#left">
+ <attributes filename="scrollbar/scrollbar.png" width="23px" height="23px" imageMode="sprite:23,23,6"/>
+ <effect>
+ <onClick name="focus" targetElement="#parent"/>
+ <onClick name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite:23,23,8" post="true"/>
+ <onFocus name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite:23,23,7" post="true"/>
+ <onHover name="border" color="#822f" post="true"/>
+ <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="true" length="150"/>
+ <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="true" length="150"/>
+ </effect>
+ </style>
+ <style id="nifty-horizontal-scrollbar#right">
+ <attributes filename="scrollbar/scrollbar.png" width="23px" height="23px" imageMode="sprite:23,23,9"/>
+ <effect>
+ <onClick name="focus" targetElement="#parent"/>
+ <onClick name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite:23,23,11" post="true"/>
+ <onFocus name="imageOverlay" filename="scrollbar/scrollbar.png" imageMode="sprite:23,23,10" post="true"/>
+ <onHover name="border" color="#822f" post="true"/>
+ <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="true" length="150"/>
+ <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="true" length="150"/>
+ </effect>
+ </style>
+ <style id="nifty-horizontal-scrollbar#background">
+ <attributes filename="scrollbar/scrollbar.png" width="*" height="23px" childLayout="absolute"
+ imageMode="sprite-resize:23,23,16,4,15,4,4,4,15,4,15,4,15,4,4"/>
+ <effect>
+ <onClick name="focus" targetElement="#parent"/>
+ </effect>
+ </style>
+ <style id="nifty-horizontal-scrollbar#position">
+ <attributes filename="scrollbar/scrollbar.png" x="0px" y="0px" width="8px" height="23px"
+ imageMode="sprite-resize:23,23,17,4,15,4,4,4,15,4,15,4,15,4,4"/>
+ <effect>
+ <onActive name="imageOverlay" filename="scrollbar/scrollbar.png" width="8px" height="7px"
+ imageMode="subImage:490,8,8,7" post="true" overlay="true" center="true"
+ hideIfNotEnoughSpace="true"/>
+ <onClick name="focus" targetElement="#parent#parent"/>
+ <onFocus name="imageOverlay" filename="scrollbar/scrollbar.png"
+ imageMode="sprite-resize:23,23,19,4,15,4,4,4,15,4,15,4,15,4,4" post="true"/>
+ <onHover name="imageOverlay" filename="scrollbar/scrollbar.png"
+ imageMode="sprite-resize:23,23,18,4,15,4,4,4,15,4,15,4,15,4,4" post="true"/>
+ <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="true" length="150"/>
+ <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="true" length="150"/>
+ </effect>
+ </style>
</nifty-styles>
View
23 nifty-controls-style-black/src/main/resources/scrollpanel/nifty-scrollpanel-style.xml
@@ -1,14 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
-<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
+<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
- <style id="nifty-scrollpanel#scrollpanel">
- <attributes backgroundColor="#ffff" />
- <effect overlay="true">
- <onActive name="blendMode" blendMode="multiply" post="true" />
- <onActive name="imageOverlay" filename="blackborder.png" imageMode="resize:1,30,1,1,1,30,1,1,1,30,1,1" post="true" />
- </effect>
- </style>
- <style id="nifty-scrollpanel#bottom-right">
- <attributes width="23px" height="23px" />
- </style>
+ <style id="nifty-scrollpanel#scrollpanel">
+ <attributes backgroundColor="#ffff"/>
+ <effect overlay="true">
+ <onActive name="blendMode" blendMode="multiply" post="true"/>
+ <onActive name="imageOverlay" filename="blackborder.png" imageMode="resize:1,30,1,1,1,30,1,1,1,30,1,1"
+ post="true"/>
+ </effect>
+ </style>
+ <style id="nifty-scrollpanel#bottom-right">
+ <attributes width="23px" height="23px"/>
+ </style>
</nifty-styles>
View
184 nifty-controls-style-black/src/main/resources/slider/nifty-slider-style.xml
@@ -1,92 +1,100 @@
<?xml version="1.0" encoding="UTF-8"?>
<nifty-styles xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
- <!-- ++++++++ -->
- <!-- vertical -->
- <!-- ++++++++ -->
- <style id="nifty-vertical-slider#panel">
- <attributes childLayout="vertical" width="23px" align="center" focusable="true" />
- </style>
- <style id="nifty-vertical-slider#up">
- <attributes filename="slider/slider.png" width="23px" height="23px" imageMode="sprite:23,23,3"/>
- <effect>
- <onClick name="focus" targetElement="#parent" />
- <onClick name="imageOverlay" filename="slider/slider.png" imageMode="sprite:23,23,5" post="true" />
- <onFocus name="imageOverlay" filename="slider/slider.png" imageMode="sprite:23,23,4" post="true" />
- <onHover name="border" color="#822f" post="true" />
- <onEnabled name="renderQuad" startColor="#2228" endColor="#2220" post="true" length="150" />
- <onDisabled name="renderQuad" startColor="#2220" endColor="#2228" post="true" length="150" />
- </effect>
- </style>
- <style id="nifty-vertical-slider#background">
- <attributes filename="slider/slider.png" width="23px" height="*" childLayout="absolute" imageMode="sprite:23,23,12"/>
- <effect>
- <onClick name="focus" targetElement="#parent" />
- </effect>
- </style>
- <style id="nifty-vertical-slider#down">
- <attributes filename="slider/slider.png" width="23px" height="23px" imageMode="sprite:23,23,0"/>
- <effect>