2015-01-10 15:18:55 +00:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
using UnityEngine.EventSystems;
|
|
|
|
|
|
2015-04-01 19:26:17 +00:00
|
|
|
|
public class Gui_ChatScrollbar : MonoBehaviour {
|
2015-01-10 15:18:55 +00:00
|
|
|
|
|
|
|
|
|
public Scrollbar scrollbar;
|
|
|
|
|
public InputField myfield;
|
|
|
|
|
public ScrollRect scrollrect;
|
2015-03-04 14:03:15 +00:00
|
|
|
|
|
2015-01-10 15:18:55 +00:00
|
|
|
|
|
|
|
|
|
// Use this for initialization
|
2015-03-04 14:03:15 +00:00
|
|
|
|
void Start() {
|
2015-01-10 15:18:55 +00:00
|
|
|
|
scrollbar.value = 1;
|
2015-01-13 21:54:43 +00:00
|
|
|
|
|
2015-01-10 15:18:55 +00:00
|
|
|
|
}
|
2015-03-04 14:03:15 +00:00
|
|
|
|
|
|
|
|
|
|
2015-01-10 15:18:55 +00:00
|
|
|
|
|
|
|
|
|
// Update is called once per frame
|
2015-03-04 14:03:15 +00:00
|
|
|
|
void Update() {
|
|
|
|
|
|
2015-01-10 15:18:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//print (iseditingtop);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-03-04 14:03:15 +00:00
|
|
|
|
bool isTypingText() {
|
|
|
|
|
if(Input.anyKey && Input.GetMouseButton(0) == false && Input.GetMouseButton(1) == false && Input.GetMouseButton(2) == false && Input.GetKey("return") == false) {
|
|
|
|
|
return true;
|
|
|
|
|
} else
|
|
|
|
|
return false;
|
2015-01-10 15:18:55 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|