1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 00:53:39 +08:00

work in progress

This commit is contained in:
2025-04-22 01:58:07 +08:00
parent 65522c6f21
commit e765f0f42d
5 changed files with 175 additions and 168 deletions

View File

@@ -245,13 +245,13 @@ public class MyWindow : ManualBehaviour
return comboBox;
}
// public MySmallComboBox AddSmallComboBox(float x, float y, RectTransform parent, int fontSize = 15)
// {
// var comboBox = MySmallComboBox.CreateComboBox(x, y, parent).WithFontSize(fontSize);
// _maxX = Math.Max(_maxX, x + comboBox.Width);
// MaxY = Math.Max(MaxY, y + comboBox.Height);
// return comboBox;
// }
public MyCornerComboBox AddCornerComboBox(float x, float y, RectTransform parent, int fontSize = 15)
{
var comboBox = MyCornerComboBox.CreateComboBox(x, y, parent).WithFontSize(fontSize);
_maxX = Math.Max(_maxX, x + comboBox.Width);
MaxY = Math.Max(MaxY, y + comboBox.Height);
return comboBox;
}
#region Slider
public class ValueMapper<T>
@@ -566,7 +566,7 @@ public abstract class MyWindowManager
MyWindow.InitBaseObject();
MyCheckBox.InitBaseObject();
MyComboBox.InitBaseObject();
// MySmallComboBox.InitBaseObject();
MyCornerComboBox.InitBaseObject();
}
public static T CreateWindow<T>(string name, string title = "") where T : MyWindow