mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 16:47:22 +01:00
fix code dupe
This commit is contained in:
parent
59ade9dc0c
commit
39aa244a9f
6 changed files with 7 additions and 14 deletions
|
|
@ -810,8 +810,7 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase
|
|||
public Vector2 GetIconButtonSize(FontAwesomeIcon icon)
|
||||
{
|
||||
using var font = IconFont.Push();
|
||||
var buttonSize = ImGuiHelpers.GetButtonSize(icon.ToIconString());
|
||||
return buttonSize;
|
||||
return ImGuiHelpers.GetButtonSize(icon.ToIconString());
|
||||
}
|
||||
|
||||
public Vector2 GetIconData(FontAwesomeIcon icon)
|
||||
|
|
@ -820,12 +819,6 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase
|
|||
return ImGui.CalcTextSize(icon.ToIconString());
|
||||
}
|
||||
|
||||
public Vector2 IconButtonSize(FontAwesomeIcon icon)
|
||||
{
|
||||
using var font = IconFont.Push();
|
||||
return ImGuiHelpers.GetButtonSize(icon.ToIconString());
|
||||
}
|
||||
|
||||
public void IconText(FontAwesomeIcon icon, uint color)
|
||||
{
|
||||
FontText(icon.ToIconString(), IconFont, color);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue