* delete skill trees
* Revert "delete skill trees"
This reverts commit 9d7fae73c4.
* learning refactor
* UI tweaks
* sword mastery skill
* telegraphy
* rapier mastery
* research table ui
* finish studing
* polish UI researching
* pyrokinetic
* more skill tree working
* heat adapt
* alchemist and metamagic update
* skill multiple effects support + metamagic bugg manapool
* impossible 😢
* skimitar gaming
* skimidi
* blacksmithing branch
* remove research restrictions
* remove species magic buff
* fix loc
* Update thaumaturgy.yml
* pip
* Delete skill_tree.yml
32 lines
873 B
C#
32 lines
873 B
C#
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.Graphics;
|
|
using Robust.Client.UserInterface;
|
|
using Robust.Client.UserInterface.XAML;
|
|
|
|
namespace Content.Client._CP14.Skill.Ui;
|
|
|
|
[GenerateTypedNameReferences]
|
|
public sealed partial class CP14SkillTreeButtonControl : Control
|
|
{
|
|
public event Action? OnPressed;
|
|
|
|
public CP14SkillTreeButtonControl(Color color, string label, float skillpoints)
|
|
{
|
|
RobustXamlLoader.Load(this);
|
|
|
|
ColorPanel.PanelOverride = new StyleBoxFlat { BackgroundColor = color };
|
|
if (skillpoints > 0)
|
|
{
|
|
SkillPointImage.Visible = true;
|
|
SkillTreeLabel.Text = $"{skillpoints} {label}";
|
|
}
|
|
else
|
|
{
|
|
SkillPointImage.Visible = false;
|
|
SkillTreeLabel.Text = $"{label}";
|
|
}
|
|
|
|
MainButton.OnPressed += args => OnPressed?.Invoke();
|
|
}
|
|
}
|