Labs to LabelMap

This commit is contained in:
2026-06-13 23:37:19 +02:00
parent 99f9aab224
commit 80b19bd8bd
2 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ using System.Drawing;
namespace _2DGAMELIB namespace _2DGAMELIB
{ {
public class Labs public class LabelMap
{ {
private OrderedDictionary<string, Lab> labs = new OrderedDictionary<string, Lab>(); private OrderedDictionary<string, Lab> labs = new OrderedDictionary<string, Lab>();
@@ -13,7 +13,7 @@ namespace _2DGAMELIB
public Lab this[string Name] => labs[Name]; public Lab this[string Name] => labs[Name];
public Labs(ModeEventDispatcher Med, RenderArea Are) public LabelMap(ModeEventDispatcher Med, RenderArea Are)
{ {
this.Med = Med; this.Med = Med;
this.Are = Are; this.Are = Are;

View File

@@ -5586,7 +5586,7 @@ namespace SlaveMatrix
} }
} }
}); });
Labs ls = new Labs(Med, DrawBuffer); LabelMap ls = new LabelMap(Med, DrawBuffer);
ls.Add("ラベル0", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 - 0.1)), 0.1, 2.5, new Font("MS Gothic", 1f), 0.085, " ", Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false); ls.Add("ラベル0", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 - 0.1)), 0.1, 2.5, new Font("MS Gothic", 1f), 0.085, " ", Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false);
ls.Add("ラベル1", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 + num * 0.0 + 0.005)), 0.1, 1.0, new Font("MS Gothic", 1f), 0.085, GameText., Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false); ls.Add("ラベル1", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 + num * 0.0 + 0.005)), 0.1, 1.0, new Font("MS Gothic", 1f), 0.085, GameText., Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false);
ls.Add("ラベル2", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 + num * 0.0 + 0.045)), 0.1, 1.0, new Font("MS Gothic", 1f), 0.085, "H:", Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false); ls.Add("ラベル2", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 + num * 0.0 + 0.045)), 0.1, 1.0, new Font("MS Gothic", 1f), 0.085, "H:", Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false);