mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-15 22:07:48 +08:00
2.0.6
This commit is contained in:
parent
968546d43c
commit
bdf86a7448
@ -48,7 +48,7 @@ namespace Explorer.UI.Shared
|
||||
{
|
||||
IsMouseInResizeArea = true;
|
||||
|
||||
if (InputManager.GetMouseButton(0))
|
||||
if (InputManager.GetMouseButtonDown(0))
|
||||
{
|
||||
IsResizing = true;
|
||||
m_currentWindow = ID;
|
||||
|
@ -66,7 +66,7 @@ namespace Explorer.UI
|
||||
GUIUnstrip.BeginVertical(GUIContent.none, GUI.skin.box, null);
|
||||
GUIUnstrip.BeginHorizontal(new GUILayoutOption[0]);
|
||||
GUI.skin.button.alignment = TextAnchor.MiddleLeft;
|
||||
int tabPerRow = (int)Math.Floor((float)((decimal)m_rect.width / 238));
|
||||
int tabPerRow = (int)Math.Floor(m_rect.width / 238);
|
||||
int rowCount = 0;
|
||||
for (int i = 0; i < WindowManager.Windows.Count; i++)
|
||||
{
|
||||
|
@ -76,6 +76,8 @@ namespace Explorer.Unstrip.IMGUI
|
||||
{
|
||||
text = text ?? string.Empty;
|
||||
|
||||
var skin = multiLine ? GUI.skin.textArea : GUI.skin.textField;
|
||||
|
||||
int controlID = GUIUtility.GetControlID(FocusType.Keyboard);
|
||||
GUIContent guicontent = GUIContent.Temp(text);
|
||||
bool flag = GUIUtility.keyboardControl != controlID;
|
||||
@ -88,13 +90,13 @@ namespace Explorer.Unstrip.IMGUI
|
||||
guicontent = GUIContent.Temp(text);
|
||||
// guicontent = GUIContent.Temp(text + GUIUtility.compositionString);
|
||||
}
|
||||
Rect rect = Internal_LayoutUtility.GetRect(guicontent, GUI.skin.textField, options);
|
||||
Rect rect = Internal_LayoutUtility.GetRect(guicontent, skin, options);
|
||||
bool flag2 = GUIUtility.keyboardControl == controlID;
|
||||
if (flag2)
|
||||
{
|
||||
guicontent = GUIContent.Temp(text);
|
||||
}
|
||||
DoTextField(rect, controlID, guicontent, multiLine, -1, GUI.skin.textField);
|
||||
DoTextField(rect, controlID, guicontent, multiLine, -1, skin);
|
||||
return guicontent.text;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user