forked from Upstream/mmocore
Added the option skill-tree-scroll-step-x/y in config.yml to control the scroll speed in skill tree GUI.
This commit is contained in:
parent
4d98b8b307
commit
54bb1f2632
@ -400,20 +400,20 @@ public class SkillTreeViewer extends EditableInventory {
|
|||||||
open();
|
open();
|
||||||
}
|
}
|
||||||
if (item.getFunction().equals("up")) {
|
if (item.getFunction().equals("up")) {
|
||||||
y--;
|
y -= MMOCore.plugin.configManager.skillTreeScrollStepY;
|
||||||
open();
|
open();
|
||||||
|
|
||||||
}
|
}
|
||||||
if (item.getFunction().equals("right")) {
|
if (item.getFunction().equals("right")) {
|
||||||
x++;
|
x += MMOCore.plugin.configManager.skillTreeScrollStepX;
|
||||||
open();
|
open();
|
||||||
}
|
}
|
||||||
if (item.getFunction().equals("down")) {
|
if (item.getFunction().equals("down")) {
|
||||||
y++;
|
y += MMOCore.plugin.configManager.skillTreeScrollStepY;
|
||||||
open();
|
open();
|
||||||
}
|
}
|
||||||
if (item.getFunction().equals("left")) {
|
if (item.getFunction().equals("left")) {
|
||||||
x--;
|
x -= MMOCore.plugin.configManager.skillTreeScrollStepX;
|
||||||
open();
|
open();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ public class ConfigManager {
|
|||||||
public long combatLogTimer, lootChestExpireTime, lootChestPlayerCooldown, globalSkillCooldown;
|
public long combatLogTimer, lootChestExpireTime, lootChestPlayerCooldown, globalSkillCooldown;
|
||||||
public double lootChestsChanceWeight, dropItemsChanceWeight, fishingDropsChanceWeight, partyMaxExpSplitRange, pvpModeToggleOnCooldown, pvpModeToggleOffCooldown, pvpModeCombatCooldown,
|
public double lootChestsChanceWeight, dropItemsChanceWeight, fishingDropsChanceWeight, partyMaxExpSplitRange, pvpModeToggleOnCooldown, pvpModeToggleOffCooldown, pvpModeCombatCooldown,
|
||||||
pvpModeCombatTimeout, pvpModeInvulnerabilityTimeRegionChange, pvpModeInvulnerabilityTimeCommand, pvpModeRegionEnterCooldown, pvpModeRegionLeaveCooldown;
|
pvpModeCombatTimeout, pvpModeInvulnerabilityTimeRegionChange, pvpModeInvulnerabilityTimeCommand, pvpModeRegionEnterCooldown, pvpModeRegionLeaveCooldown;
|
||||||
public int maxPartyLevelDifference, maxSkillSlots, minCombatLevel, maxCombatLevelDifference;
|
public int maxPartyLevelDifference, maxSkillSlots, minCombatLevel, maxCombatLevelDifference, skillTreeScrollStepX, skillTreeScrollStepY;
|
||||||
public final List<EntityDamageEvent.DamageCause> combatLogDamageCauses = new ArrayList<>();
|
public final List<EntityDamageEvent.DamageCause> combatLogDamageCauses = new ArrayList<>();
|
||||||
|
|
||||||
private final FileConfiguration messages;
|
private final FileConfiguration messages;
|
||||||
@ -148,7 +148,8 @@ public class ConfigManager {
|
|||||||
pvpModeInvulnerabilityCanDamage = config.getBoolean("pvp_mode.invulnerability.can_damage");
|
pvpModeInvulnerabilityCanDamage = config.getBoolean("pvp_mode.invulnerability.can_damage");
|
||||||
minCombatLevel = config.getInt("pvp_mode.min_level");
|
minCombatLevel = config.getInt("pvp_mode.min_level");
|
||||||
maxCombatLevelDifference = config.getInt("pvp_mode.max_level_difference");
|
maxCombatLevelDifference = config.getInt("pvp_mode.max_level_difference");
|
||||||
|
skillTreeScrollStepX = config.getInt("skill-tree-scroll-step-x",1);
|
||||||
|
skillTreeScrollStepY = config.getInt("skill-tree-scroll-step-y",1);
|
||||||
// Resources
|
// Resources
|
||||||
staminaFull = getColorOrDefault("stamina-whole", ChatColor.GREEN);
|
staminaFull = getColorOrDefault("stamina-whole", ChatColor.GREEN);
|
||||||
staminaHalf = getColorOrDefault("stamina-half", ChatColor.DARK_GREEN);
|
staminaHalf = getColorOrDefault("stamina-half", ChatColor.DARK_GREEN);
|
||||||
|
@ -86,6 +86,10 @@ chance-stat-weight:
|
|||||||
fishing-drops: 1
|
fishing-drops: 1
|
||||||
drop-items: 1
|
drop-items: 1
|
||||||
|
|
||||||
|
#The steps made for x and y when scrolling in the skill tree UI.
|
||||||
|
skill-tree-scroll-step-x: 1
|
||||||
|
skill-tree-scroll-step-y: 1
|
||||||
|
|
||||||
# Whether blocks generated with a "cobblegenerator" should
|
# Whether blocks generated with a "cobblegenerator" should
|
||||||
# provide the player with experience points or not
|
# provide the player with experience points or not
|
||||||
should-cobblestone-generators-give-exp: false
|
should-cobblestone-generators-give-exp: false
|
||||||
|
Loading…
Reference in New Issue
Block a user