Updated Position of Config Options

-Added position to each of the options
-Placed the delay at the bottom
This commit is contained in:
Ermal Shkullaku
2019-01-19 13:05:17 -05:00
parent e1dbff24aa
commit fd202035b5

View File

@@ -1,83 +1,88 @@
/* /*
* Copyright (c) 2018, Jos <Malevolentdev@gmail.com> * Copyright (c) 2018, Jos <Malevolentdev@gmail.com>
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* *
* 1. Redistributions of source code must retain the above copyright notice, this * 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer. * list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice, * 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation * this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution. * and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
package net.runelite.client.plugins.statusbars; package net.runelite.client.plugins.statusbars;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
@ConfigGroup("statusbars") @ConfigGroup("statusbars")
public interface StatusBarsConfig extends Config public interface StatusBarsConfig extends Config
{ {
@ConfigItem( @ConfigItem(
keyName = "enableCounter", position = 1,
name = "Show hitpoints & prayer counter", keyName = "enableCounter",
description = "Shows current amount of hitpoints & prayer on the status bars" name = "Show hitpoints & prayer counter",
) description = "Shows current amount of hitpoints & prayer on the status bars"
default boolean enableCounter() )
{ default boolean enableCounter()
return false; {
} return false;
}
@ConfigItem(
keyName = "enableSkillIcon", @ConfigItem(
name = "Show hitpoints & prayer icons", position = 2,
description = "Adds skill icons at the top of the bars." keyName = "enableSkillIcon",
) name = "Show hitpoints & prayer icons",
default boolean enableSkillIcon() description = "Adds skill icons at the top of the bars."
{ )
return true; default boolean enableSkillIcon()
} {
return true;
@ConfigItem( }
keyName = "enableRestorationBars",
name = "Show amount of hitpoints and prayer restored", @ConfigItem(
description = "Visually shows how much a food or prayer will heal/restore you on the bars." position = 3,
) keyName = "enableRestorationBars",
default boolean enableRestorationBars() name = "Show amount of hitpoints and prayer restored",
{ description = "Visually shows how much a food or prayer will heal/restore you on the bars."
return true; )
} default boolean enableRestorationBars()
{
@ConfigItem( return true;
keyName = "hideStatusBarDelay", }
name = "Delay (seconds)",
description = "Number of seconds after combat to hide the status bars." @ConfigItem(
) position = 4,
default int hideStatusBarDelay() keyName = "toggleRestorationBars",
{ name = "Toggle to Hide when not in Combat",
return 3; description = "Visually hides the Status Bars when player is out of combat."
} )
default boolean toggleRestorationBars()
@ConfigItem( {
keyName = "toggleRestorationBars", return true;
name = "Toggle to Hide when not in Combat", }
description = "Visually hides the Status Bars when player is out of combat."
) @ConfigItem(
default boolean toggleRestorationBars() position = 5,
{ keyName = "hideStatusBarDelay",
return true; name = "Delay (seconds)",
} description = "Number of seconds after combat to hide the status bars."
} )
default int hideStatusBarDelay()
{
return 3;
}
}