Made GUI Movable, renamed mod
This commit is contained in:
parent
c71ba064ce
commit
147f53a52d
|
@ -100,7 +100,9 @@ namespace CrosshairMod
|
||||||
// Renders the Panel, but also handles Updating the buttons
|
// Renders the Panel, but also handles Updating the buttons
|
||||||
private static void RenderFunc(int windowID)
|
private static void RenderFunc(int windowID)
|
||||||
{
|
{
|
||||||
|
// Make Window draggable
|
||||||
|
GUI.DragWindow(new Rect(0, 0, 10000, 20));
|
||||||
|
|
||||||
// Draw the Length and Thickness Labels
|
// Draw the Length and Thickness Labels
|
||||||
GUI.Label(new Rect(60, 70, 120, 30), "Length: " + Settings.GetValue("crosshairLength"));
|
GUI.Label(new Rect(60, 70, 120, 30), "Length: " + Settings.GetValue("crosshairLength"));
|
||||||
GUI.Label(new Rect(60, 110, 120, 30), "Thickness: " + Settings.GetValue("crosshairThickness"));
|
GUI.Label(new Rect(60, 110, 120, 30), "Thickness: " + Settings.GetValue("crosshairThickness"));
|
||||||
|
|
|
@ -22,7 +22,7 @@ namespace CrosshairMod
|
||||||
* handling initializing and updating the components
|
* handling initializing and updating the components
|
||||||
* of the crosshair mod.
|
* of the crosshair mod.
|
||||||
*/
|
*/
|
||||||
public class Main : MonoBehaviour
|
public class CrosshairMod : MonoBehaviour
|
||||||
{
|
{
|
||||||
// Define Hotkeys for Menu and Crosshair Toggle
|
// Define Hotkeys for Menu and Crosshair Toggle
|
||||||
private char MENU_OPEN_KEY = 'H';
|
private char MENU_OPEN_KEY = 'H';
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue