Skip to content

Commit

Permalink
[Add] Added RadioButton widget
Browse files Browse the repository at this point in the history
  • Loading branch information
Brov3r committed Aug 4, 2024
1 parent dd43b66 commit 6123bfa
Show file tree
Hide file tree
Showing 14 changed files with 1,818 additions and 42 deletions.
3 changes: 1 addition & 2 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

- Launch scripts updated
- Fixed the custom command manager (the @CommandChatReturn annotation was removed as unnecessary)
- Fixed NVG context closing
- Minor bugs fixed
- Added client side plugin example
- Added `.exe` executable files for Windows, allowing launch from Steam
Expand All @@ -11,7 +10,7 @@
- Added `onWidgetManagerInitialized`, `OnPreWidgetRender`, `OnPostWidgetRender` events
- Added default fonts: `Arial-Regular`, `Roboto-Regular`, `Montserrat-Regular`, `FontAwesome`
- Added basic
widgets: `Panel`, `Button`, `Scrollbar`, `ScrollPanel`, `Window`, `Label`, `InputText`, `Checkbox`, `Slider`, `Popup`, `Modal`, `ComboBox`, `HorizontalBox`, `VerticalBox`
widgets: `Panel`, `Button`, `Scrollbar`, `ScrollPanel`, `Window`, `Label`, `InputText`, `Checkbox`, `Slider`, `Popup`, `Modal`, `ComboBox`, `HorizontalBox`, `VerticalBox`, `RadioButton`
- Added `ResourceManager` and `ImageLoader`
- Event renamed: `onPostTickRenderThread` -> `onTickRenderThread`

