![]() Dimension: Implemented using two spinner boxes. ![]() A user will be presented with a drop-down box with the ability to select an option from the provided list Enumerator: Implemented using a simple combobox.Color: Implemented using a color selector interface available in Java.Commonly used to store multiple string values by using a comma-separated list of strings. String: Implemented using a simple textbox, allowing the user to enter in a string.Can use up and down arrows to increase or decrease the integer value, or type an integer value directly in the box Integer: Implemented using a simple spinner box.Check for enabled (true) or unchecked for disabled (false) Boolean: Implemented using a simple checkbox.I have classified these below based on the type of value they are designed to store. Specifically, there are six different options. Note the different configuration menu entries that include check boxes, combo boxes and color selectors.Īs you can see from the examples, the RuneLite configuration system allows for the inclusion of a variety of different methods to store and set configuration options. But, just to be thorough the image below provides an example of three configuration menus for the Agility plugin, the Motherloade Mine plugin and for the actual RuneLite client itself (this is actually not a plugin, but uses the same configuration menu as plugins use). Most OSRS players have most likely already seen examples of these menus. When you open the menu you will see the configuration options for all RuneLite plugins. These configuration menus are viewable by left-clicking the wrench icon located in the top right corner of the RuneLite client. The RuneLite config system provides developers the functionality to make complex configuration menus for their plugins with very little effort. This post is based on the Creating plugin config panels on the RuneLite wiki but goes into much more detail. Although not essential for all plugins, configuration menus and providing options for a plugin is highly useful. This time, we delve deeper and actually start writing some code! The first step of a plugin is the creation of a RuneLite configuration menu. Previously, I documented how to configure the Build Environment for RuneLite, then provided a high-level overview of the General Structure of RuneLite Plugins). ![]() This post is part of a series about writing RuneLite plugins. The command will try to alias common ways to refer to a piece of content to the correct page, but the full page name will also work.This post discusses and provides code examples of how to author configuration menus for RuneLite plugins.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |