~zenomat/javatorio

3fba92e9561534c8f9f747bf2723bda95a23d383 — zenomat a month ago 0be4ec7
Updated Button docs for modkeys
1 files changed, 5 insertions(+), 2 deletions(-)

M app/src/main/java/javatorio/app/Button.java
M app/src/main/java/javatorio/app/Button.java => app/src/main/java/javatorio/app/Button.java +5 -2
@@ 6,7 6,7 @@ interface ButtonExec {

/**
 * The Button class, can be used to represent Buttons in the format
 * "Key: label"
 * "Mods-Key: label"
 * also holds a description for maybe a help menu
 */
public class Button {


@@ 20,6 20,9 @@ public class Button {

	/**
	 * @param symbol The Key to press
	 * @param ctrl If the control key is pressed
	 * @param alt If the alt key is pressed
	 * @param shift If the shift key is pressed
	 * @param label The button label shown after the key
	 * @param desc A description, what the key does
	 * @param exec A lambda function containg the code the button executes


@@ 36,7 39,7 @@ public class Button {

	/**
	 * Return a String in the format
	 * "Button: Label"
	 * "Mods-Button: Label"
	 * usefull for drawing the button as a ui element
	 */
	public String getLabelString() {