Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit bdf86a7

Browse files
committed
2.0.6
1 parent 968546d commit bdf86a7

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/UI/Shared/ResizeDrag.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static Rect ResizeWindow(Rect _rect, int ID)
4848
{
4949
IsMouseInResizeArea = true;
5050

51-
if (InputManager.GetMouseButton(0))
51+
if (InputManager.GetMouseButtonDown(0))
5252
{
5353
IsResizing = true;
5454
m_currentWindow = ID;

src/UI/TabViewWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public override void WindowFunction(int windowID)
6666
GUIUnstrip.BeginVertical(GUIContent.none, GUI.skin.box, null);
6767
GUIUnstrip.BeginHorizontal(new GUILayoutOption[0]);
6868
GUI.skin.button.alignment = TextAnchor.MiddleLeft;
69-
int tabPerRow = (int)Math.Floor((float)((decimal)m_rect.width / 238));
69+
int tabPerRow = (int)Math.Floor(m_rect.width / 238);
7070
int rowCount = 0;
7171
for (int i = 0; i < WindowManager.Windows.Count; i++)
7272
{

src/Unstrip/IMGUI/Internal.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ public static string TextField(string text, GUILayoutOption[] options, bool mult
7676
{
7777
text = text ?? string.Empty;
7878

79+
var skin = multiLine ? GUI.skin.textArea : GUI.skin.textField;
80+
7981
int controlID = GUIUtility.GetControlID(FocusType.Keyboard);
8082
GUIContent guicontent = GUIContent.Temp(text);
8183
bool flag = GUIUtility.keyboardControl != controlID;
@@ -88,13 +90,13 @@ public static string TextField(string text, GUILayoutOption[] options, bool mult
8890
guicontent = GUIContent.Temp(text);
8991
// guicontent = GUIContent.Temp(text + GUIUtility.compositionString);
9092
}
91-
Rect rect = Internal_LayoutUtility.GetRect(guicontent, GUI.skin.textField, options);
93+
Rect rect = Internal_LayoutUtility.GetRect(guicontent, skin, options);
9294
bool flag2 = GUIUtility.keyboardControl == controlID;
9395
if (flag2)
9496
{
9597
guicontent = GUIContent.Temp(text);
9698
}
97-
DoTextField(rect, controlID, guicontent, multiLine, -1, GUI.skin.textField);
99+
DoTextField(rect, controlID, guicontent, multiLine, -1, skin);
98100
return guicontent.text;
99101
}
100102

0 commit comments

Comments
 (0)