Format scripts
This commit is contained in:
@@ -460,7 +460,7 @@ public class BazookaManager : MonoBehaviour
|
|||||||
if (saveFile["bird"]["overlay"] == null) return 0;
|
if (saveFile["bird"]["overlay"] == null) return 0;
|
||||||
return int.Parse(saveFile["bird"]["overlay"].ToString());
|
return int.Parse(saveFile["bird"]["overlay"].ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetCustomBirdIconData(MarketplaceIconStorageType value)
|
public void SetCustomBirdIconData(MarketplaceIconStorageType value)
|
||||||
{
|
{
|
||||||
if (saveFile["bird"] == null) saveFile["bird"] = new JObject();
|
if (saveFile["bird"] == null) saveFile["bird"] = new JObject();
|
||||||
|
|||||||
@@ -200,7 +200,8 @@ public class ChatroomMenu : MonoBehaviour
|
|||||||
optionsPanel.SetActive(false);
|
optionsPanel.SetActive(false);
|
||||||
editMessage.SetActive(true);
|
editMessage.SetActive(true);
|
||||||
});
|
});
|
||||||
optionsPanelReportButton.onClick.AddListener(() => {
|
optionsPanelReportButton.onClick.AddListener(() =>
|
||||||
|
{
|
||||||
reportMessagePanelReportReason.text = "";
|
reportMessagePanelReportReason.text = "";
|
||||||
optionsPanel.SetActive(false);
|
optionsPanel.SetActive(false);
|
||||||
reportMessagePanel.SetActive(true);
|
reportMessagePanel.SetActive(true);
|
||||||
|
|||||||
@@ -389,7 +389,7 @@ public class CustomGamePlayer : MonoBehaviour
|
|||||||
newBerry.tag = "AntiBerry";
|
newBerry.tag = "AntiBerry";
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
finish:
|
finish:
|
||||||
spriteRenderer.sortingOrder = -5;
|
spriteRenderer.sortingOrder = -5;
|
||||||
|
|
||||||
float screenWidth = Camera.main.orthographicSize * 2 * Camera.main.aspect;
|
float screenWidth = Camera.main.orthographicSize * 2 * Camera.main.aspect;
|
||||||
|
|||||||
@@ -1,17 +1,21 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class HideIfSettingFalse : MonoBehaviour {
|
public class HideIfSettingFalse : MonoBehaviour
|
||||||
|
{
|
||||||
public SettingTypes setting;
|
public SettingTypes setting;
|
||||||
public bool reverse;
|
public bool reverse;
|
||||||
|
|
||||||
void Start() {
|
void Start()
|
||||||
|
{
|
||||||
bool value = GetSettingValue(setting);
|
bool value = GetSettingValue(setting);
|
||||||
gameObject.SetActive(value == !reverse);
|
gameObject.SetActive(value == !reverse);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GetSettingValue(SettingTypes s) {
|
bool GetSettingValue(SettingTypes s)
|
||||||
|
{
|
||||||
var b = BazookaManager.Instance;
|
var b = BazookaManager.Instance;
|
||||||
return s switch {
|
return s switch
|
||||||
|
{
|
||||||
SettingTypes.FullScreen => b.GetSettingFullScreen(),
|
SettingTypes.FullScreen => b.GetSettingFullScreen(),
|
||||||
SettingTypes.ShowFPS => b.GetSettingShowFPS(),
|
SettingTypes.ShowFPS => b.GetSettingShowFPS(),
|
||||||
SettingTypes.Vsync => b.GetSettingVsync(),
|
SettingTypes.Vsync => b.GetSettingVsync(),
|
||||||
|
|||||||
@@ -206,18 +206,18 @@ public class IconMarketplaceDownloadIcon : MonoBehaviour
|
|||||||
btnText.text = "Claimed";
|
btnText.text = "Claimed";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
btn.onClick.AddListener(() => HandlePurchase(entry, btn, localUserID));
|
||||||
|
if (localUserID != entry.CreatorUserID)
|
||||||
|
{
|
||||||
|
btnText.text = "Purchase";
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
btn.onClick.AddListener(() => HandlePurchase(entry, btn, localUserID));
|
btnText.text = "Claim";
|
||||||
if (localUserID != entry.CreatorUserID)
|
|
||||||
{
|
|
||||||
btnText.text = "Purchase";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
btnText.text = "Claim";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
newIcon.SetActive(true);
|
newIcon.SetActive(true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ public class SettingsMenu : MonoBehaviour
|
|||||||
{
|
{
|
||||||
var type = color == -1 ? colorType : color;
|
var type = color == -1 ? colorType : color;
|
||||||
var text = colorMenu.transform.GetChild(0).GetComponent<TMP_Text>();
|
var text = colorMenu.transform.GetChild(0).GetComponent<TMP_Text>();
|
||||||
var colorToSet = new JArray(255, 255, 255);;
|
var colorToSet = new JArray(255, 255, 255);
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case 0: //IGBGColor
|
case 0: //IGBGColor
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ using Newtonsoft.Json;
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
|
||||||
[Preserve]
|
[Preserve]
|
||||||
public class ChatroomMessage {
|
public class ChatroomMessage
|
||||||
|
{
|
||||||
[Preserve]
|
[Preserve]
|
||||||
[JsonProperty("username")]
|
[JsonProperty("username")]
|
||||||
public string Username { get; set; }
|
public string Username { get; set; }
|
||||||
|
|||||||
@@ -2,7 +2,8 @@ using System;
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
public class MarketplaceIconStorageType {
|
public class MarketplaceIconStorageType
|
||||||
|
{
|
||||||
[JsonProperty("selected")]
|
[JsonProperty("selected")]
|
||||||
public string Selected { get; set; } = null;
|
public string Selected { get; set; } = null;
|
||||||
[JsonProperty("balance")]
|
[JsonProperty("balance")]
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ using Newtonsoft.Json;
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
|
||||||
[Preserve]
|
[Preserve]
|
||||||
public class MarketplaceIconType {
|
public class MarketplaceIconType
|
||||||
|
{
|
||||||
[Preserve]
|
[Preserve]
|
||||||
[JsonProperty("username")]
|
[JsonProperty("username")]
|
||||||
public string CreatorUsername { get; set; }
|
public string CreatorUsername { get; set; }
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ using Newtonsoft.Json;
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
|
||||||
[Preserve]
|
[Preserve]
|
||||||
public class ProfileMessageResponse {
|
public class ProfileMessageResponse
|
||||||
|
{
|
||||||
[Preserve]
|
[Preserve]
|
||||||
[JsonProperty("id")]
|
[JsonProperty("id")]
|
||||||
public BigInteger ID { get; set; }
|
public BigInteger ID { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user