King Lobby is mostly finished

This commit is contained in:
Melbyj1125
2022-03-11 15:19:24 -06:00
parent 122f144cf5
commit 2921c8a344
4 changed files with 2083 additions and 74 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -572,10 +572,6 @@ PrefabInstance:
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 360961500627084270, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1900253489175822351, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: king
value:

View File

@@ -5,10 +5,112 @@ using UnityEngine.UI;
public class KingTooltips : MonoBehaviour
{
GameObject curWeatherImageObj;
public Image rain;
public Image snow;
public Image wind;
public Image fog;
Image curImage;
////Weather Wheel Variables
public GameObject curWeatherSpriteObj;
public Text curWeatherText;
public Image curWeatherImage;
float curSpriteRotation;
string rainExplanation = "Increases the players acceleration & decreases the players traction.";
string snowExplanation = "Increases the players traction & decreases the players acceleration.";
string windExplanation = "Pushes the player in a random direction altering their movement.";
string fogExplanation = "Obscures the players vision.";
string defaultWeatherExplanation;
public Sprite rain;
public Sprite snow;
public Sprite wind;
public Sprite fog;
////
////Placeables Variables
public GameObject curPlaceablesSpriteObj;
public Text curPlaceablesText;
public Image curPlaceablesImage;
string blockExplanation = "Place a block on the grid to obstruct a players movement.";
string thunderExplanation = "Places Thunder Above both players forcing them to the ground if they stay aerial for too long.";
string slimeExplanation = "Click and hold the mouse to place and then choose the direction the slowing slime goes.";
string hailExplanation = "Click and hold the mouse to adjust the hail size dropping papers";
string defaultPlaceablesExplanation;
public Sprite block;
public Sprite thunder;
public Sprite slime;
public Sprite hail;
void Start(){
defaultWeatherExplanation = curWeatherText.text;
defaultPlaceablesExplanation = curPlaceablesText.text;
curWeatherSpriteObj.SetActive(false);
curPlaceablesSpriteObj.SetActive(false);
}
////Weather Wheel Functions
public void OnEnterRain(){
curWeatherSpriteObj.SetActive(true);
curWeatherSpriteObj.transform.localEulerAngles = new Vector3(0, 0, 135);
curWeatherImage.sprite = rain;
curWeatherText.text = rainExplanation;
}
public void OnEnterSnow(){
curWeatherSpriteObj.SetActive(true);
curWeatherSpriteObj.transform.localEulerAngles = new Vector3(0, 0, -135);
curWeatherImage.sprite = snow;
curWeatherText.text = snowExplanation;
}
public void OnEnterWind(){
curWeatherSpriteObj.SetActive(true);
curWeatherSpriteObj.transform.localEulerAngles = new Vector3(0, 0, -45);
curWeatherImage.sprite = wind;
curWeatherText.text = windExplanation;
}
public void OnEnterFog(){
curWeatherSpriteObj.SetActive(true);
curWeatherSpriteObj.transform.localEulerAngles = new Vector3(0, 0, 45);
curWeatherImage.sprite = fog;
curWeatherText.text = fogExplanation;
}
public void OnExitWeather(){
curWeatherSpriteObj.SetActive(false);
curWeatherText.text = defaultWeatherExplanation;
}
////
////Placeables Functions
public void OnEnterBlock(){
curPlaceablesSpriteObj.SetActive(true);
curPlaceablesImage.sprite = block;
curPlaceablesText.text = blockExplanation;
}
public void OnEnterThunder(){
curPlaceablesSpriteObj.SetActive(true);
curPlaceablesImage.sprite = thunder;
curPlaceablesText.text = thunderExplanation;
}
public void OnEnterSlime(){
curPlaceablesSpriteObj.SetActive(true);
curPlaceablesImage.sprite = slime;
curPlaceablesText.text = slimeExplanation;
}
public void OnEnterHail(){
curPlaceablesSpriteObj.SetActive(true);
curPlaceablesImage.sprite = hail;
curPlaceablesText.text = hailExplanation;
}
public void OnExitPlaceables(){
curPlaceablesSpriteObj.SetActive(false);
curPlaceablesText.text = defaultPlaceablesExplanation;
}
////
}

View File

@@ -4,16 +4,16 @@ TextureImporter:
internalIDToNameTable:
- first:
213: -6768675186751372735
second: WheelWeathers_0
second: Windy
- first:
213: -2196999812744318433
second: WheelWeathers_1
second: Fog
- first:
213: 7206854781991241367
second: WheelWeathers_2
second: Snow
- first:
213: 2227736008206240503
second: WheelWeathers_3
second: Rain
externalObjects: {}
serializedVersion: 11
mipmaps:
@@ -103,7 +103,7 @@ TextureImporter:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: WheelWeathers_0
name: Windy
rect:
serializedVersion: 2
x: 0
@@ -111,7 +111,7 @@ TextureImporter:
width: 200
height: 200
alignment: 0
pivot: {x: 0, y: 0}
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
@@ -124,7 +124,7 @@ TextureImporter:
edges: []
weights: []
- serializedVersion: 2
name: WheelWeathers_1
name: Fog
rect:
serializedVersion: 2
x: 200
@@ -132,7 +132,7 @@ TextureImporter:
width: 200
height: 200
alignment: 0
pivot: {x: 0, y: 0}
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
@@ -145,7 +145,7 @@ TextureImporter:
edges: []
weights: []
- serializedVersion: 2
name: WheelWeathers_2
name: Snow
rect:
serializedVersion: 2
x: 0
@@ -153,7 +153,7 @@ TextureImporter:
width: 200
height: 200
alignment: 0
pivot: {x: 0, y: 0}
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
@@ -166,15 +166,15 @@ TextureImporter:
edges: []
weights: []
- serializedVersion: 2
name: WheelWeathers_3
name: Rain
rect:
serializedVersion: 2
x: 200
y: 0
y: 1
width: 200
height: 200
alignment: 0
pivot: {x: 0, y: 0}
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []