-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
88 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,42 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using UnityEngine; | ||
using UnityEngine; | ||
|
||
namespace CatalyssMod | ||
{ | ||
internal class ExtraGUIs : MonoBehaviour | ||
{ | ||
private string inputText; | ||
private readonly float Offset = 2f; | ||
public static float S_SliderValue = 1f; | ||
|
||
public void OnGUI() | ||
{ | ||
//To do | ||
if (CatalyssMonoMod.HandleItemDropMenu) | ||
{ | ||
GUI.backgroundColor = Color.gray; | ||
GUI.contentColor = Color.magenta; | ||
GUI.color = Color.magenta; | ||
|
||
GUI.Box(new Rect(10, 25 * Offset, 350, 350), "Items Menu"); | ||
|
||
GUI.Label(new Rect(20, 40 * Offset, 100, 80), "Item to drop:\n(Increase slider for amount)"); | ||
inputText = GUI.TextField(new Rect(120, 40 * Offset, 200, 20), inputText); | ||
S_SliderValue = GUI.HorizontalSlider(new Rect(125, 55 * Offset, 140, 30), S_SliderValue, 0f, 200f); | ||
|
||
if (GUI.Button(new Rect(20, 67 * Offset, 100, 30), "Submit")) | ||
{ | ||
Utils.DropNewItem(inputText, (int)S_SliderValue); | ||
} | ||
|
||
if (GUI.Button(new Rect(20, 85 * Offset, 100, 30), "Go Back")) | ||
{ | ||
CatalyssMonoMod.HandleItemDropMenu = false; | ||
} | ||
} | ||
|
||
if (Entry.DebuggerGUI) | ||
{ | ||
//For testing I usually remove code in here. | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters