void OnGUI() { Customize.cust.windowx[windowID] = windowRect.x; Customize.cust.windowy[windowID] = windowRect.y; GUI.skin = com.Skin[GameControl.control.GUIID]; //set up scaling //float rx = Screen.width / native_width; //float ry = Screen.height / native_height; //GUI.matrix = Matrix4x4.TRS (Vector3.zero, Quaternion.identity, new Vector3 (rx, ry, 1)); if (show == true) { GUI.color = com.colors[Customize.cust.WindowColorInt]; windowRect = WindowClamp.ClampToScreen(GUI.Window(windowID, windowRect, DoMyWindow, "")); } if (ShowContext == true) { ContextwindowRect.height = 21 * ContextMenuOptions.Count + 2; GUI.skin = com.Skin[GameControl.control.GUIID]; GUI.color = com.colors[Customize.cust.WindowColorInt]; ContextwindowRect = WindowClamp.ClampToScreen(GUI.Window(ContextMenuID, ContextwindowRect, DoMyContextWindow, "")); } if (Input.GetMouseButtonUp(0) || Input.GetMouseButtonUp(1) || Input.GetMouseButtonUp(2)) { if (!ContextwindowRect.Contains(Event.current.mousePosition)) { ShowContext = false; } } }
void OnGUI() { Customize.cust.windowx[windowID] = windowRect.x; Customize.cust.windowy[windowID] = windowRect.y; GUI.skin = com.Skin[GameControl.control.GUIID]; //if (Input.GetMouseButtonDown(0) || Input.GetMouseButtonDown(1) || Input.GetMouseButtonDown(2)) //{ // if (!new Rect(windowRect).Contains(Event.current.mousePosition)) // { // ShowContext = false; // } //} if (show == true) { GUI.color = com.colors[Customize.cust.WindowColorInt]; windowRect = WindowClamp.ClampToScreen(GUI.Window(windowID, windowRect, DoMyWindow, "")); // windowRect = GUI.Window(windowID,windowRect,DoMyWindow,""); } //if (ShowContext == true) //{ // ContextwindowRect.height = 21 * ContextMenuOptions.Count + 2; // GUI.skin = com.Skin[GameControl.control.GUIID]; // GUI.color = com.colors[Customize.cust.WindowColorInt]; // ContextwindowRect = WindowClamp.ClampToScreen(GUI.Window(ContextMenuID, ContextwindowRect, DoMyContextWindow, "")); //} }
void OnGUI() { GUI.skin = com.Skin[GameControl.control.GUIID]; if (windowRect.Count > 0) { for (int i = 0; i < windowRect.Count; i++) { Customize.cust.windowx[windowID] = windowRect[0].x; Customize.cust.windowy[windowID] = windowRect[0].y; CloseButton = new Rect(windowRect[i].width - 22, 1, 21, 21); MiniButton = new Rect(CloseButton.x - 21, 1, 21, 21); DefaltBoxSetting = new Rect(1, 1, MiniButton.x - 1, 21); if (ProgramHandle.Count > 0) { if (ProgramHandle[i].Show == true) { GUI.color = com.colors[Customize.cust.WindowColorInt]; windowRect[i] = WindowClamp.ClampToScreen(GUI.Window(ID[i], windowRect[i], DoMyWindow, "")); } } } } }
void OnGUI() { //Customize.cust.windowx[windowID] = windowRect.x; //Customize.cust.windowy[windowID] = windowRect.y; GUI.skin = com.Skin[GameControl.control.GUIID]; ProgramCount = 0; if (show == true) { if (winman.RunningPrograms.Count > 0) { for (int i = 0; i < winman.RunningPrograms.Count; i++) { if (winman.RunningPrograms[i].ProgramName == "Calculator") { if (ProgramCount > Result.Count) { ProgramCount = 0; } else { ProgramCount++; } CloseButton = new Rect(winman.RunningPrograms[i].windowRect.width - 23, 2, 21, 21); MiniButton = new Rect(CloseButton.x - 22, 2, 21, 21); TitleBox = new Rect(2, 2, MiniButton.x - 3, 21); GUI.color = com.colors[Customize.cust.WindowColorInt]; winman.RunningPrograms[i].windowRect = WindowClamp.ClampToScreen(GUI.Window(winman.RunningPrograms[i].WID, winman.RunningPrograms[i].windowRect, DoMyWindow, "")); } } } } }
void OnGUI() { Customize.cust.windowx[windowID] = windowRect.x; Customize.cust.windowy[windowID] = windowRect.y; GUI.skin = com.Skin[GameControl.control.GUIID]; if (show == true) { GUI.color = com.colors[Customize.cust.WindowColorInt]; windowRect = WindowClamp.ClampToScreen(GUI.Window(windowID, windowRect, DoMyWindow, "")); } if (execute == true) { Execute(); // if (pl.Words.Count > 0) // { // Execute (); // } // else // { // pl.AddWordDatabase(); // StartingCount = pl.Words.Count; // execute = false; // } } }
void OnGUI() { Customize.cust.windowx[windowID] = windowRect.x; Customize.cust.windowy[windowID] = windowRect.y; GUI.skin = com.Skin[GameControl.control.GUIID]; if (GameControl.control.LCDPage > 50 && GameControl.control.LCDPage < 100) { LogitechGSDK.LogiLcdColorSetTitle("Emails", 0, 255, 0); if (ContractSelect > -1) { LogitechGSDK.LogiLcdColorSetText(0, "Subject: " + Contracts[ContractSelect].Subject, 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(1, "Target: " + GameControl.control.Contracts[ContractSelect].Target, 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(2, "File: " + GameControl.control.Contracts[ContractSelect].File, 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(3, "Cash: " + GameControl.control.Contracts[ContractSelect].Cash.ToString(), 0, 255, 0); } } if (show == true) { GUI.color = com.colors[Customize.cust.WindowColorInt]; windowRect = WindowClamp.ClampToScreen(GUI.Window(windowID, windowRect, DoMyWindow, "")); } RefreshList(); }
void OnGUI() { Customize.cust.windowx[windowID] = windowRect.x; Customize.cust.windowy[windowID] = windowRect.y; GUI.skin = com.Skin[GameControl.control.GUIID]; if (show == true) { GUI.color = com.colors[Customize.cust.WindowColorInt]; windowRect = WindowClamp.ClampToScreen(GUI.Window(windowID, windowRect, DoMyWindow, "")); } }
void OnGUI() { Customize.cust.windowx[windowID] = windowRect.x; Customize.cust.windowy[windowID] = windowRect.y; GUI.skin = com.Skin[GameControl.control.GUIID]; //float rx = Screen.width / native_width; //float ry = Screen.height / native_height; //GUI.matrix = Matrix4x4.TRS(Vector3.zero, Quaternion.identity, new Vector3(rx, ry, 1)); if (show == true) { TraceColor(); windowRect = WindowClamp.ClampToScreen(GUI.Window(windowID, windowRect, DoMyWindow, "")); } }
void OnGUI() { Customize.cust.windowx[windowID] = windowRect.x; Customize.cust.windowy[windowID] = windowRect.y; GUI.skin = com.Skin[GameControl.control.GUIID]; if (playsound == true) { playsound = false; sc.SoundSelect = SoundSelect; sc.PlaySound(); } if (show == true) { GUI.color = com.colors[Customize.cust.WindowColorInt]; windowRect = WindowClamp.ClampToScreen(GUI.Window(windowID, windowRect, Window, "")); } }
void OnGUI() { GUI.skin = com.Skin[GameControl.control.GUIID]; Map = com.Skin[GameControl.control.GUIID].customStyles[3]; Customize.cust.windowx[windowID] = windowRect.x; Customize.cust.windowy[windowID] = windowRect.y; //float rx = Screen.width / native_width; //float ry = Screen.height / native_height; //GUI.matrix = Matrix4x4.TRS(Vector3.zero, Quaternion.identity, new Vector3(rx, ry, 1)); w = 30 * WidthScale; h = 15 * HeightScale; if (show == true) { windowRect = WindowClamp.ClampToScreen(GUI.Window(windowID, windowRect, DoMyWindow, "")); } }
void OnGUI() { Customize.cust.windowx[windowID] = windowRect.x; Customize.cust.windowy[windowID] = windowRect.y; GUI.skin = com.Skin[GameControl.control.GUIID]; if (GameControl.control.LCDPage > 0 && GameControl.control.LCDPage < 50) { LogitechGSDK.LogiLcdColorSetTitle("Notification", 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(0, Notification, 0, 255, 0); } SetWindowPos(); if (show == true) { windowRect = WindowClamp.ClampToScreen(GUI.Window(windowID, windowRect, DoMyWindow, "")); } }
void OnGUI() { Customize.cust.windowx[windowID] = windowRect.x; Customize.cust.windowy[windowID] = windowRect.y; GUI.skin = com.Skin[GameControl.control.GUIID]; if (show == true) { GUI.color = com.colors[Customize.cust.WindowColorInt]; windowRect = WindowClamp.ClampToScreen(GUI.Window(windowID, windowRect, DoMyWindow, "")); } if (ShowContext == true) { ContextwindowRect.height = 21 * ContextMenuOptions.Count + 2; GUI.skin = com.Skin[GameControl.control.GUIID]; GUI.color = com.colors[Customize.cust.WindowColorInt]; ContextwindowRect = WindowClamp.ClampToScreen(GUI.Window(ContextMenuID, ContextwindowRect, DoMyContextWindow, "")); } }
void OnGUI() { GUI.skin = Skin; if (windowRect.Count > 0) { for (int i = 0; i < windowRect.Count; i++) { ResizeButton = new Rect(windowRect[i].width - 21, windowRect[i].height - 21, 21, 21); CloseButton = new Rect(windowRect[i].width - 22, 1, 21, 21); MiniButton = new Rect(CloseButton.x - 21, 1, 21, 21); if (show[i] == true) { GUI.color = backgroundColor; windowRect[i] = WindowClamp.ClampToScreen(GUI.Window(ID[i], windowRect[i], DoMyWindow, "")); } } } DefaltBoxSetting = new Rect(1, 1, MiniButton.x - 1, 21); }
void OnGUI() { GUI.skin = skin; FTextSize = new GUIStyle(); BTextSize = new GUIStyle(); IconWidth = 80; FTextSize.fontSize = 14; BTextSize.fontSize = 14; IconSize = IconHeight / 2; GUI.depth = 100; Customize.cust.windowx[windowID] = windowRect.x; Customize.cust.windowy[windowID] = windowRect.y; if (Show == true) { //GUI.color = com.colors[Customize.cust.WindowColorInt]; windowRect = WindowClamp.ClampToScreen(GUI.Window(windowID, windowRect, DoMyWindow, "")); GUI.BringWindowToBack(windowID); } if (ShowContext == true) { ContextwindowRect.height = 21 * ContextMenuOptions.Count + 2; GUI.skin = com.Skin[GameControl.control.GUIID]; GUI.color = com.colors[Customize.cust.WindowColorInt]; ContextwindowRect = WindowClamp.ClampToScreen(GUI.Window(ContextMenuID, ContextwindowRect, DoMyContextWindow, "")); } if (Input.GetMouseButtonUp(0) || Input.GetMouseButtonUp(1) || Input.GetMouseButtonUp(2)) { if (!ContextwindowRect.Contains(Event.current.mousePosition)) { ShowContext = false; } } }
void OnGUI() { //Customize.cust.windowx[windowID] = windowRect.x; //Customize.cust.windowy[windowID] = windowRect.y; GUI.skin = com.Skin[GameControl.control.GUIID]; if (playsound == true) { playsound = false; sc.SoundSelect = SoundSelect; sc.PlaySound(); } if (show == true) { if (winman.RunningPrograms.Count > 0) { ProgramCount = 0; for (int i = 0; i < winman.RunningPrograms.Count; i++) { ProgramCount++; if (winman.RunningPrograms[i].ProgramName == "Error Prompt") { CloseButton = new Rect(winman.RunningPrograms[i].windowRect.width - 22, 1, 21, 21); //MiniButton = new Rect(CloseButton.x - 21, 1, 21, 21); TitleBox = new Rect(22, 1, CloseButton.x - 22, 21); MessageBox = new Rect(5, 30, 385, 90); GUI.color = com.colors[Customize.cust.WindowColorInt]; winman.RunningPrograms[i].windowRect = WindowClamp.ClampToScreen(GUI.Window(winman.RunningPrograms[i].WID, winman.RunningPrograms[i].windowRect, DoMyWindow, "")); } } } } }
void OnGUI() { Skin = com.Skin[GameControl.control.GUIID]; GUI.skin = Skin; Customize.cust.windowx[windowID] = windowRect.x; Customize.cust.windowy[windowID] = windowRect.y; if (show == true) { GUI.color = Color.black; windowRect = WindowClamp.ClampToScreen(GUI.Window(windowID, windowRect, DoMyWindow, "")); } if (GameControl.control.LCDPage > 100 && GameControl.control.LCDPage < 150) { LogitechGSDK.LogiLcdColorSetTitle("CLI", 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(7, "> " + cli.Parse, 0, 255, 0); if (cli.PastCommands.Count > 0) { LogitechGSDK.LogiLcdColorSetText(6, cli.PastCommands[cli.PastCommands.Count - 1], 0, 255, 0); } if (cli.PastCommands.Count > 1) { LogitechGSDK.LogiLcdColorSetText(5, cli.PastCommands[cli.PastCommands.Count - 2], 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(6, cli.PastCommands[cli.PastCommands.Count - 1], 0, 255, 0); } if (cli.PastCommands.Count > 2) { LogitechGSDK.LogiLcdColorSetText(4, cli.PastCommands[cli.PastCommands.Count - 3], 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(5, cli.PastCommands[cli.PastCommands.Count - 2], 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(6, cli.PastCommands[cli.PastCommands.Count - 1], 0, 255, 0); } if (cli.PastCommands.Count > 4) { LogitechGSDK.LogiLcdColorSetText(3, cli.PastCommands[cli.PastCommands.Count - 4], 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(4, cli.PastCommands[cli.PastCommands.Count - 3], 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(5, cli.PastCommands[cli.PastCommands.Count - 2], 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(6, cli.PastCommands[cli.PastCommands.Count - 1], 0, 255, 0); } if (cli.PastCommands.Count > 5) { LogitechGSDK.LogiLcdColorSetText(2, cli.PastCommands[cli.PastCommands.Count - 5], 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(3, cli.PastCommands[cli.PastCommands.Count - 4], 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(4, cli.PastCommands[cli.PastCommands.Count - 3], 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(5, cli.PastCommands[cli.PastCommands.Count - 2], 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(6, cli.PastCommands[cli.PastCommands.Count - 1], 0, 255, 0); } if (cli.PastCommands.Count > 6) { LogitechGSDK.LogiLcdColorSetText(1, cli.PastCommands[cli.PastCommands.Count - 6], 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(2, cli.PastCommands[cli.PastCommands.Count - 5], 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(3, cli.PastCommands[cli.PastCommands.Count - 4], 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(4, cli.PastCommands[cli.PastCommands.Count - 3], 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(5, cli.PastCommands[cli.PastCommands.Count - 2], 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(6, cli.PastCommands[cli.PastCommands.Count - 1], 0, 255, 0); } if (cli.PastCommands.Count > 7) { LogitechGSDK.LogiLcdColorSetText(0, cli.PastCommands[cli.PastCommands.Count - 7], 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(1, cli.PastCommands[cli.PastCommands.Count - 6], 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(2, cli.PastCommands[cli.PastCommands.Count - 5], 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(3, cli.PastCommands[cli.PastCommands.Count - 4], 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(4, cli.PastCommands[cli.PastCommands.Count - 3], 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(5, cli.PastCommands[cli.PastCommands.Count - 2], 0, 255, 0); LogitechGSDK.LogiLcdColorSetText(6, cli.PastCommands[cli.PastCommands.Count - 1], 0, 255, 0); } } }