Skip to content

Commit b8cfe11

Browse files
committed
1.2.9
1 parent 01f0b6b commit b8cfe11

File tree

5 files changed

+20
-8
lines changed

5 files changed

+20
-8
lines changed

LevelUP/Client/CharacterView.cs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ private void ComposeLevelTab(GuiComposer composer)
212212
levelContainer.Add(new GuiElementStaticText(instance.api, $"{Lang.Get("levelup:chainarmor")}: {GetLevelByLevelName("ChainArmor")}", EnumTextOrientation.Left, containerBounds.RightCopy().ForkChildOffseted(0, 25, 500, 0), CairoFont.WhiteSmallText()));
213213
}
214214
#endregion
215-
215+
216216
#region brigandinearmor
217217
if (instance.enabledLevels["BrigandineArmor"])
218218
{
@@ -221,7 +221,7 @@ private void ComposeLevelTab(GuiComposer composer)
221221
levelContainer.Add(new GuiElementStaticText(instance.api, $"{Lang.Get("levelup:brigandinearmor")}: {GetLevelByLevelName("BrigandineArmor")}", EnumTextOrientation.Left, containerBounds.RightCopy().ForkChildOffseted(0, 25, 500, 0), CairoFont.WhiteSmallText()));
222222
}
223223
#endregion
224-
224+
225225
#region platearmor
226226
if (instance.enabledLevels["PlateArmor"])
227227
{
@@ -230,7 +230,7 @@ private void ComposeLevelTab(GuiComposer composer)
230230
levelContainer.Add(new GuiElementStaticText(instance.api, $"{Lang.Get("levelup:platearmor")}: {GetLevelByLevelName("PlateArmor")}", EnumTextOrientation.Left, containerBounds.RightCopy().ForkChildOffseted(0, 25, 500, 0), CairoFont.WhiteSmallText()));
231231
}
232232
#endregion
233-
233+
234234
#region scale
235235
if (instance.enabledLevels["ScaleArmor"])
236236
{
@@ -243,10 +243,22 @@ private void ComposeLevelTab(GuiComposer composer)
243243
// Finishing Clip for scrollbar
244244
composer.EndClip();
245245

246+
int increaser = 0;
247+
if (levelsAdded > 18) increaser = 72;
248+
else if (levelsAdded > 16) increaser = 70;
249+
else if (levelsAdded > 14) increaser = 68;
250+
else if (levelsAdded > 12) increaser = 66;
251+
else if (levelsAdded > 10) increaser = 66;
252+
else if (levelsAdded > 8) increaser = 64;
253+
else if (levelsAdded > 6) increaser = 64;
254+
else if (levelsAdded > 4) increaser = 58;
255+
else if (levelsAdded > 2) increaser = 58;
256+
else increaser = 54;
257+
246258
// Adding the size of scroll button
247259
GuiElementScrollbar scrollBar = composer.GetScrollbar("LevelUP_Scrollbar");
248260
double listHeight = 0;
249-
for (int i = 0; i < levelsAdded; i++) listHeight += 72 ;
261+
for (int i = 0; i < levelsAdded; i++) listHeight += increaser;
250262
scrollBar.SetHeights((float)containerBounds.fixedHeight, (float)listHeight);
251263
}
252264

LevelUP/assets/game/lang/de.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
"levelupdocs-hammer": "About the Hammer",
3131
"levelupdocs-hammer-title": "Level: Hammer",
32-
"levelupdocs-hammer-text": "<strong>Hammer</strong><br><i>Hammer: Blacksmiths</i><br><br>Using your hammer as a weapon will grant you experience, but also using it to forge equipment will grant you experience.<br><br><strong>Upgrades</strong><br>Hammer levels will grant higher return when crafting items, and will also grant more damage to hammers.",
32+
"levelupdocs-hammer-text": "<strong>Hammer</strong><br><i>Hammer: Blacksmiths</i><br><br>Using your hammer as a weapon will grant you experience, but also using it to forge equipment will grant you experience.<br><br><strong>Upgrades</strong><br>Hammer levels will grant higher return when crafting items, chance to earn the nugget after spliting in anvil and will also grant more damage to hammers.",
3333

3434
"levelupdocs-sword": "About the Sword",
3535
"levelupdocs-sword-title": "Level: Sword",

LevelUP/assets/game/lang/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
"levelupdocs-hammer": "About the Hammer",
3131
"levelupdocs-hammer-title": "Level: Hammer",
32-
"levelupdocs-hammer-text": "<strong>Hammer</strong><br><i>Hammer: Blacksmiths</i><br><br>Using your hammer as a weapon will grant you experience, but also using it to forge equipment will grant you experience.<br><br><strong>Upgrades</strong><br>Hammer levels will grant higher return when crafting items, and will also grant more damage to hammers.",
32+
"levelupdocs-hammer-text": "<strong>Hammer</strong><br><i>Hammer: Blacksmiths</i><br><br>Using your hammer as a weapon will grant you experience, but also using it to forge equipment will grant you experience.<br><br><strong>Upgrades</strong><br>Hammer levels will grant higher return when crafting items, chance to earn the nugget after spliting in anvil and will also grant more damage to hammers.",
3333

3434
"levelupdocs-sword": "About the Sword",
3535
"levelupdocs-sword-title": "Level: Sword",

LevelUP/assets/game/lang/ptbr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
"levelupdocs-hammer": "Sobre o Martelo",
3131
"levelupdocs-hammer-title": "Níveis: Martelo",
32-
"levelupdocs-hammer-text": "<strong>Martelo</strong><br><i>Martelo: Ferreiros</i><br><br>Utilizar seu martelo como arma irá garantir experiência, mas também usa-lo para forjar equipamento lhe concederá experiência.<br><br><strong>Melhorias</strong><br>Níveis de martelo irá garantir maior retorno ao forjar itens, também concederá mais dano aos martelos.",
32+
"levelupdocs-hammer-text": "<strong>Martelo</strong><br><i>Martelo: Ferreiros</i><br><br>Utilizar seu martelo como arma irá garantir experiência, mas também usa-lo para forjar equipamento lhe concederá experiência.<br><br><strong>Melhorias</strong><br>Níveis de martelo irá garantir maior retorno ao forjar itens, chance de obter a pepita ao dividir a barra na bigorna, também concederá mais dano aos martelos.",
3333

3434
"levelupdocs-sword": "Sobre a Espada",
3535
"levelupdocs-sword-title": "Níveis: Espada",

LevelUP/modinfo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"BoboDev"
77
],
88
"description": "Add level system to your character",
9-
"version": "1.2.9-pre.2",
9+
"version": "1.2.9",
1010
"dependencies": {
1111
"game": ""
1212
}

0 commit comments

Comments
 (0)