Expand Down
54 changes: 29 additions & 25 deletions docs/javadoc/allclasses-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1230,57 +1230,61 @@ <h1 title="All Classes and Interfaces" class="title">All Classes and Interfaces<
<div class="col-last odd-row-color all-classes-table all-classes-table-tab3">
<div class="block">The enumeration defines five priority levels.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/resources/ResourceManager.html" title="class in com.avrix.resources">ResourceManager</a></div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/ui/widgets/RadioButtonWidget.html" title="class in com.avrix.ui.widgets">RadioButtonWidget</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">
<div class="block">Manages resources such as images, including caching and encoding utilities.</div>
<div class="block">A <a href="com/avrix/ui/widgets/Widget.html" title="class in com.avrix.ui.widgets"><code>Widget</code></a> that represents a set of radio buttons.</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/ui/widgets/ScrollbarWidget.html" title="class in com.avrix.ui.widgets">ScrollbarWidget</a></div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/resources/ResourceManager.html" title="class in com.avrix.resources">ResourceManager</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
<div class="block">The <a href="com/avrix/ui/widgets/ScrollbarWidget.html" title="class in com.avrix.ui.widgets"><code>ScrollbarWidget</code></a> class represents a scrollbar component that can be either horizontal or vertical.</div>
<div class="block">Manages resources such as images, including caching and encoding utilities.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/ui/widgets/ScrollPanelWidget.html" title="class in com.avrix.ui.widgets">ScrollPanelWidget</a></div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/ui/widgets/ScrollbarWidget.html" title="class in com.avrix.ui.widgets">ScrollbarWidget</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">
<div class="block">The <a href="com/avrix/ui/widgets/ScrollPanelWidget.html" title="class in com.avrix.ui.widgets"><code>ScrollPanelWidget</code></a> class represents a panel widget that supports scrolling.</div>
<div class="block">The <a href="com/avrix/ui/widgets/ScrollbarWidget.html" title="class in com.avrix.ui.widgets"><code>ScrollbarWidget</code></a> class represents a scrollbar component that can be either horizontal or vertical.</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/plugin/ServiceManager.html" title="class in com.avrix.plugin">ServiceManager</a></div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/ui/widgets/ScrollPanelWidget.html" title="class in com.avrix.ui.widgets">ScrollPanelWidget</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
<div class="block">The service manager allows you to register services by their interfaces and access them</div>
<div class="block">The <a href="com/avrix/ui/widgets/ScrollPanelWidget.html" title="class in com.avrix.ui.widgets"><code>ScrollPanelWidget</code></a> class represents a panel widget that supports scrolling.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/ui/widgets/SliderWidget.html" title="class in com.avrix.ui.widgets">SliderWidget</a></div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/plugin/ServiceManager.html" title="class in com.avrix.plugin">ServiceManager</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">
<div class="block">Represents a slider widget that allows the user to select a value by dragging a thumb along a bar.</div>
<div class="block">The service manager allows you to register services by their interfaces and access them</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/utils/TextUtils.html" title="class in com.avrix.utils">TextUtils</a></div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/ui/widgets/SliderWidget.html" title="class in com.avrix.ui.widgets">SliderWidget</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
<div class="block">A set of tools for manipulating text and rendering it</div>
<div class="block">Represents a slider widget that allows the user to select a value by dragging a thumb along a bar.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/utils/VersionChecker.html" title="class in com.avrix.utils">VersionChecker</a></div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/utils/TextUtils.html" title="class in com.avrix.utils">TextUtils</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">
<div class="block">A set of tools for checking the compatibility of two versions.</div>
<div class="block">A set of tools for manipulating text and rendering it</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/ui/widgets/VerticalBoxWidget.html" title="class in com.avrix.ui.widgets">VerticalBoxWidget</a></div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/utils/VersionChecker.html" title="class in com.avrix.utils">VersionChecker</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
<div class="block">A <a href="com/avrix/ui/widgets/Widget.html" title="class in com.avrix.ui.widgets"><code>Widget</code></a> that arranges its children vertically with a specified margin between them.</div>
<div class="block">A set of tools for checking the compatibility of two versions.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/ui/widgets/Widget.html" title="class in com.avrix.ui.widgets">Widget</a></div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/ui/widgets/VerticalBoxWidget.html" title="class in com.avrix.ui.widgets">VerticalBoxWidget</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">
<div class="block">Abstract base class for all UI <a href="com/avrix/ui/widgets/Widget.html" title="class in com.avrix.ui.widgets"><code>Widget</code></a>'s.</div>
<div class="block">A <a href="com/avrix/ui/widgets/Widget.html" title="class in com.avrix.ui.widgets"><code>Widget</code></a> that arranges its children vertically with a specified margin between them.</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/ui/WidgetManager.html" title="class in com.avrix.ui">WidgetManager</a></div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/ui/widgets/Widget.html" title="class in com.avrix.ui.widgets">Widget</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
<div class="block">Manages a collection of <a href="com/avrix/ui/widgets/Widget.html" title="class in com.avrix.ui.widgets"><code>Widget</code></a> instances, handling rendering and updates.</div>
<div class="block">Abstract base class for all UI <a href="com/avrix/ui/widgets/Widget.html" title="class in com.avrix.ui.widgets"><code>Widget</code></a>'s.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/utils/WindowUtils.html" title="class in com.avrix.utils">WindowUtils</a></div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/ui/WidgetManager.html" title="class in com.avrix.ui">WidgetManager</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">
<div class="block">A set of tools for managing the game window</div>
<div class="block">Manages a collection of <a href="com/avrix/ui/widgets/Widget.html" title="class in com.avrix.ui.widgets"><code>Widget</code></a> instances, handling rendering and updates.</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/ui/widgets/WindowWidget.html" title="class in com.avrix.ui.widgets">WindowWidget</a></div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/utils/WindowUtils.html" title="class in com.avrix.utils">WindowUtils</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
<div class="block">A set of tools for managing the game window</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/ui/widgets/WindowWidget.html" title="class in com.avrix.ui.widgets">WindowWidget</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">
<div class="block">Represents a <a href="com/avrix/ui/widgets/Widget.html" title="class in com.avrix.ui.widgets"><code>Widget</code></a> panel that can be customized with various properties such as font, title,
header color, and header height.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/utils/YamlFile.html" title="class in com.avrix.utils">YamlFile</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="com/avrix/utils/YamlFile.html" title="class in com.avrix.utils">YamlFile</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
<div class="block">This class represents a YAML file and provides methods to read, write, and manipulate its contents.</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/javadoc/com/avrix/ui/widgets/PanelWidget.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h1 title="Class PanelWidget" class="title">Class PanelWidget</h1>
<section class="class-description" id="class-description">
<dl class="notes">
<dt>Direct Known Subclasses:</dt>
<dd><code><a href="ButtonWidget.html" title="class in com.avrix.ui.widgets">ButtonWidget</a></code>, <code><a href="ComboBoxWidget.html" title="class in com.avrix.ui.widgets">ComboBoxWidget</a></code>, <code><a href="InputTextWidget.html" title="class in com.avrix.ui.widgets">InputTextWidget</a></code>, <code><a href="ScrollbarWidget.html" title="class in com.avrix.ui.widgets">ScrollbarWidget</a></code>, <code><a href="ScrollPanelWidget.html" title="class in com.avrix.ui.widgets">ScrollPanelWidget</a></code></dd>
<dd><code><a href="ButtonWidget.html" title="class in com.avrix.ui.widgets">ButtonWidget</a></code>, <code><a href="ComboBoxWidget.html" title="class in com.avrix.ui.widgets">ComboBoxWidget</a></code>, <code><a href="InputTextWidget.html" title="class in com.avrix.ui.widgets">InputTextWidget</a></code>, <code><a href="RadioButtonWidget.RadioValue.html" title="class in com.avrix.ui.widgets">RadioButtonWidget.RadioValue</a></code>, <code><a href="ScrollbarWidget.html" title="class in com.avrix.ui.widgets">ScrollbarWidget</a></code>, <code><a href="ScrollPanelWidget.html" title="class in com.avrix.ui.widgets">ScrollPanelWidget</a></code></dd>
</dl>
<hr>
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">PanelWidget</span>
Expand Down
Loading

0 comments on commit 6123bfa

Please sign in to comment.