mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-21 23:55:28 +01:00
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();
|
||||
}
|
||||
if (item.getFunction().equals("up")) {
|
||||
y--;
|
||||
y -= MMOCore.plugin.configManager.skillTreeScrollStepY;
|
||||
open();
|
||||
|
||||
}
|
||||
if (item.getFunction().equals("right")) {
|
||||
x++;
|
||||
x += MMOCore.plugin.configManager.skillTreeScrollStepX;
|
||||
open();
|
||||
}
|
||||
if (item.getFunction().equals("down")) {
|
||||
y++;
|
||||
y += MMOCore.plugin.configManager.skillTreeScrollStepY;
|
||||
open();
|
||||
}
|
||||
if (item.getFunction().equals("left")) {
|
||||
x--;
|
||||
x -= MMOCore.plugin.configManager.skillTreeScrollStepX;
|
||||
open();
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ public class ConfigManager {
|
||||
public long combatLogTimer, lootChestExpireTime, lootChestPlayerCooldown, globalSkillCooldown;
|
||||
public double lootChestsChanceWeight, dropItemsChanceWeight, fishingDropsChanceWeight, partyMaxExpSplitRange, pvpModeToggleOnCooldown, pvpModeToggleOffCooldown, pvpModeCombatCooldown,
|
||||
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<>();
|
||||
|
||||
private final FileConfiguration messages;
|
||||
@ -148,7 +148,8 @@ public class ConfigManager {
|
||||
pvpModeInvulnerabilityCanDamage = config.getBoolean("pvp_mode.invulnerability.can_damage");
|
||||
minCombatLevel = config.getInt("pvp_mode.min_level");
|
||||
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
|
||||
staminaFull = getColorOrDefault("stamina-whole", ChatColor.GREEN);
|
||||
staminaHalf = getColorOrDefault("stamina-half", ChatColor.DARK_GREEN);
|
||||
|
@ -86,6 +86,10 @@ chance-stat-weight:
|
||||
fishing-drops: 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
|
||||
# provide the player with experience points or not
|
||||
should-cobblestone-generators-give-exp: false
|
||||
|
Loading…
Reference in New Issue
Block a user