Almost done with Chatroom Options

This commit is contained in:
2025-08-24 19:31:51 -07:00
parent 874a77eb62
commit ea42566556
8 changed files with 6544 additions and 271 deletions

View File

@@ -5,14 +5,12 @@ using UnityEngine.UI;
public class ChatroomMenuEntry : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler, IPointerClickHandler {
private Image bgImg;
private Button optionsButton;
private bool isMadeBySelf = false;
private static ChatroomMenuEntry activeEntry;
public void Init(Image bgImgArg, Button optionsButtonArg, bool isMadeBySelfArg)
public void Init(Image bgImgArg, Button optionsButtonArg)
{
bgImg = bgImgArg;
optionsButton = optionsButtonArg;
isMadeBySelf = isMadeBySelfArg;
bgImg.color = new Color(50f / 255f, 50f / 255f, 50f / 255f);
optionsButton.gameObject.SetActive(false);
}
@@ -55,7 +53,7 @@ public class ChatroomMenuEntry : MonoBehaviour, IPointerEnterHandler, IPointerEx
private void Activate() {
activeEntry = this;
bgImg.color = new Color(60f/255f, 60f/255f, 60f/255f);
optionsButton.gameObject.SetActive(isMadeBySelf);
optionsButton.gameObject.SetActive(true);
}
private void Deactivate() {